[FIX] point_of_sale: print amount of guests correctly on ESC/POS receipt

Before this the only thing that would ever be printed was 'Guests: ',
because it was only added when receipt.customer_count evaluated to
false. Another issue is that receipt.customer_count doesn't exist in the
point_of_sale module. It is created by pos_restaurant, so there's where
it should be added to the receipt.
This commit is contained in:
Joren Van Onder
2015-12-18 12:21:30 +01:00
parent 7bae4098b2
commit 6d43387f58
2 changed files with 3 additions and 3 deletions
@@ -679,9 +679,6 @@
<div>Served by <t t-esc='receipt.cashier' /></div>
</div>
</t>
<t t-if='!receipt.customer_count'>
<div>Guests: <t t-esc='receipt.customer_count' /></div>
</t>
</div>
<br /><br />
@@ -6,6 +6,9 @@
<t t-if='receipt.table'>
at table <t t-esc='receipt.table' />
</t>
<t t-if='receipt.customer_count'>
<div>Guests: <t t-esc='receipt.customer_count' /></div>
</t>
</t>
</t>