| 1 |
import { models } from "@web/../tests/web_test_helpers"; |
| 2 |
|
| 3 |
export class PosPaymentMethod extends models.ServerModel { |
| 4 |
_name = "pos.payment.method"; |
| 5 |
|
| 6 |
_load_pos_data_fields() { |
| 7 |
return [ |
| 8 |
"id", |
| 9 |
"name", |
| 10 |
"is_cash_count", |
| 11 |
"use_payment_terminal", |
| 12 |
"split_transactions", |
| 13 |
"type", |
| 14 |
"image", |
| 15 |
"sequence", |
| 16 |
"payment_method_type", |
| 17 |
"default_qr", |
| 18 |
]; |
| 19 |
} |
| 20 |
|
| 21 |
_records = [ |
| 22 |
{ |
| 23 |
id: 2, |
| 24 |
name: "Card", |
| 25 |
is_cash_count: false, |
| 26 |
use_payment_terminal: false, |
| 27 |
split_transactions: false, |
| 28 |
type: "bank", |
| 29 |
image: false, |
| 30 |
sequence: 1, |
| 31 |
payment_method_type: "none", |
| 32 |
default_qr: false, |
| 33 |
}, |
| 34 |
{ |
| 35 |
id: 3, |
| 36 |
name: "Customer Account", |
| 37 |
is_cash_count: false, |
| 38 |
use_payment_terminal: false, |
| 39 |
split_transactions: true, |
| 40 |
type: "pay_later", |
| 41 |
image: false, |
| 42 |
sequence: 2, |
| 43 |
payment_method_type: "none", |
| 44 |
default_qr: false, |
| 45 |
}, |
| 46 |
{ |
| 47 |
id: 1, |
| 48 |
name: "Cash", |
| 49 |
is_cash_count: true, |
| 50 |
use_payment_terminal: false, |
| 51 |
split_transactions: false, |
| 52 |
type: "cash", |
| 53 |
image: false, |
| 54 |
sequence: 0, |
| 55 |
payment_method_type: "none", |
| 56 |
default_qr: false, |
| 57 |
}, |
| 58 |
]; |
| 59 |
} |