Changeset fcd3c6e in rattail-corepos


Ignore:
Timestamp:
11/22/18 20:36:27 (14 months ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
bfb6a4c
Parents:
4193503
Message:

Add "import batch" support for Square -> CORE-POS (TransactionDetail?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_corepos/corepos/importing/square.py

    r4193503 rfcd3c6e  
    5959        'total',
    6060    ]
     61
     62    batches_supported = True
    6163
    6264    def setup(self):
     
    130132            card_number = int(card_number)
    131133
     134        # description
     135        description = csvrow['Item']
     136
    132137        # quantity
    133138        quantity = float(csvrow['Qty'])
     
    162167
    163168        return {
     169            '_object_str': "({}) {}".format(upc, description),
    164170            'store_row_id': store_row_id,
    165171            'date_time': date_time,
    166172            'card_number': card_number,
    167173            'upc': upc,
    168             'description': csvrow['Item'],
     174            'description': description,
    169175            'quantity': quantity,
    170176            'unit_price': unit_price,
Note: See TracChangeset for help on using the changeset viewer.