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.
 
 
 
 
 

31 lines
1.2 KiB

odoo.define('advanced_pos_reports.LocationSummaryReceiptScreen', function (require) {
'use strict';
const { useRef } = owl;
const Registries = require('point_of_sale.Registries');
const AbstractReceiptScreen = require('point_of_sale.AbstractReceiptScreen');
const LocationSummaryReceiptScreen = (AbstractReceiptScreen) => {
class LocationSummaryReceiptScreen extends AbstractReceiptScreen {
/**
* @Override AbstractReceiptScreen
*/
setup() {
super.setup();
this.locationSummary = useRef('location-summary');
}
confirm() {
//Returns to the product screen when we click confirm
this.showScreen('ProductScreen');
}
async printSummary() {
//Method to print the receipt
await this._printReceipt();
}
}
LocationSummaryReceiptScreen.template = 'LocationSummaryReceiptScreen';
return LocationSummaryReceiptScreen;
};
Registries.Component.addByExtending(LocationSummaryReceiptScreen, AbstractReceiptScreen);
return LocationSummaryReceiptScreen;
});