| 1 |
import { models } from "@web/../tests/web_test_helpers"; |
| 2 |
|
| 3 |
export class AccountTax extends models.ServerModel { |
| 4 |
_name = "account.tax"; |
| 5 |
|
| 6 |
_load_pos_data_fields() { |
| 7 |
return [ |
| 8 |
"id", |
| 9 |
"name", |
| 10 |
"price_include", |
| 11 |
"include_base_amount", |
| 12 |
"is_base_affected", |
| 13 |
"has_negative_factor", |
| 14 |
"amount_type", |
| 15 |
"children_tax_ids", |
| 16 |
"amount", |
| 17 |
"company_id", |
| 18 |
"id", |
| 19 |
"sequence", |
| 20 |
"tax_group_id", |
| 21 |
]; |
| 22 |
} |
| 23 |
|
| 24 |
_records = [ |
| 25 |
{ |
| 26 |
id: 1, |
| 27 |
name: "15%", |
| 28 |
price_include: false, |
| 29 |
include_base_amount: false, |
| 30 |
is_base_affected: true, |
| 31 |
has_negative_factor: false, |
| 32 |
amount_type: "percent", |
| 33 |
children_tax_ids: [], |
| 34 |
amount: 15.0, |
| 35 |
company_id: 250, |
| 36 |
sequence: 1, |
| 37 |
tax_group_id: 1, |
| 38 |
}, |
| 39 |
{ |
| 40 |
id: 2, |
| 41 |
name: "25%", |
| 42 |
price_include: false, |
| 43 |
include_base_amount: false, |
| 44 |
is_base_affected: true, |
| 45 |
has_negative_factor: false, |
| 46 |
amount_type: "percent", |
| 47 |
children_tax_ids: [], |
| 48 |
amount: 25.0, |
| 49 |
company_id: 250, |
| 50 |
sequence: 1, |
| 51 |
tax_group_id: 3, |
| 52 |
}, |
| 53 |
{ |
| 54 |
id: 3, |
| 55 |
name: "tax incl", |
| 56 |
type_tax_use: "sale", |
| 57 |
amount_type: "percent", |
| 58 |
amount: 7, |
| 59 |
price_include_override: "tax_included", |
| 60 |
include_base_amount: true, |
| 61 |
has_negative_factor: true, |
| 62 |
company_id: 250, |
| 63 |
is_base_affected: true, |
| 64 |
tax_group_id: 4, |
| 65 |
}, |
| 66 |
]; |
| 67 |
} |