Subversion Repositories SmartDukaan

Rev

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

Rev 4541 Rev 4546
Line 675... Line 675...
675
                    item = catalog_client.getItem(inventoryItem.itemId)
675
                    item = catalog_client.getItem(inventoryItem.itemId)
676
                    lineitem = order.lineitems[0]
676
                    lineitem = order.lineitems[0]
677
                    scanItemString = " ".join([item.brand, item.modelName, item.modelNumber, item.color])
677
                    scanItemString = " ".join([item.brand, item.modelName, item.modelNumber, item.color])
678
                    lineItemString = " ".join([lineitem.brand, lineitem.model_name, lineitem.model_number, lineitem.color])
678
                    lineItemString = " ".join([lineitem.brand, lineitem.model_name, lineitem.model_number, lineitem.color])
679
                    raise TransactionServiceException(110, 'Trying to scan ' + scanItemString + ' instead of ' + lineItemString)
679
                    raise TransactionServiceException(110, 'Trying to scan ' + scanItemString + ' instead of ' + lineItemString)
680
                transferPrice = warehouse_client.scanSerializedItemForOrder(inventoryItem.id, ScanType.SALE, orderId)
680
                transferPrice = warehouse_client.scanSerializedItemForOrder(inventoryItem.id, ScanType.SALE, orderId, order.warehouse_id)
681
                order.transfer_price = transferPrice
681
                order.transfer_price = transferPrice
682
            except WarehouseServiceException as e:
682
            except WarehouseServiceException as e:
683
                print sys.exc_info()[0]
683
                print sys.exc_info()[0]
684
                print 'Could not scan out orders due to: ' + e.message
684
                print 'Could not scan out orders due to: ' + e.message
685
                if e.exceptionType == ExceptionType.ILLEGAL_ARGUMENTS:
685
                if e.exceptionType == ExceptionType.ILLEGAL_ARGUMENTS: