gaoluyang
2 天以前 43b878fc35d2c4b2a7163aa472a333ac9fbd53f2
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/dal/dataobject/purchase/ErpPurchaseOrderItemDO.java
@@ -1,7 +1,6 @@
package cn.iocoder.yudao.module.erp.dal.dataobject.purchase;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.erp.dal.dataobject.product.ErpProductDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
@@ -12,7 +11,7 @@
/**
 * ERP 采购订单项 DO
 *
 * @author 芋道源码
 * @author 超级管理员
 */
@TableName("erp_purchase_order_items")
@KeySequence("erp_purchase_order_items_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@@ -36,20 +35,26 @@
     */
    private Long orderId;
    /**
     * 产品编号
     * 采购申请明细编号
     *
     * 关联 {@link ErpProductDO#getId()}
     * 关联 {@link ErpPurchaseRequestItemDO#getId()}
     */
    private Long requestItemId;
    /**
     * 物料编号
     *
     * 关联 {@link cn.iocoder.yudao.module.mdm.api.item.dto.MdmItemRespDTO#getId()}
     */
    private Long productId;
    /**
     * 产品单位单位
     * 计量单位编号
     *
     * 冗余 {@link ErpProductDO#getUnitId()}
     * 关联 {@link cn.iocoder.yudao.module.mdm.api.unitmeasure.dto.MdmUnitMeasureRespDTO#getId()}
     */
    private Long productUnitId;
    /**
     * 产品单位单价,单位:元
     * 产品单位含税单价,单位:元
     */
    private BigDecimal productPrice;
    /**
@@ -57,9 +62,10 @@
     */
    private BigDecimal count;
    /**
     * 总价,单位:元
     * 不含税金额,单位:元
     *
     * totalPrice = productPrice * count
     * 含税金额 = productPrice * count
     * totalPrice = 含税金额 - taxPrice
     */
    private BigDecimal totalPrice;
    /**
@@ -69,7 +75,8 @@
    /**
     * 税额,单位:元
     *
     * taxPrice = totalPrice * taxPercent
     * 含税金额 = productPrice * count
     * taxPrice = 含税金额 * taxPercent
     */
    private BigDecimal taxPrice;
@@ -90,4 +97,10 @@
     */
    private BigDecimal returnCount;
    // ========== 质检 ==========
    /**
     * 是否需要来料检验
     */
    private Boolean qcCheckFlag;
}