Fixed error with code to check product
This commit is contained in:
@@ -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éé');
|
||||
|
||||
Reference in New Issue
Block a user