收入支出合同履约记录单审核反审核操作系统插件二开代码修改,去除变更后含税总金额和变更后总金额字段的逻辑
This commit is contained in:
parent
70108b2b8b
commit
b1d7b678bc
|
@ -62,8 +62,8 @@ public abstract class AbstractContractPerformOpExt extends AbstractReverseWritin
|
||||||
protected void updateContractPerformAmt(String opkey, DynamicObject performrecords, DynamicObject contract) {
|
protected void updateContractPerformAmt(String opkey, DynamicObject performrecords, DynamicObject contract) {
|
||||||
BigDecimal contractPerformtaxamt = contract.getBigDecimal("performtaxamount");
|
BigDecimal contractPerformtaxamt = contract.getBigDecimal("performtaxamount");
|
||||||
BigDecimal performamount = contract.getBigDecimal("performamount");
|
BigDecimal performamount = contract.getBigDecimal("performamount");
|
||||||
BigDecimal totaloftaxamount = contract.getBigDecimal("totaloftaxamount");
|
/* BigDecimal totaloftaxamount = contract.getBigDecimal("totaloftaxamount");
|
||||||
BigDecimal totalamount = contract.getBigDecimal("totalamount");
|
BigDecimal totalamount = contract.getBigDecimal("totalamount");*///二开注销系统代码
|
||||||
BigDecimal amount = this.getTotalPerformTaxAmount(performrecords, "amount");
|
BigDecimal amount = this.getTotalPerformTaxAmount(performrecords, "amount");
|
||||||
BigDecimal notaxAmount = this.getTotalPerformTaxAmount(performrecords, "notaxamount");
|
BigDecimal notaxAmount = this.getTotalPerformTaxAmount(performrecords, "notaxamount");
|
||||||
DynamicObject contractCurrency = contract.getDynamicObject("currency");
|
DynamicObject contractCurrency = contract.getDynamicObject("currency");
|
||||||
|
@ -74,17 +74,17 @@ public abstract class AbstractContractPerformOpExt extends AbstractReverseWritin
|
||||||
if (StringUtils.equalsIgnoreCase("audit", opkey)) {
|
if (StringUtils.equalsIgnoreCase("audit", opkey)) {
|
||||||
contract.set("performtaxamount", contractPerformtaxamt.add(targetAmount));
|
contract.set("performtaxamount", contractPerformtaxamt.add(targetAmount));
|
||||||
contract.set("performamount", performamount.add(targetNotaxAmount));
|
contract.set("performamount", performamount.add(targetNotaxAmount));
|
||||||
contract.set("totaloftaxamount", totaloftaxamount.add(targetAmount));
|
// contract.set("totaloftaxamount", totaloftaxamount.add(targetAmount));//变更后含税总金额
|
||||||
contract.set("totalamount", totalamount.add(targetNotaxAmount));
|
// contract.set("totalamount", totalamount.add(targetNotaxAmount));//变更后总金额
|
||||||
} else if (StringUtils.equalsIgnoreCase("unaudit", opkey)) {
|
} else if (StringUtils.equalsIgnoreCase("unaudit", opkey)) {
|
||||||
BigDecimal performtaxamount1 = contractPerformtaxamt.subtract(targetAmount);
|
BigDecimal performtaxamount1 = contractPerformtaxamt.subtract(targetAmount);
|
||||||
BigDecimal performamount1 = performamount.subtract(targetNotaxAmount);
|
BigDecimal performamount1 = performamount.subtract(targetNotaxAmount);
|
||||||
BigDecimal totaloftaxamount1 = totaloftaxamount.subtract(targetAmount);
|
/* BigDecimal totaloftaxamount1 = totaloftaxamount.subtract(targetAmount);
|
||||||
BigDecimal totalamount1 = totalamount.subtract(targetNotaxAmount);
|
BigDecimal totalamount1 = totalamount.subtract(targetNotaxAmount);*///二开注销系统代码
|
||||||
contract.set("performtaxamount", performtaxamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : performtaxamount1);
|
contract.set("performtaxamount", performtaxamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : performtaxamount1);
|
||||||
contract.set("performamount", performamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : performamount1);
|
contract.set("performamount", performamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : performamount1);
|
||||||
contract.set("totaloftaxamount", totaloftaxamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : totaloftaxamount1);
|
/* contract.set("totaloftaxamount", totaloftaxamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : totaloftaxamount1);//变更后含税总金额
|
||||||
contract.set("totalamount", totalamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : totalamount1);
|
contract.set("totalamount", totalamount1.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : totalamount1);//变更后总金额*///二开注销系统代码
|
||||||
}
|
}
|
||||||
|
|
||||||
SaveServiceHelper.save(new DynamicObject[]{contract});
|
SaveServiceHelper.save(new DynamicObject[]{contract});
|
||||||
|
|
|
@ -17,7 +17,10 @@ import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
import kd.ec.basedata.common.enums.PayDirectionEnum;
|
import kd.ec.basedata.common.enums.PayDirectionEnum;
|
||||||
import kd.ec.contract.opplugin.AbstractContractPerformOp;
|
import kd.ec.contract.opplugin.AbstractContractPerformOp;
|
||||||
|
|
||||||
public class InContractPerformOpExt extends AbstractContractPerformOp {
|
/**
|
||||||
|
* 收入合同履约记录单审核反审核操作系统插件二开
|
||||||
|
**/
|
||||||
|
public class InContractPerformOpExt extends AbstractContractPerformOpExt {
|
||||||
public InContractPerformOpExt() {
|
public InContractPerformOpExt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,10 @@ import kd.ec.basedata.common.enums.PayDirectionEnum;
|
||||||
import kd.ec.contract.opplugin.AbstractContractPerformOp;
|
import kd.ec.contract.opplugin.AbstractContractPerformOp;
|
||||||
import kd.ec.contract.opplugin.validator.AfterBillInContractAmtControlValidator;
|
import kd.ec.contract.opplugin.validator.AfterBillInContractAmtControlValidator;
|
||||||
import kd.ec.contract.opplugin.validator.PerformAmountValidator;
|
import kd.ec.contract.opplugin.validator.PerformAmountValidator;
|
||||||
|
/**
|
||||||
public class OutContractPerformOpExt extends AbstractContractPerformOp {
|
* 支出合同履约记录单审核反审核操作系统插件二开
|
||||||
|
**/
|
||||||
|
public class OutContractPerformOpExt extends AbstractContractPerformOpExt {
|
||||||
public OutContractPerformOpExt() {
|
public OutContractPerformOpExt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue