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.
 
 
 
 
 

23 lines
825 B

/** @odoo-module **/
import { Component } from "@odoo/owl";
import { ControlButtons } from "@point_of_sale/app/screens/product_screen/control_buttons/control_buttons";
import { patch } from "@web/core/utils/patch";
import { useService } from "@web/core/utils/hooks";
import { usePos } from "@point_of_sale/app/store/pos_hook";
import { OrderSummaryPopup } from "./OrderPopup";
patch(ControlButtons.prototype, {
// Extending Component and Adding Class OrderSummaryButton
setup() {
super.setup();
this.pos = usePos();
this.dialog = useService("dialog");
},
async onClickOrderSummary() {
//Show order summary popup
const { confirmed } = await this.dialog.add(OrderSummaryPopup,
{ title: 'Order Summary',}
);
},
});