跳至內容
選單
此問題已被標幟
8 回覆
14010 瀏覽次數

I am using Odoo 8 POS with a POSBoxless hardware proxy setup on each individual point of sale machine.


I would like to have odoo automatically print each receipt twice for each sale in order for management to keep a copy.

Two alternatives that I can imagine are:

1) Automate the reprint function at the POS, so that both copies come out automatically together.

2) Allow for a second POSBox on a different IP address so that the POS can send the receipt to both printers.


Is there a way for either of these options to be implemented?

頭像
捨棄

You can also try to teach your management team how to check the POs tickets directly on the system! :)

作者

Correct. :-) What we have been experiencing is the POS users will create an order, show the price to the customer, then if the customer does not need the slip they simply press F5 to refresh the screen, then pocket the cash. Afterwards, they simply state that they gave the customer a receipt, but didn't really, then they claim it is a "system error". I'm looking for a way to guarantee that there is some sort of paper trail that they can't get away from. I'm open to suggestions. :-)

最佳答案

You could try having the report code duplicated and put a page break between the duplicates. This is a "raw" way of doing it, however that is how it's done in many PoS out there, haven't tested it on Odoo though. 

Break syntax is as follows:

<p style="page-break-before:always;"> </p>

Please let me know if it works for you. 

頭像
捨棄
作者

I will try that. Thanks

最佳答案

 File:  /point_of_sale/static/src/xml/pos.xml  

 inside <t t-name="PosTicket">,  copy <div class="pos-sale-ticket"> and paste below that. 

Then put Edser's code between those divs. 

<t t-name="PosTicket">
     <div class="pos-sale-ticket">
         ............
     </div>

     <p style="page-break-before:always;"> </p>

     <div class="pos-sale-ticket">
         ...........
</div>
</t>

Thanks !!! 

頭像
捨棄
最佳答案

Hi Babu,

Your code was tested but copies were not cut into two automatically. Meaning both original and duplicate copy printed on same paper page.

頭像
捨棄
最佳答案

I tried the solution above from shammen babu but "It doesn't cut the receipt on the ESCPOS Printer. It's only split the receipt on the screen" does anyone have a solution for that?

頭像
捨棄
最佳答案

Hi,

When using

page-break-before:always

It doesn't cut the receipt on the ESCPOS Printer. It's only split the receipt on the screen

How does it work ?

頭像
捨棄