diff --git a/models/baseModels/Payment/Payment.ts b/models/baseModels/Payment/Payment.ts index 38ee4418..3f021ec3 100644 --- a/models/baseModels/Payment/Payment.ts +++ b/models/baseModels/Payment/Payment.ts @@ -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';