Subversion Repositories SmartDukaan

Rev

Rev 15660 | Rev 16979 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15660 Rev 16268
Line 3382... Line 3382...
3382
            catalogClient = CatalogClient().get_client()
3382
            catalogClient = CatalogClient().get_client()
3383
            item = catalogClient.getItem(lineitem.item_id)
3383
            item = catalogClient.getItem(lineitem.item_id)
3384
            warehouseClient = WarehouseClient().get_client()
3384
            warehouseClient = WarehouseClient().get_client()
3385
            if warehouse.billingType == BillingType.OURS:
3385
            if warehouse.billingType == BillingType.OURS:
3386
                if ItemType.SERIALIZED == item.type:
3386
                if ItemType.SERIALIZED == item.type:
-
 
3387
                    for serial_number in str(lineitem.serial_number).split(','):
3387
                    warehouseClient.scanSerializedItemForOrder(lineitem.serial_number, ScanType.SALE_RET, order.id, order.fulfilmentWarehouseId, lineitem.quantity, order.warehouse_id)
3388
                        warehouseClient.scanSerializedItemForOrder(serial_number, ScanType.SALE_RET, order.id, order.fulfilmentWarehouseId, 1, order.warehouse_id)
3388
                else:
3389
                else:
3389
                    warehouseClient.scanForOrder(None, ScanType.SALE_RET, lineitem.quantity, order.id, order.fulfilmentWarehouseId, order.warehouse_id)
3390
                    warehouseClient.scanForOrder(None, ScanType.SALE_RET, lineitem.quantity, order.id, order.fulfilmentWarehouseId, order.warehouse_id)
3390
            if warehouse.billingType == BillingType.OURS_EXTERNAL:
3391
            if warehouse.billingType == BillingType.OURS_EXTERNAL:
3391
                warehouseClient.scanForOursExternalSaleReturn(order.id, lineitem.transfer_price)
3392
                warehouseClient.scanForOursExternalSaleReturn(order.id, lineitem.transfer_price)
3392
            if order.freebieItemId:
3393
            if order.freebieItemId: