Change warehouse for current sale

This script allow changing warehouse for current sale dynamically.

Note: This feature is available in Saleculator 3.8 u4 onwards only.

Administrator Menu > Maintenance > Resources
In Ticket.Buttons add the below lines:

<button key="WH" name="WH1" code="Script.WH1"></button>
<button key="WH" name="WH2" code="Script.WH2"></button>

Create a new text resource and name it Script.WH1 and add the below line

sales.setInventoryLocation("WH1");
sales.showStatus("<html>Current Warehouse <font color=blue><font size=+2><center>WH1");

Create a new text resource and name it Script.WH2 and add the below line

sales.setInventoryLocation("WH2");
sales.showStatus("<html>Current Warehouse <font color=blue><font size=+2><center>WH2");

Add the below line in Roles

<class name="WH"/>

Save & restart

Execute below SQL statements from Execute SQL window:

INSERT INTO LOCATIONS VALUES("WH1", "WAREHOUSE 1", NULL);
INSERT INTO LOCATIONS VALUES("WH2", "WAREHOUSE 2", NULL);

0 Comments

Leave a Reply

Arrow-up