fix 工作组-申请开票 无法申请

This commit is contained in:
lijiarao
2022-08-31 15:12:35 +08:00
parent abbfc44eae
commit 3ff5a29a88
@@ -842,6 +842,9 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
*/
@Override
public void isTax(BigDecimal tax,BigDecimal noTaxAmount,BigDecimal amountReceived){
if (tax == null) {
return;
}
if (amountReceived.compareTo(tax.add(noTaxAmount)) != 0) {
throw new JeroBootException("税额和未税金额相加不等于总金额");
}