[FIX] point_of_sale: use the same paymentlines for printer- and webreceipt

This commit is contained in:
Joren Van Onder
2015-07-02 16:42:35 +02:00
committed by Frédéric van der Essen
parent 80da43ebb8
commit 9401bf0a07
2 changed files with 4 additions and 3 deletions
@@ -1370,6 +1370,7 @@ var ReceiptScreenWidget = ScreenWidget.extend({
pos: this.pos,
order: this.pos.get_order(),
receipt: this.pos.get_order().export_for_printing(),
paymentlines: this.pos.get_order().get_paymentlines()
};
var receipt = QWeb.render('XmlReceipt',env);
+3 -3
View File
@@ -764,10 +764,10 @@
<!-- Payment Lines -->
<t t-foreach='receipt.paymentlines' t-as='line'>
<t t-foreach='paymentlines' t-as='line'>
<line>
<left><t t-esc='line.journal' /></left>
<right><value><t t-esc='line.amount'/></value></right>
<left><t t-esc='line.name' /></left>
<right><value><t t-esc='line.get_amount()'/></value></right>
</line>
</t>
<br/>