feat(accounting): migrate opening balances (#277)

Add migrate opening balances component to set the opening balances for
GL Accounts for a branch or entire organisation.
This commit is contained in:
Abhay Chawla
2018-08-08 14:29:00 +05:30
committed by GitHub
parent 314fd2b537
commit 4be4cb9a68
8 changed files with 290 additions and 5 deletions
+12
View File
@@ -209,4 +209,16 @@ export class AccountingService {
return this.http.post(`/provisioningentries/${provisioningEntryId}`, {}, { params: httpParams });
}
retrieveOpeningBalances(officeId: number) {
let httpParams = new HttpParams();
httpParams = httpParams.set('officeId', officeId.toString());
return this.http.get('/journalentries/openingbalance', { params: httpParams });
}
defineOpeningBalances(openingBalances: any) {
let httpParams = new HttpParams();
httpParams = httpParams.set('command', 'defineOpeningBalance');
return this.http.post(`/journalentries`, openingBalances, { params: httpParams });
}
}