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

Merge pull request #261 from piyushsinghania/fix/payment-entries-not-getting-posted

Fixed payment entries not getting posted in general ledger
This commit is contained in:
Alan 2021-11-29 17:31:51 +05:30 committed by GitHub
commit 5f4bf0be8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();