|
|
@@ -222,7 +222,7 @@ public class InvoiceDetail {
|
|
|
* 含税单价
|
|
|
*/
|
|
|
@Column(name = "detail_taxunitprice")
|
|
|
- private Double taxunitprice;
|
|
|
+ private Double taxUnitprice;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -512,12 +512,13 @@ public class InvoiceDetail {
|
|
|
this.tax = tax;
|
|
|
}
|
|
|
|
|
|
- public Double getTaxunitprice() {
|
|
|
- return taxunitprice;
|
|
|
+ public Double getTaxUnitprice() {
|
|
|
+ return taxUnitprice;
|
|
|
}
|
|
|
|
|
|
- public void setTaxunitprice(Double taxunitprice) {
|
|
|
- this.taxunitprice = taxunitprice;
|
|
|
+ public InvoiceDetail setTaxUnitprice(Double taxUnitprice) {
|
|
|
+ this.taxUnitprice = taxUnitprice;
|
|
|
+ return this;
|
|
|
}
|
|
|
|
|
|
public Long getOrderDetailId() {
|
|
|
@@ -588,7 +589,7 @@ public class InvoiceDetail {
|
|
|
this.brandid = puDetail.getBrandid();
|
|
|
this.img = puDetail.getImg();
|
|
|
this.unitprice = puDetail.getUnitprice();
|
|
|
- this.taxunitprice = puDetail.getTaxUnitPrice();
|
|
|
+ this.taxUnitprice = puDetail.getTaxUnitPrice();
|
|
|
this.qty = puDetail.getNumber();
|
|
|
this.taxes = puDetail.getTaxes();
|
|
|
this.price = puDetail.getPrice();
|
|
|
@@ -614,7 +615,7 @@ public class InvoiceDetail {
|
|
|
this(puDetail);
|
|
|
this.qty = qty;
|
|
|
this.taxes = puDetail.getTaxes();
|
|
|
- this.price = NumberUtil.mul(qty, this.taxunitprice);
|
|
|
+ this.price = NumberUtil.mul(qty, this.taxUnitprice);
|
|
|
this.ensurePrice = this.price;
|
|
|
this.transationPrice = this.price;
|
|
|
|
|
|
@@ -643,7 +644,7 @@ public class InvoiceDetail {
|
|
|
this.img = detail.getImg();
|
|
|
this.original = detail.getOriginal();
|
|
|
this.unitprice = detail.getUnitprice();
|
|
|
- this.taxunitprice = detail.getTaxUnitprice();
|
|
|
+ this.taxUnitprice = detail.getTaxUnitprice();
|
|
|
Double taxRate = detail.getTaxRate() == null ? 0 : detail.getTaxRate();
|
|
|
this.tax = Double.valueOf(taxRate * 100).shortValue();
|
|
|
this.taxes = detail.getTaxes();
|
|
|
@@ -670,9 +671,9 @@ public class InvoiceDetail {
|
|
|
*/
|
|
|
public InvoiceDetail(OrderDetail detail, String detailId, Double qty) {
|
|
|
this(detail, detailId);
|
|
|
- this.taxes = NumberUtil.mul(NumberUtil.sub(this.taxunitprice, this.unitprice), qty);
|
|
|
+ this.taxes = NumberUtil.mul(NumberUtil.sub(this.taxUnitprice, this.unitprice), qty);
|
|
|
this.qty = qty;
|
|
|
- this.price = NumberUtil.mul(qty, this.taxunitprice);
|
|
|
+ this.price = NumberUtil.mul(qty, this.taxUnitprice);
|
|
|
this.ensurePrice = this.price;
|
|
|
}
|
|
|
|
|
|
@@ -713,11 +714,50 @@ public class InvoiceDetail {
|
|
|
this.transationPrice = fPurchaseDetail.getTransationPrice();
|
|
|
this.taxes = fPurchaseDetail.getTaxes();
|
|
|
this.tax = fPurchaseDetail.getTax();
|
|
|
- this.taxunitprice = fPurchaseDetail.getTaxUnitPrice();
|
|
|
+ this.taxUnitprice = fPurchaseDetail.getTaxUnitPrice();
|
|
|
this.b2cMaxDelivery = fPurchaseDetail.getB2cMaxDelivery();
|
|
|
this.b2cMinDelivery = fPurchaseDetail.getB2cMinDelivery();
|
|
|
this.spec = fPurchaseDetail.getSpec();
|
|
|
this.status = fPurchaseDetail.getStatus();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param fOrderDetail
|
|
|
+ */
|
|
|
+ public InvoiceDetail(InvoiceFOrderDetail fOrderDetail) {
|
|
|
+ this.detailid = fOrderDetail.getDetailid();
|
|
|
+ this.detno = fOrderDetail.getDetno();
|
|
|
+ this.orderDetailId = fOrderDetail.getOrdetailid();
|
|
|
+ this.purchaseDetailId = fOrderDetail.getProductid();
|
|
|
+ this.batchCode = fOrderDetail.getBatchCode();
|
|
|
+ this.remark = fOrderDetail.getRemark();
|
|
|
+ this.goodsnumber = fOrderDetail.getGoodsnumber();
|
|
|
+ this.productid = fOrderDetail.getProductid();
|
|
|
+ this.original = fOrderDetail.getOriginal();
|
|
|
+ this.uuid = fOrderDetail.getUuid();
|
|
|
+ this.cmpCode = fOrderDetail.getCmpCode();
|
|
|
+ this.kiName = fOrderDetail.getKiName();
|
|
|
+ this.kindUuid = fOrderDetail.getKindUuid();
|
|
|
+ this.brandNameCn = fOrderDetail.getBrandNameCn();
|
|
|
+ this.brandNameEn = fOrderDetail.getBrName();
|
|
|
+ this.brandid = fOrderDetail.getBrandid();
|
|
|
+ this.branduuid = fOrderDetail.getBranduuid();
|
|
|
+ this.img = fOrderDetail.getImg();
|
|
|
+ this.unitprice = fOrderDetail.getUnitprice();
|
|
|
+ this.qty = fOrderDetail.getNumber();
|
|
|
+ this.currency = fOrderDetail.getCurrency();
|
|
|
+ this.price = fOrderDetail.getPrice();
|
|
|
+ this.ensurePrice = fOrderDetail.getEnsurePrice();
|
|
|
+ this.transationPrice = fOrderDetail.getTransationPrice();
|
|
|
+ this.taxes = fOrderDetail.getTaxes();
|
|
|
+ this.tax = fOrderDetail.getTax();
|
|
|
+ this.taxUnitprice = fOrderDetail.getTaxunitprice();
|
|
|
+ this.b2cMaxDelivery = fOrderDetail.getB2cMaxDelivery();
|
|
|
+ this.b2cMinDelivery = fOrderDetail.getB2cMinDelivery();
|
|
|
+ this.spec = fOrderDetail.getSpec();
|
|
|
+ this.status = fOrderDetail.getStatus();
|
|
|
+ }
|
|
|
+
|
|
|
}
|