diff --git a/src/app/components/create-purchaseorder-form/create-purchaseorder-form.ts b/src/app/components/create-purchaseorder-form/create-purchaseorder-form.ts index 48f4b63..168325c 100644 --- a/src/app/components/create-purchaseorder-form/create-purchaseorder-form.ts +++ b/src/app/components/create-purchaseorder-form/create-purchaseorder-form.ts @@ -72,9 +72,8 @@ export class CreatePurchaseorderForm { ); }); - const bestSupplier = this.getBestSupplier(); this.createPurchaseOrderForm.patchValue({ - supplierId: bestSupplier.id, + supplierId: this.getBestSupplier().id, }); } } diff --git a/src/app/components/create-quotation-form/create-quotation-form.html b/src/app/components/create-quotation-form/create-quotation-form.html index a749284..a70a780 100644 --- a/src/app/components/create-quotation-form/create-quotation-form.html +++ b/src/app/components/create-quotation-form/create-quotation-form.html @@ -1,4 +1,20 @@