addons/point_of_sale/static/src/app/models/account_cash_rounding.js
raw| 1 | import { registry } from "@web/core/registry"; |
| 2 | import * as numbers from "@point_of_sale/app/utils/numbers"; |
| 3 | |
| 4 | export class AccountCashRounding extends numbers.AbstractNumbers { |
| 5 | static pythonModel = "account.cash.rounding"; |
| 6 | get precision() { |
| 7 | return this.rounding; |
| 8 | } |
| 9 | get method() { |
| 10 | return this.rounding_method; |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | registry.category("pos_available_models").add(AccountCashRounding.pythonModel, AccountCashRounding); |