Subversion Repositories SmartDukaan

Rev

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

Rev 6751 Rev 6753
Line 1254... Line 1254...
1254
                    catalog_client = CatalogClient().get_client()
1254
                    catalog_client = CatalogClient().get_client()
1255
                except WarehouseServiceException as e:
1255
                except WarehouseServiceException as e:
1256
                    print sys.exc_info()[0]
1256
                    print sys.exc_info()[0]
1257
                    print 'Could not scan out orders due to: ' + e.message
1257
                    print 'Could not scan out orders due to: ' + e.message
1258
                    raise TransactionServiceException(110, e.message)
1258
                    raise TransactionServiceException(110, e.message)
-
 
1259
                    '''
1259
        '''elif billingType == BillingType.OURS_EXTERNAL:
1260
                    elif billingType == BillingType.OURS_EXTERNAL:
1260
            try:
1261
                        try:
1261
                serialNumber = serialNumbers[0]
1262
                            serialNumber = serialNumbers[0]
1262
                warehouse_client = WarehouseClient().get_client()
1263
                            warehouse_client = WarehouseClient().get_client()
1263
                inventoryItem = warehouse_client.scanForOursExternalSale(lineitem.item_number, serialNumber, invoice_number, order.fulfilmentWarehouseId, lineitem.transfer_price)
1264
                            inventoryItem = warehouse_client.scanForOursExternalSale(lineitem.item_number, serialNumber, invoice_number, order.fulfilmentWarehouseId, lineitem.transfer_price)
1264
                lineitem.transfer_price = inventoryItem.unitPrice
1265
                            lineitem.transfer_price = inventoryItem.unitPrice
1265
                order.vendorId = inventoryItem.supplierId
1266
                            order.vendorId = inventoryItem.supplierId
1266
            except WarehouseServiceException as e:
1267
                        except WarehouseServiceException as e:
1267
                print sys.exc_info()[0]
1268
                            print sys.exc_info()[0]
1268
                print 'Could not scan out orders due to: ' + e.message
1269
                            print 'Could not scan out orders due to: ' + e.message
1269
                raise TransactionServiceException(110, e.message)
1270
                            raise TransactionServiceException(110, e.message)
1270
        '''
1271
                    '''
1271
        else:
1272
        else:
1272
            if not warehouse.isAvailabilityMonitored:
1273
            if not warehouse.isAvailabilityMonitored:
1273
                inventory_client = InventoryClient().get_client()
1274
                inventory_client = InventoryClient().get_client()
1274
                inventory_client.addInventory(item.id, warehouse.id, -1 * lineitem.quantity)
1275
                inventory_client.addInventory(item.id, warehouse.id, -1 * lineitem.quantity)
1275
 
1276