@rightguys either manual sort or add 0 to 1-9 so 01,02,03,04,05,06,07,08,09,10,11 etc
Sorry to bother you so much @Emre, is there any way you could explain how to integrate gloriafood“s extras with our order tags?
I am really HORRIBLE with jscript⦠really⦠really horribleā¦
Thanks!!!
G.
Iām currently using SambaPOS v5.1.59
i downloaded the installer for v5.1.60. Running the installer, it doesnāt give me any options on upgrade. It is directly requesting install/overwrite on the old folder. So i just proceed or what?
Would be nice to have a few basic steps to explain how to upgrade to this version.
Create a backup and just install it. It will upgrade automatically on first run.
Can you show a sample of āOrder Tag JSONā
iāve been trying to get it to work.
basically this is it:
{āPromotionā:āBuy 1 Cold Cuts Plate Get 1 Pizza Bread Freeā}
Order Tag Promotion Defined with āFree taggingā
I try made order via web āhttp://localhost:9000/apps/test/index.htmlā, but not fully succesfull.
I see categories, items and I can add items. After I choose table āB20ā and click to āAdd ticketā
In sambapos is table table orange as there is some open ticket, but inside is nothing.
I go to tickets -> select āopen tickets onlyā and ticket is here, but without table information.
There is something wrong with select table on webscript. I try modify script also for add to customers and also not works.
If I check communication with message server, each command is without error.
{
ādataā: {
āaddTicketā: {
āidā: ā45ā
}
},
āerrorsā: null
}
{
ādataā: {
āupdateEntityStateā: {
ānameā: āB20ā
}
},
āerrorsā: null
}
{
ādataā: {
āpostTicketRefreshMessageā: {
āidā: ā0ā
}
},
āerrorsā: null
}
Somebody have same problem or everybody work without problem? I tested on two different computers, but both with windows10.
Thanks Jiri
The following works.
Be aware that you need to make changes for any of the following if your setup is different:
Entity Type āTablesā
Entity Type āCustomersā
Department āRestaurantā
User āAdministratorā
Terminal āServerā
Order āStatusā State āSubmittedā
Ticket āStatusā State āUnpaidā
function getAddTicketScript(orders,tableName,customerName){
var orderLines = orders.map(function (order) {
return '{name:"' + order.name + '",states:[{stateName:"Status",state:"Submitted"},{stateName:"KDStatus",state:"FNotPrinted"}]}';
});
var entityPart = (tableName && customerName
? 'entities:[{entityType:"Tables",name:"'+tableName+'"},{entityType:"Customers",name:"'+customerName+'"}]'
: (tableName
? 'entities:[{entityType:"Tables",name:"'+tableName+'"}]'
: (customerName
? 'entities:[{entityType:"Customers",name:"'+customerName+'"}]'
: '')
)
);
var q = '';
q += 'mutation m{addTicket(';
q += ' ticket:{ticketType:"Ticket"';
q += ' , department:"Restaurant"';
q += ' , user:"Administrator"';
//q += ' , terminal:"'+currentTerminal+'"';
q += ' , terminal:"Server"';
q += ' , '+entityPart;
q += ' , states:[{stateName:"Status",state:"Unpaid"}]';
q += ' , orders:['+orderLines.join()+'}]';
q += ' }){id}}';
return q;
};
QMcKay your code works, good.
Problem was here.
var entityPart = tableName
? entities:[{entityType:"Tables",entity:"${tableName}"}],
: āā;
right must be
var entityPart = tableName
? entities:[{entityType:"Tables",name:"${tableName}"}],
: āā;
Thanks for help
Ahh yes, the GraphQL specification for addTicket()
mutation changed slightly there between the Beta and the Release from āentityā to ānameā.
I will edit the script in the release post.
How can I set Gift to orderline when I use addTicket function
From database I see flag is {stateName:āGStatusā,state:āGiftā} after is item in POS marked as gift, but price is still calculated. And set price to 0 is not possible.
Thanks Jiri
Gift is an Order State. You will need to either use SambaPOSās built in automation for Gift or you will need to code your own version of the automation in GraphQL.
We have the following for you to play with:
I donāt know right variable for stateName and state for gift item.
My target is set one item as gift. Picture 1
I use this code
but result is
and it is wrong.
Ok so you set the state now you need to set price.
Setting state does not automatically set price.
I recently added CalculatePrice setting to OrderInput. To gift an item setting CalculatePrice to false will solve that issue. It will be available by 5.1.61
Hello, The download link doesnāt work for me! is there other way for download v5?
regrds!
Hello Matias,
Iāve uploaded a mirror which you can download from here., so if downloading it locally doesnāt work you can temporarily use this file. Note that @emre constantly updates Samba, so iād suggest trying other ways to grab the download file.
An android āappā for Samba would be awesome! Iām loving SambaPOS but the only drawback right now for our business is that thereās no android āappā available and Iām not tech savvy enough to do any code writing with GraphQL API. Unfortunately time is of the essence at the moment since weāll be opening our restaurant in the next two weeks. Weāre looking at using only one actual PC. The rest would be tablets since touch screens are quite expensive. The examples emre shows are perfect for what we want. Kitchen display order taking for the waiters.
You can use Windows 10 tablets, there are many on the market now that are quite cheap (can be cheaper than Android). I recommend you donāt purchase the cheapest ones though, but maybe buy one that is reasonably priced and if you are happy then buy more. You would setup SambaPOS on your main system and use SQL Express 2014 database, then install SambaPOS locally on each tablet and connect to SQL database on the main system. Itās very easy actually and there are tutorials on the forum about how to do it. There are also quite a few topics about tablets - use the search and you should find some of interest.
Iāve been playing around with SambaPOS for quite a while now getting really into it. You see, the thing is that we have all the hardware that we bought at an auction quite a long time ago thatās all just sitting now and not being used. So weāre not going out to go buy anything new. The tablets are all Samsung ones. So thus the reason Iām really, really been hoping for some kind of integration for tablets.
Would be super dooper awesome! Again, I did see what emre did and there was also another post I saw from one of the other guys, canāt remember who now, but both of them did an awesome job with what they got going with PMPos with screen layouts etc through GraphQL. I really wish I knew more about using it right now. LOL
Also, I have done the setup and testing as such with server and multiple terminals. Really and truly an awesome program. Definitely the best Iāve come across thatās free and even with the pro version, the price is ridiculously lowā¦
Obviously I do think there are a number of āimprovementsā that could be made to streamline things quite a bit but Iām sure some have been mentioned somewhere on here already.
Thanks for the awesome job to anyone and everyone that has contributed and written coding for this. I know that the guys behind the scenes donāt always get the recognition they deserve for job well done!