fix: sync contacts balance with journal entries.

fix: edit invoice amount that has payment transactions.
This commit is contained in:
a.bouhuolia
2021-03-02 11:22:44 +02:00
parent b98d18f189
commit d51d9a5038
29 changed files with 477 additions and 401 deletions

View File

@@ -40,7 +40,7 @@ export default class Vendor extends TenantModel {
* Defined virtual attributes.
*/
static get virtualAttributes() {
return ['closingBalance'];
return ['closingBalance', 'contactNormal'];
}
/**
@@ -50,6 +50,13 @@ export default class Vendor extends TenantModel {
return this.openingBalance + this.balance;
}
/**
* Retrieve the contact noraml;
*/
get contactNormal() {
return 'debit';
}
/**
* Model modifiers.
*/