| 1 |
import { models } from "@web/../tests/web_test_helpers"; |
| 2 |
|
| 3 |
export class DecimalPrecision extends models.ServerModel { |
| 4 |
_name = "decimal.precision"; |
| 5 |
|
| 6 |
_load_pos_data_fields() { |
| 7 |
return ["id", "name", "digits"]; |
| 8 |
} |
| 9 |
|
| 10 |
_records = [ |
| 11 |
{ |
| 12 |
id: 1, |
| 13 |
name: "Product Unit", |
| 14 |
digits: 2, |
| 15 |
}, |
| 16 |
{ |
| 17 |
id: 2, |
| 18 |
name: "Percentage Analytic", |
| 19 |
digits: 2, |
| 20 |
}, |
| 21 |
{ |
| 22 |
id: 3, |
| 23 |
name: "Product Price", |
| 24 |
digits: 2, |
| 25 |
}, |
| 26 |
{ |
| 27 |
id: 4, |
| 28 |
name: "Discount", |
| 29 |
digits: 2, |
| 30 |
}, |
| 31 |
{ |
| 32 |
id: 5, |
| 33 |
name: "Stock Weight", |
| 34 |
digits: 2, |
| 35 |
}, |
| 36 |
{ |
| 37 |
id: 6, |
| 38 |
name: "Volume", |
| 39 |
digits: 2, |
| 40 |
}, |
| 41 |
{ |
| 42 |
id: 7, |
| 43 |
name: "Payment Terms", |
| 44 |
digits: 6, |
| 45 |
}, |
| 46 |
]; |
| 47 |
} |