mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
- feat: Sales estimates APIs.
- feat: Sales invoices APIs. - feat: Sales receipts APIs. - WIP: Sales payment receipts. - WIP: Purchases bills. - WIP: Purchases payments made.
This commit is contained in:
@@ -63,6 +63,10 @@ export default class JournalPoster {
|
||||
accountId: entry.account,
|
||||
});
|
||||
|
||||
if (entry.contactType && entry.contactId) {
|
||||
|
||||
}
|
||||
|
||||
// Effect parent accounts of the given account id.
|
||||
depAccountsIds.forEach((accountId) => {
|
||||
this._setAccountBalanceChange({
|
||||
@@ -96,6 +100,22 @@ export default class JournalPoster {
|
||||
this.balancesChange[accountId] += change;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set contact balance change.
|
||||
* @param {Object} param -
|
||||
*/
|
||||
_setContactBalanceChange({
|
||||
contactType,
|
||||
contactId,
|
||||
|
||||
accountNormal,
|
||||
debit,
|
||||
credit,
|
||||
entryType,
|
||||
}) {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Mapping the balance change to list.
|
||||
*/
|
||||
@@ -455,6 +475,9 @@ export default class JournalPoster {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the entries balance change.
|
||||
*/
|
||||
calculateEntriesBalanceChange() {
|
||||
this.entries.forEach((entry) => {
|
||||
if (entry.credit) {
|
||||
|
||||
Reference in New Issue
Block a user