|
@@ -112,12 +112,12 @@ public class GeneralDefdocPlugin extends AbstractPfxxPlugin {
|
|
|
bodyvo.setNqttaxprice(nqtorigtaxprice);//本币含税单价
|
|
|
bodyvo.setNqtprice(nqtorigprice);//本币无税单价
|
|
|
bodyvo.setNqttaxnetprice(nqtorigtaxprice);//本币含税净价
|
|
|
- bodyvo.setNorigtaxnetprice(nqtorigtaxprice);//本含税净价
|
|
|
- bodyvo.setNorignetprice(nqtorigprice);//本无税净价
|
|
|
+// bodyvo.setNorigtaxnetprice(nqtorigtaxprice);//本含税净价
|
|
|
+// bodyvo.setNorignetprice(nqtorigprice);//本无税净价
|
|
|
bodyvo.setNqtnetprice(nqtorigprice);//本币无税净价
|
|
|
- bodyvo.setNtaxprice(nqtorigtaxprice);//主本币含税单价
|
|
|
+// bodyvo.setNtaxprice(nqtorigtaxprice);//主本币含税单价
|
|
|
bodyvo.setNpiece(nqtorigprice);//主本币无税单价
|
|
|
- bodyvo.setNtaxnetprice(nqtorigtaxprice);//主本币含税净价
|
|
|
+// bodyvo.setNtaxnetprice(nqtorigtaxprice);//主本币含税净价
|
|
|
bodyvo.setNorigtaxnetprice(nqtorigtaxprice);//主含税净价
|
|
|
bodyvo.setNorignetprice(nqtorigprice);//主无税净价
|
|
|
bodyvo.setNnetprice(nqtorigprice);//主本币无税净价
|
|
@@ -134,7 +134,7 @@ public class GeneralDefdocPlugin extends AbstractPfxxPlugin {
|
|
|
UFDouble norigprice=bodyvo.getNorigtaxprice();//主原币含税单价
|
|
|
UFDouble foreignAmount= currRateUtil.getAmountByOpp(corigcurrencyid,
|
|
|
ccurrencyid, norigprice, foreignrate, headvo.getDbilldate());
|
|
|
- bodyvo.setNtaxprice(foreignAmount);//主本币含税单价
|
|
|
+// bodyvo.setNtaxprice(foreignAmount);//主本币含税单价
|
|
|
UFDouble ngprice=currRateUtil.getAmountByOpp(corigcurrencyid,
|
|
|
ccurrencyid, bodyvo.getNorigprice()/*主原币无税单价*/, foreignrate, headvo.getDbilldate());
|
|
|
bodyvo.setNprice(ngprice); // 主本币无税单价
|
|
@@ -146,18 +146,24 @@ public class GeneralDefdocPlugin extends AbstractPfxxPlugin {
|
|
|
UFDouble ntaxmny=currRateUtil.getAmountByOpp(corigcurrencyid,
|
|
|
ccurrencyid, bodyvo.getNorigtaxmny()/*原币价税合计*/, foreignrate, headvo.getDbilldate());
|
|
|
bodyvo.setNtaxmny(ntaxmny);//ntaxmny 本币价税合计
|
|
|
- bodyvo.setNcaltaxmny(nmny);//计税金额
|
|
|
+ bodyvo.setNcaltaxmny(ntaxmny);//计税金额
|
|
|
bodyvo.setNqtnetprice(ngprice);//本币无税净价
|
|
|
bodyvo.setNnetprice(ngprice);//主本币无税净价
|
|
|
bodyvo.setNorignetprice(ngprice);//主无税净价
|
|
|
bodyvo.setNqttaxnetprice(foreignAmount);//本币含税净价
|
|
|
- bodyvo.setNorigtaxnetprice(foreignAmount);//本含税净价
|
|
|
- bodyvo.setNorignetprice(ngprice);//本无税净价
|
|
|
- bodyvo.setNtaxnetprice(foreignAmount);//主本币含税净价
|
|
|
+// bodyvo.setNorigtaxnetprice(foreignAmount);//本含税净价
|
|
|
+// bodyvo.setNorignetprice(ngprice);//本无税净价
|
|
|
+// bodyvo.setNtaxnetprice(foreignAmount);//主本币含税净价
|
|
|
bodyvo.setNorigtaxnetprice(foreignAmount);//主含税净价
|
|
|
bodyvo.setNtax(ntaxmny.sub(nmny));//税额=价税合计-无税金额
|
|
|
bodyvo.setNqtorigtaxnetprc(foreignAmount);//含税净价
|
|
|
bodyvo.setNqtorignetprice(ngprice);//无税净价
|
|
|
+
|
|
|
+
|
|
|
+ bodyvo.setNorignetprice(bodyvo.getNorigprice());//本无税净价
|
|
|
+ bodyvo.setNorigtaxnetprice(bodyvo.getNorigtaxprice());//主含税净价
|
|
|
+ bodyvo.setNtaxnetprice(bodyvo.getNorigtaxprice());//主本币含税净价
|
|
|
+ bodyvo.setNtaxprice(bodyvo.getNorigtaxprice());//主本币含税单价
|
|
|
} catch (BusinessException e) {
|
|
|
// TODO 自动生成的 catch 块
|
|
|
ExceptionUtils.wrappBusinessException(e.getMessage());
|