summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/js/Screens/PaymentScreen/PSNumpadInputButton.js
blob: b5dc6a7bd54f82615ed250e56c510ca51bb431d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
odoo.define('point_of_sale.PSNumpadInputButton', function(require) {
    'use strict';

    const PosComponent = require('point_of_sale.PosComponent');
    const Registries = require('point_of_sale.Registries');

    class PSNumpadInputButton extends PosComponent {
        get _class() {
            return this.props.changeClassTo || 'input-button number-char';
        }
    }
    PSNumpadInputButton.template = 'PSNumpadInputButton';

    Registries.Component.add(PSNumpadInputButton);

    return PSNumpadInputButton;
});