51 lines
2.2 KiB
HTML
51 lines
2.2 KiB
HTML
<div class="flex mt-2">
|
|
@if (productIds().length) {
|
|
<app-modal-button #modalButtonPurchaseOrder
|
|
(click)="openPurchaseOrderForm()"
|
|
(ok)="onModalPurchaseOrderOk()"
|
|
(cancel)="onModalPurchaseOrderCancel()"
|
|
type="default"
|
|
name="Créer un bon de commande"
|
|
size="35%"
|
|
class="ml-4">
|
|
<app-create-purchaseorder-form #purchaseOrderForm
|
|
[suppliers]="suppliers()"
|
|
[products]="selectedProducts()">
|
|
</app-create-purchaseorder-form>
|
|
</app-modal-button>
|
|
|
|
<app-modal-button #modalButtonQuotation
|
|
type="default"
|
|
name="Créer un devis"
|
|
size="35%"
|
|
class="ml-4"
|
|
(click)="openQuotationForm()"
|
|
(ok)="onModalQuotationOk()"
|
|
(cancel)="onModalQuotationCancel()">
|
|
<app-create-quotation-form #quotationForm
|
|
[suppliers]="suppliers()"
|
|
[products]="selectedProducts()">
|
|
</app-create-quotation-form>
|
|
</app-modal-button>
|
|
|
|
<app-modal-button #modalButtonSupplier
|
|
type="default"
|
|
name="Associer à un fournisseur"
|
|
size="35%"
|
|
class="ml-4"
|
|
(click)="openSupplierForm()"
|
|
(ok)="onModalSupplierOk()"
|
|
(cancel)="onModalSupplierCancel()">
|
|
<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)="onSelectionChange($event)"
|
|
(productsTables)="products.set($event)">
|
|
</app-stock-table>
|
|
</div> |