[IMP] point_of_sale: show date of order when reprint receipt
The order date was missing when using the reprint feature. task-2492631
This commit is contained in:
@@ -2834,6 +2834,7 @@ exports.Order = Backbone.Model.extend({
|
||||
minute: date.getMinutes() ,
|
||||
isostring: date.toISOString(),
|
||||
localestring: this.formatted_validation_date,
|
||||
validation_date: this.validation_date,
|
||||
},
|
||||
company:{
|
||||
email: company.email,
|
||||
|
||||
@@ -148,9 +148,13 @@
|
||||
<br/>
|
||||
<div class="pos-receipt-order-data">
|
||||
<div><t t-esc="receipt.name" /></div>
|
||||
<div><t t-esc="receipt.date.localestring" /></div>
|
||||
<t t-if="receipt.date.localestring">
|
||||
<div><t t-esc="receipt.date.localestring" /></div>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<div><t t-esc="receipt.date.validation_date" /></div>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</t>
|
||||
<t t-name="OrderLinesReceipt" owl="1">
|
||||
|
||||
Reference in New Issue
Block a user