|
|
|
@ -165,7 +165,7 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl<BaseReceiptOutDao, |
|
|
|
|
// 转出税额累加
|
|
|
|
|
BigDecimal oldOutTax = record.getOutTaxAmount() == null ? new BigDecimal(0) : record.getOutTaxAmount(); |
|
|
|
|
BigDecimal newOutTax = oldOutTax.add(new BigDecimal(condVO.getOutTax())); |
|
|
|
|
int compareTax = newOutTax.compareTo(record.getDkTaxAmount()); |
|
|
|
|
int compareTax = newOutTax.compareTo(record.getTaxAmount()); |
|
|
|
|
if (compareTax > 0) { |
|
|
|
|
throw new RRException("累计转出税额不能大于发票税额"); |
|
|
|
|
} |
|
|
|
@ -222,7 +222,7 @@ public class ReceiptOutServiceImpl extends MpBaseServiceImpl<BaseReceiptOutDao, |
|
|
|
|
// 转出税额累加
|
|
|
|
|
BigDecimal oldOutTax = record.getOutTaxAmount() == null ? new BigDecimal(0) : record.getOutTaxAmount(); |
|
|
|
|
BigDecimal newOutTax = oldOutTax.add(new BigDecimal(condVO.getOutTax())); |
|
|
|
|
int compareTax = newOutTax.compareTo(invoice.getDkTaxAmount()); |
|
|
|
|
int compareTax = newOutTax.compareTo(invoice.getTaxAmount()); |
|
|
|
|
if (compareTax > 0) { |
|
|
|
|
throw new RRException("累计转出税额不能大于发票税额"); |
|
|
|
|
} |
|
|
|
|