2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

Merge pull request #864 from Abhi135721/master

Fix issue : Purchase Payment Bug on Both Party #860
This commit is contained in:
Isaac-GC 2024-03-03 17:26:41 -08:00 committed by GitHub
commit 09fb5570d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -604,7 +604,7 @@ export class Payment extends Transactional {
const outstanding = partyDoc.outstandingAmount as Money; const outstanding = partyDoc.outstandingAmount as Money;
if (outstanding.isNegative()) { if (outstanding.isNegative()) {
if (this.referenceType === ModelNameEnum.SalesInvoice) { if (this.referenceType === ModelNameEnum.PurchaseInvoice) {
return 'Pay'; return 'Pay';
} }
return 'Receive'; return 'Receive';