updated stock table

This commit is contained in:
2025-11-25 09:17:44 +01:00
parent 46d121b016
commit 6b067e058c
9 changed files with 154 additions and 69 deletions

View File

@@ -7,7 +7,7 @@
<app-search></app-search>
</div>
</div>
voir prix dans les produits
<div class="mt-1">
<app-quotation-table></app-quotation-table>
</div>

View File

@@ -1,8 +1,21 @@
<div class="ml-130 w-170 mt-2">
<app-search></app-search>
<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>
<app-modal-button type="default" name="Créer un devis" class="ml-4">
<app-quotation-form></app-quotation-form>
</app-modal-button>
}
<div class="ml-95 w-150">
<app-search class="w-full"></app-search>
</div>
</div>
faire ici la creation de bon de commande avec case a cocher
<div class="mt-1">
<app-stock-table></app-stock-table>
<app-stock-table
(selectionChange)="onSelectionChange($event)"
></app-stock-table>
</div>

View File

@@ -1,17 +1,28 @@
import { Component } from '@angular/core';
import {StockTable} from "../../components/stock-table/stock-table";
import {Search} from "../../components/search/search";
import {ModalButton} from "../../components/modal-button/modal-button";
import {PurchaseOrderForm} from "../../components/purchase-order-form/purchase-order-form";
import {QuotationForm} from "../../components/quotation-form/quotation-form";
@Component({
selector: 'app-stock',
imports: [
StockTable,
Search,
ModalButton,
PurchaseOrderForm,
QuotationForm,
],
templateUrl: './stock.html',
styleUrl: './stock.css',
})
export class Stock {
hasSelection = false;
onSelectionChange(value: boolean) {
this.hasSelection = value;
}
}

View File

@@ -7,7 +7,7 @@
<app-search class="w-full"></app-search>
</div>
</div>
voir pour le prix dans le sous tableau produit
<div class="mt-1">
<app-supplier-table></app-supplier-table>
</div>