Subversion Repositories SmartDukaan

Rev

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

Rev 5110 Rev 5123
Line 689... Line 689...
689
                        order.fulfilmentWarehouseId = warehouse.id
689
                        order.fulfilmentWarehouseId = warehouse.id
690
                except WarehouseServiceException as e:
690
                except WarehouseServiceException as e:
691
                    print sys.exc_info()[0]
691
                    print sys.exc_info()[0]
692
                    print 'Could not scan out orders due to: ' + e.message
692
                    print 'Could not scan out orders due to: ' + e.message
693
                    raise TransactionServiceException(110, e.message)
693
                    raise TransactionServiceException(110, e.message)
-
 
694
        else:
-
 
695
            if not warehouse.isAvailabilityMonitored:
-
 
696
                catalog_client = CatalogClient().get_client()
-
 
697
                catalog_client.addInventory(item.id, warehouse.id, -1 * lineitem.quantity)
694
 
698
 
695
        __update_inventory_reservation(order)
699
        __update_inventory_reservation(order)
696
        session.commit()
700
        session.commit()
697
        return True
701
        return True
698
    else:
702
    else: