Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.uiBlockService.showUiBlock();
- this.adminPeriodeGajiService.search({ salaryDate : this.inputForm.value.tglMutasi })
- .pipe(
- switchMap((periods: GaResponse<AdminPeriodeGaji[]>) => {
- this.penggajianForm.patchValue({
- bulanBerlaku : periods.data[0].yearMonth
- });
- return this.employeeSalaryService.search({ employeeId : this.karyawan.id, beginDate: this.inputForm.value.tglMutasi });
- }),
- takeUntil(this.ngUnsubscribe)
- )
- .subscribe(
- (result) => {
- this.uiBlockService.hideUiBlock();
- this.penggajianForm.patchValue({
- oldGaji: result.data[0].basicSalary,
- gaji : result.data[0].basicSalary
- });
- },
- (error) => {
- this.uiBlockService.hideUiBlock();
- this.contentAlertService.error(error.errors);
- },
- () => { this.uiBlockService.hideUiBlock(); }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement