Merge pull request #1522 from josehernandezfintecheandomx/fix/set_today_business_date
Fix to set the business date as today
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
Submit
|
||||
</button>
|
||||
</span>
|
||||
<button mat-button *ngIf="isEditInProgress" (click)="editInProgressToggle(0)">
|
||||
<button mat-button *ngIf="isEditInProgress && (dateIndex == 0)" (click)="editInProgressToggle(0)">
|
||||
Cancel
|
||||
</button>
|
||||
<button type="button" color="primary" *ngIf="!isEditInProgress" mat-icon-button matTooltip="Edit the Business Date"
|
||||
@@ -80,7 +80,7 @@
|
||||
Submit
|
||||
</button>
|
||||
</span>
|
||||
<button mat-button *ngIf="isEditInProgress" (click)="editInProgressToggle(1)">
|
||||
<button mat-button *ngIf="isEditInProgress && (dateIndex == 1)" (click)="editInProgressToggle(1)">
|
||||
Cancel
|
||||
</button>
|
||||
<button type="button" color="primary" *ngIf="!isEditInProgress" mat-icon-button matTooltip="Edit the COB Date"
|
||||
|
||||
@@ -88,8 +88,14 @@ export class BusinessDateTabComponent implements OnInit {
|
||||
businessDateData.forEach((data: any) => {
|
||||
if (data.type === SettingsService.businessDateType) {
|
||||
this.businessDate = new Date(data.date);
|
||||
this.businessDateForm.patchValue({
|
||||
businessDate: this.businessDate
|
||||
});
|
||||
} else {
|
||||
this.cobDate = new Date(data.date);
|
||||
this.businessDateForm.patchValue({
|
||||
cobDate: this.cobDate
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user