2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Fixed payment entries not getting posted in general ledger

This commit is contained in:
Piyush Singhania 2021-11-29 16:02:58 +05:30
parent 5251138542
commit 8a0e295f68

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