fix: add length/dec attributes to float/decimal fields in model definitions
This commit is contained in:
parent
1bf044de21
commit
e78941a59d
@ -52,7 +52,8 @@
|
|||||||
"name": "amount",
|
"name": "amount",
|
||||||
"title": "金额",
|
"title": "金额",
|
||||||
"type": "decimal",
|
"type": "decimal",
|
||||||
"length": "15,2",
|
"length": 15,
|
||||||
|
"dec": 2,
|
||||||
"nullable": false,
|
"nullable": false,
|
||||||
"comments": "凭证金额"
|
"comments": "凭证金额"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,7 +44,8 @@
|
|||||||
"name": "payment_amount",
|
"name": "payment_amount",
|
||||||
"title": "支出金额",
|
"title": "支出金额",
|
||||||
"type": "decimal",
|
"type": "decimal",
|
||||||
"length": "15,2",
|
"length": 15,
|
||||||
|
"dec": 2,
|
||||||
"nullable": false,
|
"nullable": false,
|
||||||
"comments": "支出金额"
|
"comments": "支出金额"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,7 +44,8 @@
|
|||||||
"name": "allocated_amount",
|
"name": "allocated_amount",
|
||||||
"title": "分配金额",
|
"title": "分配金额",
|
||||||
"type": "decimal",
|
"type": "decimal",
|
||||||
"length": "15,2",
|
"length": 15,
|
||||||
|
"dec": 2,
|
||||||
"nullable": false,
|
"nullable": false,
|
||||||
"comments": "分配给该订单的金额"
|
"comments": "分配给该订单的金额"
|
||||||
},
|
},
|
||||||
@ -52,7 +53,8 @@
|
|||||||
"name": "allocation_percentage",
|
"name": "allocation_percentage",
|
||||||
"title": "分配比例",
|
"title": "分配比例",
|
||||||
"type": "decimal",
|
"type": "decimal",
|
||||||
"length": "5,4",
|
"length": 5,
|
||||||
|
"dec": 4,
|
||||||
"nullable": true,
|
"nullable": true,
|
||||||
"comments": "分配比例(0-1之间)"
|
"comments": "分配比例(0-1之间)"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -36,7 +36,8 @@
|
|||||||
"name": "total_amount",
|
"name": "total_amount",
|
||||||
"title": "收款总额",
|
"title": "收款总额",
|
||||||
"type": "decimal",
|
"type": "decimal",
|
||||||
"length": "15,2",
|
"length": 15,
|
||||||
|
"dec": 2,
|
||||||
"nullable": false,
|
"nullable": false,
|
||||||
"comments": "本次收款总金额"
|
"comments": "本次收款总金额"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user