Hi all, I'd like to ask a question about "reserveStoreInventory" service. In general this service does the following: If the productStore is "oneInventoryFacility" tries to reserve the inventory in that facility. Otherwise tries to find a facility from ProductStoreFacility list with enough quantity to reserve and reserves there.
The bug appears if there is no facility with enough quantities to reserve. In this case there is no reservation and the order can't be issued/invocied/completed. I think if there is no facility with enough quantity, the service should do one of (or a combination of) these 3 options: 1. Behave like productStore with "oneInventoryFacility" and tries to reserve in the facility associated to the store. 2. Take the first facility from the ProductStoreFacility list and tries to reserve there.(The first one should be ok, because there is sequenceNum field) 3. Choose a facility from the ProductStoreFacility list, which have most quantities for the product. I'd like to add code (a combination of 1 and 2) so that, if the productStore has a facilityId reserve there, otherwise choose the first facility from the list and reserve. Is it ok this way? Bilgin