Fixed error to function to create purchase order
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<div class="flex mt-2">
|
||||
@if (productIds.length) {
|
||||
@if (productIds().length) {
|
||||
<app-modal-button #modalButtonPurchaseOrder
|
||||
(click)="openPurchaseOrderForm()"
|
||||
(ok)="onModalPurchaseOrderOk()"
|
||||
@@ -8,7 +8,10 @@
|
||||
name="Créer un bon de commande"
|
||||
size="35%"
|
||||
class="ml-4">
|
||||
<app-create-purchaseorder-form #purchaseOrderForm [suppliers]="suppliers()"></app-create-purchaseorder-form>
|
||||
<app-create-purchaseorder-form #purchaseOrderForm
|
||||
[suppliers]="suppliers()"
|
||||
[products]="selectedProducts()">
|
||||
</app-create-purchaseorder-form>
|
||||
</app-modal-button>
|
||||
|
||||
<app-modal-button #modalButtonQuotation
|
||||
@@ -19,7 +22,9 @@
|
||||
(click)="openQuotationForm()"
|
||||
(ok)="onModalQuotationOk()"
|
||||
(cancel)="onModalQuotationCancel()">
|
||||
<app-create-quotation-form #quotationForm></app-create-quotation-form>
|
||||
<app-create-quotation-form #quotationForm
|
||||
[products]="selectedProducts()">
|
||||
</app-create-quotation-form>
|
||||
</app-modal-button>
|
||||
|
||||
<app-modal-button #modalButtonSupplier
|
||||
@@ -30,13 +35,16 @@
|
||||
(click)="openSupplierForm()"
|
||||
(ok)="onModalSupplierOk()"
|
||||
(cancel)="onModalSupplierCancel()">
|
||||
<app-add-product-supplier-form #supplierForm [suppliers]="suppliers()"></app-add-product-supplier-form>
|
||||
<app-add-product-supplier-form #supplierForm
|
||||
[suppliers]="suppliers()"
|
||||
[products]="selectedProducts()">
|
||||
</app-add-product-supplier-form>
|
||||
</app-modal-button>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="mt-4">
|
||||
<app-stock-table (selectionChange)="productIds = $event"
|
||||
<app-stock-table (selectionChange)="onSelectionChange($event)"
|
||||
(productsTables)="products.set($event)">
|
||||
</app-stock-table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user