Skip to content

Commit

Permalink
[FIX] pos_financial_risk: compute payment method for customer is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
geomer198 committed Sep 24, 2023
1 parent d5dbdef commit 9d506f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pos_financial_risk/static/src/js/PaymentScreen.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const PaymentScreenRisk = (PaymentScreen) =>
const order = this.currentOrder;
const partner = order.partner;
if (!partner) {
this.payment_methods_from_config = this.paymentMethodsFromConfigBase;
return;
}
const paymentCreditLimit =
Expand All @@ -44,6 +45,9 @@ export const PaymentScreenRisk = (PaymentScreen) =>
);
}
this.render(true);
} else {
this.payment_methods_from_config =
this.paymentMethodsFromConfigBase;
}
});
}
Expand Down

0 comments on commit 9d506f2

Please sign in to comment.