Skip to content

Commit

Permalink
Merge pull request #864 from Abhi135721/master
Browse files Browse the repository at this point in the history
Fix issue : Purchase Payment Bug on Both Party #860
  • Loading branch information
Isaac-GC authored Mar 4, 2024
2 parents 76caea3 + 66e952f commit 09fb557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/baseModels/Payment/Payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ export class Payment extends Transactional {
const outstanding = partyDoc.outstandingAmount as Money;

if (outstanding.isNegative()) {
if (this.referenceType === ModelNameEnum.SalesInvoice) {
if (this.referenceType === ModelNameEnum.PurchaseInvoice) {
return 'Pay';
}
return 'Receive';
Expand Down

0 comments on commit 09fb557

Please sign in to comment.