gaoluyang
11 小时以前 43b878fc35d2c4b2a7163aa472a333ac9fbd53f2
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/dal/dataobject/purchase/ErpPurchaseOrderItemDO.java
@@ -11,7 +11,7 @@
/**
 * ERP 采购订单项 DO
 *
 * @author 芋道源码
 * @author 超级管理员
 */
@TableName("erp_purchase_order_items")
@KeySequence("erp_purchase_order_items_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@@ -35,6 +35,12 @@
     */
    private Long orderId;
    /**
     * 采购申请明细编号
     *
     * 关联 {@link ErpPurchaseRequestItemDO#getId()}
     */
    private Long requestItemId;
    /**
     * 物料编号
     *
     * 关联 {@link cn.iocoder.yudao.module.mdm.api.item.dto.MdmItemRespDTO#getId()}
@@ -48,7 +54,7 @@
    private Long productUnitId;
    /**
     * 产品单位单价,单位:元
     * 产品单位含税单价,单位:元
     */
    private BigDecimal productPrice;
    /**
@@ -56,9 +62,10 @@
     */
    private BigDecimal count;
    /**
     * 总价,单位:元
     * 不含税金额,单位:元
     *
     * totalPrice = productPrice * count
     * 含税金额 = productPrice * count
     * totalPrice = 含税金额 - taxPrice
     */
    private BigDecimal totalPrice;
    /**
@@ -68,7 +75,8 @@
    /**
     * 税额,单位:元
     *
     * taxPrice = totalPrice * taxPercent
     * 含税金额 = productPrice * count
     * taxPrice = 含税金额 * taxPercent
     */
    private BigDecimal taxPrice;