(function(){window.phPrintReceipt=function(saleId,auto){let url=(window.PH_BASE||'/').replace(/\/$/,'')+'/pos/receipt.php?id='+encodeURIComponent(saleId)+(auto?'&print=1':'');let w=window.open(url,'pos_receipt','width=420,height=720');if(!w)location.href=url;};window.phPrintCurrent=function(){window.print();};})();
