Page 1 of 1

Sales Orer default Bin Locations only

PostPosted: Wed Mar 27, 2019 6:12 pm
by SBarnes
Can you force Jiwa to only use stock that has its bin location the same as the default bin location for a given/active warehouse?

Re: Sales Orer default Bin Locations only  Topic is solved

PostPosted: Wed Mar 27, 2019 6:21 pm
by Mike.Sheen
Yes - a system setting - GrabSOHFromDefaultBin - under the Inventory tab of System Configuration will do that.
You can override that setting in code as you need as well if you only want to do this selectively and not change the system setting, as we keep a memory cache of relevant settings for our business logic that uses them - so for sales orders it'd be:
Code: Select all
SalesOrder.SystemSettings.GrabSOHFromDefaultBin = true;

Re: Sales Orer default Bin Locations only

PostPosted: Wed Mar 27, 2019 6:25 pm
by SBarnes
Thanks but what happens if there is no stock in the default bin will it put it to back order?

Re: Sales Orer default Bin Locations only

PostPosted: Wed Mar 27, 2019 6:35 pm
by Mike.Sheen
SBarnes wrote:Thanks but what happens if there is no stock in the default bin will it put it to back order?

Yes, it will go on backorder. If a user is using the Sales Order form, however, and there is stock in bins other than the default bin and there is not enough in the default bin, then the user is presented with a serial/stock selection dialog to specify if they want to take stock from alternative bins. This only applies when interacting using the form - an event is raised by the business logic and if a form is attached it'll prompt the user with that dialog.