-
-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
fiscal_epos_print/static/src/js/Screens/TicketScreen/TicketScreen.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** @odoo-module **/ | ||
|
||
import { TicketScreen } from "@point_of_sale/app/screens/ticket_screen/ticket_screen"; | ||
import { _t } from "@web/core/l10n/translation"; | ||
import { patch } from "@web/core/utils/patch"; | ||
|
||
|
||
patch(TicketScreen.prototype, { | ||
|
||
async onDoRefund() { | ||
const selected_order = this.getSelectedOrder();; | ||
const res = super.onDoRefund(); | ||
const new_order = this.pos.get_order(); | ||
new_order.refund_report = selected_order.fiscal_z_rep_number; | ||
new_order.refund_doc_num = selected_order.fiscal_receipt_number; | ||
new_order.refund_date = selected_order.fiscal_receipt_date; | ||
new_order.refund_cash_fiscal_serial = selected_order.fiscal_printer_serial; | ||
return res; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters