diff --git a/models/financial_vouchers.json b/models/financial_vouchers.json index bbd6f6f..5fb8fc6 100644 --- a/models/financial_vouchers.json +++ b/models/financial_vouchers.json @@ -52,7 +52,8 @@ "name": "amount", "title": "金额", "type": "decimal", - "length": "15,2", + "length": 15, + "dec": 2, "nullable": false, "comments": "凭证金额" }, diff --git a/models/payments.json b/models/payments.json index b8b1201..c1ff975 100644 --- a/models/payments.json +++ b/models/payments.json @@ -44,7 +44,8 @@ "name": "payment_amount", "title": "支出金额", "type": "decimal", - "length": "15,2", + "length": 15, + "dec": 2, "nullable": false, "comments": "支出金额" }, diff --git a/models/receipt_allocations.json b/models/receipt_allocations.json index 82120f5..bbffb47 100644 --- a/models/receipt_allocations.json +++ b/models/receipt_allocations.json @@ -44,7 +44,8 @@ "name": "allocated_amount", "title": "分配金额", "type": "decimal", - "length": "15,2", + "length": 15, + "dec": 2, "nullable": false, "comments": "分配给该订单的金额" }, @@ -52,7 +53,8 @@ "name": "allocation_percentage", "title": "分配比例", "type": "decimal", - "length": "5,4", + "length": 5, + "dec": 4, "nullable": true, "comments": "分配比例(0-1之间)" }, diff --git a/models/receipts.json b/models/receipts.json index 5c4a7c0..0642aa4 100644 --- a/models/receipts.json +++ b/models/receipts.json @@ -36,7 +36,8 @@ "name": "total_amount", "title": "收款总额", "type": "decimal", - "length": "15,2", + "length": 15, + "dec": 2, "nullable": false, "comments": "本次收款总金额" },