feat(provisioning-entries): view journal entries

Add view provisioning journal entries component.
Also, add feature to create provisioning journal entries and recreate provisioning.
This commit is contained in:
Abhay Chawla
2018-08-08 13:44:50 +05:30
parent 493246bee5
commit 314fd2b537
11 changed files with 234 additions and 11 deletions
+15
View File
@@ -194,4 +194,19 @@ export class AccountingService {
return this.http.get('/provisioningentries/entries', { params: httpParams });
}
getProvisioningJournalEntries(entryId: string) {
const httpParams = new HttpParams().set('entryId', entryId);
return this.http.get('/journalentries/provisioning', { params: httpParams });
}
createProvisioningJournalEntries(provisioningEntryId: string) {
const httpParams = new HttpParams().set('command', 'createjournalentry');
return this.http.post(`/provisioningentries/${provisioningEntryId}`, {}, { params: httpParams });
}
recreateProvisioningEntries(provisioningEntryId: string) {
const httpParams = new HttpParams().set('command', 'recreateprovisioningentry');
return this.http.post(`/provisioningentries/${provisioningEntryId}`, {}, { params: httpParams });
}
}