| | |
| | | /** |
| | | * ERP 采购订单项 DO |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @TableName("erp_purchase_order_items") |
| | | @KeySequence("erp_purchase_order_items_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 |
| | |
| | | */ |
| | | private Long orderId; |
| | | /** |
| | | * 采购申请明细编号 |
| | | * |
| | | * 关联 {@link ErpPurchaseRequestItemDO#getId()} |
| | | */ |
| | | private Long requestItemId; |
| | | /** |
| | | * 物料编号 |
| | | * |
| | | * 关联 {@link cn.iocoder.yudao.module.mdm.api.item.dto.MdmItemRespDTO#getId()} |
| | |
| | | private Long productUnitId; |
| | | |
| | | /** |
| | | * 产品单位单价,单位:元 |
| | | * 产品单位含税单价,单位:元 |
| | | */ |
| | | private BigDecimal productPrice; |
| | | /** |
| | |
| | | */ |
| | | private BigDecimal count; |
| | | /** |
| | | * 总价,单位:元 |
| | | * 不含税金额,单位:元 |
| | | * |
| | | * totalPrice = productPrice * count |
| | | * 含税金额 = productPrice * count |
| | | * totalPrice = 含税金额 - taxPrice |
| | | */ |
| | | private BigDecimal totalPrice; |
| | | /** |
| | |
| | | /** |
| | | * 税额,单位:元 |
| | | * |
| | | * taxPrice = totalPrice * taxPercent |
| | | * 含税金额 = productPrice * count |
| | | * taxPrice = 含税金额 * taxPercent |
| | | */ |
| | | private BigDecimal taxPrice; |
| | | |