fix 工作组-申请开票 无法申请
This commit is contained in:
+3
@@ -842,6 +842,9 @@ public class PayPaymentRecordServiceImpl extends ServiceImpl<PayPaymentRecordMap
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void isTax(BigDecimal tax,BigDecimal noTaxAmount,BigDecimal amountReceived){
|
public void isTax(BigDecimal tax,BigDecimal noTaxAmount,BigDecimal amountReceived){
|
||||||
|
if (tax == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (amountReceived.compareTo(tax.add(noTaxAmount)) != 0) {
|
if (amountReceived.compareTo(tax.add(noTaxAmount)) != 0) {
|
||||||
throw new JeroBootException("税额和未税金额相加不等于总金额");
|
throw new JeroBootException("税额和未税金额相加不等于总金额");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user