Additional information about a sale can be kept in the receipt information.
Information like the waiter name, tax, delivery date, tariff applied, etc., can be captured from the sales screen and store along in the receipt so that later the receipt can be tracked or reports can be generated on this information.
1. Go to Stock>Product attribute sets and create an attribute set and name it “Receipt Info”
2. Go to Stock>Product attributes and create all fields you want to capture information. For example create attributes WAITER, PAX and DELIVERY DATE
3. If any of the fields have preset values so that user can choose from, Go to Stock>Product attribute values and choose the attribute and add all preset values. For example, choose Waiter and add some waiter names.
4. Go to Stock>Product attribute use and choose “Receipt Info” and add all attributes into it in the desired order.
5. Press CTRL+ALT+F2 and CTRL+C
6. Type “remountrw” and press enter
7. Type “nano Saleculator.properties” and press enter
8. Press CTRL+W and type TicketProperties and press enter
9. Set TicketProperties=true
10. Press CTRL+X, Y and press enter
11. Type “exit” and press enter
12. On Sales screen, press the Attributes(F8) button to enter receipt info.
Maintenance > Resources
To make sure the user does not forget to enter receipt info, add the below lines in event.addline.
//Below code make sure the receipt info is entered var attValue=""; attValue = ticket.getProperty("Waiter"); //"Waiter" can be changed to other attribute names if(attValue == null) { String [] keys = {"VK_F8"}; ticket.sendKey(keys); }
To choose the datatype for receipt info fields, any of the below values can be updated in ATYPE field of ATTRIBUTE table. The script can be run using Maintenance>SQL
0: Abc1
1:abc1
2:ABC1
3:123
4:Date
Example statement to execute in SQL window. Below statement set DEILVERY DATE to a date field.
UPDATE ATTRIBUTE SET ATYPE=4 WHERE NAME LIKE "DELIVERY DATE";