mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix: issue in sales invoices and bills.
This commit is contained in:
@@ -51,7 +51,7 @@ export default class PaymentMadesSubscriber {
|
||||
this.logger.info('[bill_payment] trying to increment vendor balance.', { tenantId });
|
||||
await vendorRepository.changeBalance(
|
||||
billPayment.vendorId,
|
||||
billPayment.amount,
|
||||
billPayment.amount * -1,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ export default class PaymentMadesSubscriber {
|
||||
|
||||
await vendorRepository.changeBalance(
|
||||
oldPaymentMade.vendorId,
|
||||
oldPaymentMade.amount * -1,
|
||||
oldPaymentMade.amount,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user