This commit is contained in:
parent
d1ecace98e
commit
52d3f675a8
|
@ -60,7 +60,7 @@ public class SumInvoiceEntryPlugin extends AbstractBillPlugIn implements Plugin
|
||||||
DynamicObject entry_taxrate = invoiceDetails.get(0).getDynamicObject("entry_taxrate");
|
DynamicObject entry_taxrate = invoiceDetails.get(0).getDynamicObject("entry_taxrate");
|
||||||
BigDecimal taxrate = entry_taxrate.getBigDecimal("taxrate");
|
BigDecimal taxrate = entry_taxrate.getBigDecimal("taxrate");
|
||||||
//本次核销不含税金额=含税金额(本次核销金额)÷ (1 + 税率)
|
//本次核销不含税金额=含税金额(本次核销金额)÷ (1 + 税率)
|
||||||
notTaxAmount=hasWriteOffAmt.divide(taxrate.add(BigDecimal.ONE),2, RoundingMode.HALF_UP);
|
notTaxAmount=hasWriteOffAmt.divide(taxrate.divide(BigDecimal.valueOf(100)).add(BigDecimal.ONE),2, RoundingMode.HALF_UP);
|
||||||
//本次核销金额的税额=含税金额(本次核销金额) - 本次核销不含税金额
|
//本次核销金额的税额=含税金额(本次核销金额) - 本次核销不含税金额
|
||||||
taxAmount = hasWriteOffAmt.subtract(notTaxAmount).setScale(2, RoundingMode.HALF_UP);
|
taxAmount = hasWriteOffAmt.subtract(notTaxAmount).setScale(2, RoundingMode.HALF_UP);
|
||||||
dynamicObject.set("qeug_amountfield",notTaxAmount);
|
dynamicObject.set("qeug_amountfield",notTaxAmount);
|
||||||
|
|
|
@ -686,7 +686,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
||||||
Long currentTaxRateId = (Long) entryTaxRate.getPkValue();
|
Long currentTaxRateId = (Long) entryTaxRate.getPkValue();
|
||||||
BigDecimal currentTaxRate = entryTaxRate.getBigDecimal("taxrate");
|
BigDecimal currentTaxRate = entryTaxRate.getBigDecimal("taxrate");
|
||||||
//本次核销不含税金额=含税金额(本次核销金额)÷ (1 + 税率)
|
//本次核销不含税金额=含税金额(本次核销金额)÷ (1 + 税率)
|
||||||
BigDecimal entryNotTaxAmount=hasWriteOffAmt.divide(currentTaxRate.add(BigDecimal.ONE),2, RoundingMode.HALF_UP);
|
BigDecimal entryNotTaxAmount=hasWriteOffAmt.divide(currentTaxRate.divide(BigDecimal.valueOf(100)).add(BigDecimal.ONE),2, RoundingMode.HALF_UP);
|
||||||
// 专票不含税=本次核销不含税金额累加
|
// 专票不含税=本次核销不含税金额累加
|
||||||
// 本次核销不含税金额累加
|
// 本次核销不含税金额累加
|
||||||
notTaxAmount=notTaxAmount.add(entryNotTaxAmount);
|
notTaxAmount=notTaxAmount.add(entryNotTaxAmount);
|
||||||
|
@ -805,7 +805,7 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
||||||
Long currentTaxRateId = (Long) entryTaxRate.getPkValue();
|
Long currentTaxRateId = (Long) entryTaxRate.getPkValue();
|
||||||
BigDecimal currentTaxRate = entryTaxRate.getBigDecimal("taxrate");
|
BigDecimal currentTaxRate = entryTaxRate.getBigDecimal("taxrate");
|
||||||
//本次核销不含税金额=含税金额(本次核销金额)÷ (1 + 税率)
|
//本次核销不含税金额=含税金额(本次核销金额)÷ (1 + 税率)
|
||||||
BigDecimal entryNotTaxAmount=hasWriteOffAmt.divide(currentTaxRate.add(BigDecimal.ONE),2, RoundingMode.HALF_UP);
|
BigDecimal entryNotTaxAmount=hasWriteOffAmt.divide(currentTaxRate.divide(BigDecimal.valueOf(100)).add(BigDecimal.ONE),2, RoundingMode.HALF_UP);
|
||||||
// 专票不含税=本次核销不含税金额累加
|
// 专票不含税=本次核销不含税金额累加
|
||||||
// 本次核销不含税金额累加
|
// 本次核销不含税金额累加
|
||||||
notTaxAmount=notTaxAmount.add(entryNotTaxAmount);
|
notTaxAmount=notTaxAmount.add(entryNotTaxAmount);
|
||||||
|
|
Loading…
Reference in New Issue