Subversion Repositories SmartDukaan

Rev

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

Rev 13527 Rev 13528
Line 8333... Line 8333...
8333
                                raise TransactionServiceException(311, "No Item residing in Billing Warehouse with this serial number " + serialNumber+" in the vendor warehouse Id"+str(order.fulfilmentWarehouseId)+"and Order Id:- "+str(order.id))
8333
                                raise TransactionServiceException(311, "No Item residing in Billing Warehouse with this serial number " + serialNumber+" in the vendor warehouse Id"+str(order.fulfilmentWarehouseId)+"and Order Id:- "+str(order.id))
8334
                            if invItem[10] is not None and invItem[10]=='IN_TRANSIT':
8334
                            if invItem[10] is not None and invItem[10]=='IN_TRANSIT':
8335
                                if warehouseDbConnection.open:
8335
                                if warehouseDbConnection.open:
8336
                                    warehouseDbConnection.close()
8336
                                    warehouseDbConnection.close()
8337
                                raise TransactionServiceException(110, "Trying to Scan In-Transit Inventory " + serialNumber+" and Order Id:- "+str(order.id))
8337
                                raise TransactionServiceException(110, "Trying to Scan In-Transit Inventory " + serialNumber+" and Order Id:- "+str(order.id))
8338
                            if invItem[9]!='MARKED_BAD' or invItem[9]!='DOA_IN' or invItem[9]!='DOA_REJECTED' or invItem[9]!='SALE_RET_UNUSABLE':
8338
                            if invItem[9]!='MARKED_BAD' and invItem[9]!='DOA_IN' and invItem[9]!='DOA_REJECTED' and invItem[9]!='SALE_RET_UNUSABLE':
8339
                                if warehouseDbConnection.open:
8339
                                if warehouseDbConnection.open:
8340
                                    warehouseDbConnection.close()
8340
                                    warehouseDbConnection.close()
8341
                                raise TransactionServiceException(110, "Trying to Scan Good Inventory Serial Number:- " + serialNumber+" and Order Id:- "+str(order.id))
8341
                                raise TransactionServiceException(110, "Trying to Scan Good Inventory Serial Number:- " + serialNumber+" and Order Id:- "+str(order.id))
8342
                                
8342
                                
8343
                            scanSql = "select * from scanNew where inventoryItemId =%d order by id"%(invItem[0])
8343
                            scanSql = "select * from scanNew where inventoryItemId =%d order by id"%(invItem[0])