Fixed error with code to check product

This commit is contained in:
2026-05-26 18:57:41 +01:00
parent 961551e926
commit 14d3d25217
5 changed files with 34 additions and 38 deletions
+4 -2
View File
@@ -43,11 +43,11 @@ export class Stock {
}
openPurchaseOrderForm() {
this.createPurchaseOrder().syncSelectedProducts(this.getSelectedProducts());
this.createPurchaseOrder().addProductToForm(this.getSelectedProducts());
}
openQuotationForm() {
this.createQuotation().syncSelectedProducts(this.getSelectedProducts());
this.createQuotation().addProductToForm(this.getSelectedProducts());
}
openSupplierForm() {
@@ -77,6 +77,8 @@ export class Stock {
products: orderLines
};
console.log(purchaseOrder);
try {
await firstValueFrom(this.purchaseOrdersService.createPurchaseOrder(purchaseOrder));
this.notificationService.success('Succès', 'Bon de commande créé');