| | |
| | | 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; |
| | | import lombok.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * ERP 采购申请明细 DO |
| | | * |
| | | * @author 芋道源码 |
| | | */ |
| | | @TableName("erp_purchase_request_items") |
| | | @KeySequence("erp_purchase_request_items_seq") |
| | |
| | | */ |
| | | @TableId |
| | | private Long id; |
| | | |
| | | /** |
| | | * 采购申请编号 |
| | | * |
| | | * 关联 {@link ErpPurchaseRequestDO#getId()} |
| | | */ |
| | | private Long requestId; |
| | | |
| | | /** |
| | | * 产品编号 |
| | | * |
| | | * 关联 {@link ErpProductDO#getId()} |
| | | */ |
| | | private Long productId; |
| | | |
| | | /** |
| | | * 产品单位编号 |
| | | * |
| | | * 冗余 {@link ErpProductDO#getUnitId()} |
| | | */ |
| | | private Long productUnitId; |
| | | |
| | | /** |
| | | * 产品单价(参考价),单位:元 |
| | | * 产品参考单价 |
| | | */ |
| | | private BigDecimal productPrice; |
| | | |
| | | /** |
| | | * 数量 |
| | | */ |
| | | private BigDecimal count; |
| | | |
| | | /** |
| | | * 总价,单位:元 |
| | | * |
| | | * totalPrice = productPrice * count |
| | | * 总价 |
| | | */ |
| | | private BigDecimal totalPrice; |
| | | |
| | | /** |
| | | * 税率,百分比 |
| | | */ |
| | | private BigDecimal taxPercent; |
| | | |
| | | /** |
| | | * 税额,单位:元 |
| | | * |
| | | * taxPrice = totalPrice * taxPercent |
| | | * 税额 |
| | | */ |
| | | private BigDecimal taxPrice; |
| | | |
| | | /** |
| | | * 需求日期 |
| | | */ |
| | | private LocalDate demandTime; |
| | | private LocalDateTime demandTime; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | private String remark; |
| | | |
| | | } |
| | | } |