Skip to content

Commit

Permalink
[UPD] fiscal_epos_print: aggiornata PR OCA#3060
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed May 23, 2024
1 parent 6a8a4b4 commit 422a257
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ odoo.define("fiscal_epos_print.SetLotteryCodeButton", function (require) {

const PosComponent = require("point_of_sale.PosComponent");
const ProductScreen = require("point_of_sale.ProductScreen");
const {useListener} = require("web.custom_hooks");
const {useListener} = require("@web/core/utils/hooks");
const Registries = require("point_of_sale.Registries");
const {Gui} = require("point_of_sale.Gui");
const core = require("web.core");
Expand Down
2 changes: 1 addition & 1 deletion fiscal_epos_print/static/src/js/Popups/LotteryCodePopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ odoo.define("fiscal_epos_print.LotteryCodePopup", function (require) {
if (allValid()) {
this.$el.find("#error-message-dialog").hide();

var lottery_code = this.$el.find("#lottery_code").val();
var lottery_code = this.inputLotteryCode.el.value;
this.env.pos.context = {
lottery_code: lottery_code,
};
Expand Down
13 changes: 6 additions & 7 deletions fiscal_epos_print/static/src/js/Popups/RefundInfoPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ odoo.define("fiscal_epos_print.RefundInfoPopup", function (require) {
if (allValid()) {
this.$el.find("#error-message-dialog").hide();

var refund_date = this.$el.find("#refund_date").val();
var refund_report = this.$el.find("#refund_report").val();
var refund_doc_num = this.$el.find("#refund_doc_num").val();
var refund_cash_fiscal_serial = this.$el
.find("#refund_cash_fiscal_serial")
.val();
var refund_full_refund = this.$el.find("#refund_full_refund").val();
var refund_date = this.inputRefundDate.el.value;
var refund_report = this.inputRefundReport.el.value;
var refund_doc_num = this.inputRefundDocNum.el.value;
var refund_cash_fiscal_serial =
this.inputRefundCashFiscalSerial.el.value;
var refund_full_refund = this.inputRefundFullRefund.el.checked;
this.env.pos.context = {
refund_details: true,
refund_date: refund_date,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
class="detail refund_full_refund"
type='checkbox'
t-att-value="props.refund_full_refund || ''"
t-ref="inputRefund_full_refund"
t-ref="inputRefundFullRefund"
/>
</div>

Expand Down

0 comments on commit 422a257

Please sign in to comment.