connect api to stock page for get, patch and delete

This commit is contained in:
2025-11-29 23:14:04 +01:00
parent a76b184dc1
commit 0189fb0440
8 changed files with 255 additions and 78 deletions

View File

@@ -1,11 +1,11 @@
<div class="flex mt-2">
@if (hasSelection) {
<app-modal-button type="default" name="Créer un bon de commande" class="ml-4">
<app-purchase-order-form></app-purchase-order-form>
<app-modal-button #modalButton type="default" name="Créer un bon de commande" class="ml-4">
<app-purchase-order-form #purchaseOrderForm></app-purchase-order-form>
</app-modal-button>
<app-modal-button type="default" name="Créer un devis" class="ml-4">
<app-quotation-form></app-quotation-form>
<app-modal-button #modalButton type="default" name="Créer un devis" class="ml-4" (click)="test()">
<app-quotation-form #quotationForm></app-quotation-form>
</app-modal-button>
}
@@ -15,7 +15,5 @@
</div>
<div class="mt-1">
<app-stock-table
(selectionChange)="onSelectionChange($event)"
></app-stock-table>
<app-stock-table #stockTable (selectionChange)="onSelectionChange($event)"></app-stock-table>
</div>