diff --git a/models/doctype/Payment/PaymentServer.js b/models/doctype/Payment/PaymentServer.js index 55025a91..3b024144 100644 --- a/models/doctype/Payment/PaymentServer.js +++ b/models/doctype/Payment/PaymentServer.js @@ -132,6 +132,11 @@ export default class PaymentServer extends BaseDocument { } } + async afterSubmit() { + const entries = await this.getPosting(); + await entries.post(); + } + async afterRevert() { this.updateReferenceOutstandingAmount(); const entries = await this.getPosting();