Adapted front with back update
This commit is contained in:
@@ -159,7 +159,7 @@ export class SupplierTable implements OnInit {
|
||||
|
||||
async deleteProduct(idProduct: number, idSupplier: number) {
|
||||
try {
|
||||
await firstValueFrom(this.pricesService.deletePriceEndpoint(idProduct, idSupplier));
|
||||
await firstValueFrom(this.suppliersService.deleteProductToSupplierEndpoint(idProduct, idSupplier));
|
||||
this.notificationService.success('Succès', 'Produit supprimé');
|
||||
await this.fetchSuppliers();
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user