|
@@ -5,7 +5,6 @@ import com.uas.platform.b2b.model.PurchaseOrder;
|
|
|
import com.uas.platform.b2b.model.PurchaseOrderItem;
|
|
import com.uas.platform.b2b.model.PurchaseOrderItem;
|
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
-import java.text.DecimalFormat;
|
|
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -121,9 +120,8 @@ public class FxPurcAcceptItem {
|
|
|
this.acceptCode = acceptItem.getAccept().getCode();
|
|
this.acceptCode = acceptItem.getAccept().getCode();
|
|
|
this.acceptDate = acceptItem.getAccept().getDate();
|
|
this.acceptDate = acceptItem.getAccept().getDate();
|
|
|
this.acceptQty = acceptItem.getQty();
|
|
this.acceptQty = acceptItem.getQty();
|
|
|
- DecimalFormat df = new DecimalFormat("0.000000");
|
|
|
|
|
if (!StringUtils.isEmpty(acceptItem.getQty()) && !StringUtils.isEmpty(acceptItem.getOrderPrice())) {
|
|
if (!StringUtils.isEmpty(acceptItem.getQty()) && !StringUtils.isEmpty(acceptItem.getOrderPrice())) {
|
|
|
- this.acceptAmount = Double.parseDouble(df.format(acceptItem.getQty()*acceptItem.getOrderPrice())) ;
|
|
|
|
|
|
|
+ this.acceptAmount = acceptItem.getQty()*acceptItem.getOrderPrice() ;
|
|
|
} else {
|
|
} else {
|
|
|
this.acceptAmount = 0d;
|
|
this.acceptAmount = 0d;
|
|
|
}
|
|
}
|
|
@@ -140,9 +138,8 @@ public class FxPurcAcceptItem {
|
|
|
this.acceptCode = acceptItem.getAccept().getCode();
|
|
this.acceptCode = acceptItem.getAccept().getCode();
|
|
|
this.acceptDate = acceptItem.getAccept().getDate();
|
|
this.acceptDate = acceptItem.getAccept().getDate();
|
|
|
this.acceptQty = acceptItem.getQty();
|
|
this.acceptQty = acceptItem.getQty();
|
|
|
- DecimalFormat df = new DecimalFormat("0.000000");
|
|
|
|
|
if (!StringUtils.isEmpty(acceptItem.getQty()) && !StringUtils.isEmpty(acceptItem.getOrderPrice())) {
|
|
if (!StringUtils.isEmpty(acceptItem.getQty()) && !StringUtils.isEmpty(acceptItem.getOrderPrice())) {
|
|
|
- this.acceptAmount = Double.parseDouble(df.format(acceptItem.getQty()*acceptItem.getOrderPrice())) ;
|
|
|
|
|
|
|
+ this.acceptAmount = acceptItem.getQty()*acceptItem.getOrderPrice() ;
|
|
|
} else {
|
|
} else {
|
|
|
this.acceptAmount = 0d;
|
|
this.acceptAmount = 0d;
|
|
|
}
|
|
}
|