You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
808 B
27 lines
808 B
odoo.define('advanced_pos_reports.LocationSummaryReceipt', function(require) {
|
|
'use strict';
|
|
|
|
const PosComponent = require('point_of_sale.PosComponent');
|
|
const Registries = require('point_of_sale.Registries');
|
|
|
|
class LocationSummaryReceipt extends PosComponent {
|
|
constructor() {
|
|
super(...arguments);
|
|
this._locationSummaryEnv = this.props.locations
|
|
}
|
|
get locations() {
|
|
return this._locationSummaryEnv;
|
|
}
|
|
get company() {
|
|
return this.env.pos.company;
|
|
}
|
|
get cashier() {
|
|
return this.env.pos.get_cashier();
|
|
}
|
|
}
|
|
LocationSummaryReceipt.template = 'LocationSummaryReceipt';
|
|
|
|
Registries.Component.add(LocationSummaryReceipt);
|
|
|
|
return LocationSummaryReceipt;
|
|
});
|
|
|