コード例 #1
0
    def receipt_begin(self, mode='online', pharmaceutical='no'):
        cmd = E.receipt('',
                        action='begin',
                        mode=mode,
                        pharmaceutical=pharmaceutical)

        self.send_command(cmd, check_for_errors=True)
コード例 #2
0
    def receipt_close(self,
                      total,
                      systemno,
                      checkout,
                      cashier,
                      charge=None,
                      nip=None):
        cmd = E.receipt('',
                        action='close',
                        total=str(total),
                        systemno=systemno,
                        checkout=checkout,
                        cashier=cashier)

        if charge is not None:
            cmd.set('charge', str(charge))

        if nip is not None:
            cmd.set('nip', nip)

        self.send_command(cmd, check_for_errors=True)
コード例 #3
0
 def receipt_cancel(self):
     cmd = E.receipt('', action='cancel')
     self.send_command(cmd, check_for_errors=True)