作者 陈志颖

feat:增加货品计算dsl

version: v1
kind: Attribute
metadata:
name: actualDividend
description: 实际分红
type:
primitive: float32
... ...
version: v1
kind: Attribute
metadata:
name: expectDividend
description: 预计分红
type:
primitive: float32
... ...
version: v1
kind: Attribute
metadata:
name: expensesDividend
description: 支出分红
type:
primitive: float32
... ...
version: v1
kind: Attribute
metadata:
name: receivedDividend
description: 已收分红
type:
primitive: float32
... ...
version: v1
kind: Attribute
metadata:
name: uncollectedDividend
description: 未收分红
type:
primitive: float32
... ...
version: v1
kind: Attribute
metadata:
name: actualNumber
description: 调整后的实际货品数量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: dividendRatio
description: 合伙人分红比例
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: dividendStatus
description: 合伙人分红支付转状态
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: expectNumber
description: 预定的货品数量
type:
primitive: int
... ...
version: v1
kind: Attribute
metadata:
name: itemName
description: 货品名称
type:
primitive: string
... ...
version: v1
kind: Attribute
metadata:
name: itemStatistics
description: 货品相关计算
type:
schema: itemStatistics
... ...
version: v1
kind: Attribute
metadata:
name: price
description: 货品单价
type:
primitive: float64
... ...
version: v1
kind: Attribute
metadata:
name: remarks
description: 货品备注信息
type:
primitive: string
... ...
version: v1
kind: Schema
metadata:
name: itemStatistics
description: 货品相关计算
attributes:
- ref: actualDividend
required: true
- ref: expectDividend
required: true
- ref: expensesDividend
required: true
- ref: receivedDividend
required: true
- ref: uncollectedDividend
required: true
- ref: expectNumber
required: true
- ref: actualNumber
required: true
... ...