Added automatic generation in dashboard when employees start application to generate product under limit during absence
This commit is contained in:
@@ -77,7 +77,7 @@ export class CreatePurchaseorderForm {
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
refresh(){
|
||||
refresh() {
|
||||
this.lines.clear();
|
||||
|
||||
this.getProductsOfSupplier().forEach(x => {
|
||||
|
||||
@@ -9,37 +9,37 @@ import {firstValueFrom} from "rxjs";
|
||||
import {NzNotificationService} from "ng-zorro-antd/notification";
|
||||
|
||||
@Component({
|
||||
selector: 'app-deliverer-choice',
|
||||
imports: [
|
||||
FormsModule,
|
||||
NzColDirective,
|
||||
NzFlexDirective,
|
||||
NzFormControlComponent,
|
||||
NzFormLabelComponent,
|
||||
NzOptionComponent,
|
||||
NzRowDirective,
|
||||
NzSelectComponent,
|
||||
ReactiveFormsModule
|
||||
],
|
||||
templateUrl: './deliverer-choice.html',
|
||||
styleUrl: './deliverer-choice.css',
|
||||
selector: 'app-deliverer-choice',
|
||||
imports: [
|
||||
FormsModule,
|
||||
NzColDirective,
|
||||
NzFlexDirective,
|
||||
NzFormControlComponent,
|
||||
NzFormLabelComponent,
|
||||
NzOptionComponent,
|
||||
NzRowDirective,
|
||||
NzSelectComponent,
|
||||
ReactiveFormsModule
|
||||
],
|
||||
templateUrl: './deliverer-choice.html',
|
||||
styleUrl: './deliverer-choice.css',
|
||||
})
|
||||
export class DelivererChoice implements OnInit {
|
||||
private deliverersService = inject(DeliverersService);
|
||||
private notificationService = inject(NzNotificationService);
|
||||
private deliverersService = inject(DeliverersService);
|
||||
private notificationService = inject(NzNotificationService);
|
||||
|
||||
choiceDelivererForm: FormGroup = new FormGroup({
|
||||
delivererId: new FormControl<number>(null, Validators.required),
|
||||
});
|
||||
choiceDelivererForm: FormGroup = new FormGroup({
|
||||
delivererId: new FormControl<number>(null, Validators.required),
|
||||
});
|
||||
|
||||
deliverers = signal<GetDelivererDto[]>([]);
|
||||
deliverers = signal<GetDelivererDto[]>([]);
|
||||
|
||||
async ngOnInit() {
|
||||
try {
|
||||
const deliverers = await firstValueFrom(this.deliverersService.getAllDelivererEndpoint());
|
||||
this.deliverers.set(deliverers);
|
||||
} catch {
|
||||
this.notificationService.error('Erreur', 'Erreur lors de l\'affichage des livreurs');
|
||||
async ngOnInit() {
|
||||
try {
|
||||
const deliverers = await firstValueFrom(this.deliverersService.getAllDelivererEndpoint());
|
||||
this.deliverers.set(deliverers);
|
||||
} catch {
|
||||
this.notificationService.error('Erreur', 'Erreur lors de l\'affichage des livreurs');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user