Hey all.
I’ve looked through the tutorials etc an the forums and have fairly successfully set up SambaPOS to be used in our hotel restaurant, but have a question that I can’t seem to find a clear direction on.
Our PMS uses 2 simple CSV files to communicate to our current POS and I have written an SQL statement to read the in/out file to create and remove customers in SambaPOS.
the issue that I am having is with the other file that contain a list of all the room charge transactions to be posted to the PMS.
So far I have achieved this by using a Add Line to Text File action and rule that is triggered when making a payment via a ‘Room Charge’ payment type and posts the information to the csv.
A post to this file would look like this:
RoomNo, AcctNo, GL-Code, Description, Amount, Date, Time
eg: 101,103300,4-3043,Retaurant Meals [GUEST NAME] Ticket 1301,15.00,27/01/2019,13:18:38
The code I am using on the Rule to create the csv file is as follows:
{ENTITY DATA:Customers:RoomNo},{ENTITY DATA:Customers:AccountNo},4-3043,Retaurant Meals - {ENTITY DATA:Customers:FirstName} {ENTITY DATA:Customers:Surname} - Ticket {TICKET ID},{TICKET TOTAL},{TICKET DATE},[=Helper.GetUniqueString().substr(8,2)]:[=Helper.GetUniqueString().substr(10,2)]:[=Helper.GetUniqueString().substr(12,2)]
This works fine for meals, however if the ticket also contains drinks or other charges (breakfast, misc charges etc) each charge type should be on a separate line with its own GL Code for the PMS.
Action:
Rule:
So, anyone have a clue on how to et it up to work with different GL codes based on ticket content?
My thought at the moment is simply to add extra Payment types and copies of the Rule for each type… then split the ticket and only pay for each item type at a time… however that is simply impractical.