blob: 355d67425d28e31102a710358e583c9b0f8a94d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
odoo.define('pos_restaurant.PaymentInterface', function (require) {
"use strict";
var PaymentInterface = require('point_of_sale.PaymentInterface');
PaymentInterface.include({
/**
* Return true if the amount that was authorized can be modified,
* false otherwise
* @param {string} cid - The id of the paymentline
*/
canBeAdjusted(cid) {
return false;
},
/**
* Called when the amount authorized by a payment request should
* be adjusted to account for a new order line, it can only be called if
* canBeAdjusted returns True
* @param {string} cid - The id of the paymentline
*/
send_payment_adjust: function (cid) {},
});
});
|