|
|
@@ -276,6 +276,7 @@ public class InvoiceFPurchaseDetail {
|
|
|
this.b2cMaxDelivery = puDetail.getB2cMaxDelivery();
|
|
|
this.remark = puDetail.getRemark();
|
|
|
this.goodsnumber = puDetail.getGoodsnumber();
|
|
|
+ this.productid = puDetail.getProductid();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -284,36 +285,13 @@ public class InvoiceFPurchaseDetail {
|
|
|
* @param puDetail 采购单明细
|
|
|
*/
|
|
|
public InvoiceFPurchaseDetail(PurchaseDetail puDetail, Double qty) {
|
|
|
- if (puDetail == null) {
|
|
|
- throw new IllegalStatusException("采购单明细已失效");
|
|
|
- }
|
|
|
- this.pudetailid = puDetail.getId();
|
|
|
- this.batchCode = puDetail.getBatchCode();
|
|
|
- this.uuid = puDetail.getUuid();
|
|
|
- this.original = puDetail.getOriginal();
|
|
|
- this.cmpCode = puDetail.getCmpCode();
|
|
|
- this.kiName = puDetail.getKiName();
|
|
|
- this.kindUuid = puDetail.getKindUuid();
|
|
|
- this.brName = puDetail.getBrName();
|
|
|
- this.brandNameCn = puDetail.getBrandNameCn();
|
|
|
- this.branduuid = puDetail.getBranduuid();
|
|
|
- this.brandid = puDetail.getBrandid();
|
|
|
- this.img = puDetail.getImg();
|
|
|
- this.unitprice = puDetail.getUnitprice();
|
|
|
- this.taxUnitPrice = puDetail.getTaxUnitPrice();
|
|
|
+ this(puDetail);
|
|
|
this.number = qty;
|
|
|
this.taxes = puDetail.getTaxes();
|
|
|
this.price = NumberUtil.mul(qty, this.taxUnitPrice);
|
|
|
this.ensurePrice = this.price;
|
|
|
this.transationPrice = this.price;
|
|
|
- this.currencyName = puDetail.getCurrencyName();
|
|
|
- this.tax = puDetail.getTax();
|
|
|
- this.returnInWeek = puDetail.getReturnInWeek();
|
|
|
- this.b2cMinDelivery = puDetail.getB2cMinDelivery();
|
|
|
- this.b2cMaxDelivery = puDetail.getB2cMaxDelivery();
|
|
|
- this.remark = puDetail.getRemark();
|
|
|
- this.goodsnumber = puDetail.getGoodsnumber();
|
|
|
- this.spec = puDetail.getSpec();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public Long getId() {
|