[ADD]:Added Upstream Patch for pos_restaurant
This commit is contained in:
parent
79aad71e3f
commit
58ce064c7b
@ -27,11 +27,14 @@ var Printer = core.Class.extend(mixins.PropertiesMixin,{
|
||||
function send_printing_job(){
|
||||
if(self.receipt_queue.length > 0){
|
||||
var r = self.receipt_queue.shift();
|
||||
self.connection.rpc('/hw_proxy/print_xml_receipt',{receipt: r},{timeout: 5000})
|
||||
var options = {shadow: true, timeout: 5000};
|
||||
self.connection.rpc('/hw_proxy/print_xml_receipt', {receipt: r}, options)
|
||||
.then(function(){
|
||||
send_printing_job();
|
||||
},function(){
|
||||
},function(error, event){
|
||||
self.receipt_queue.unshift(r);
|
||||
console.log('There was an error while trying to print the order:');
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user