Fixed errors with price in all documents

This commit is contained in:
2026-05-25 12:18:34 +01:00
parent 8afa2e6f06
commit 561b8e5fc3
9 changed files with 10 additions and 18 deletions
@@ -1,10 +0,0 @@
import {Component} from '@angular/core';
@Component({
selector: 'app-product-table',
imports: [],
templateUrl: './product-table.html',
styleUrl: './product-table.css',
})
export class ProductTable {
}
@@ -16,7 +16,7 @@
<tr>
<td>{{ purchaseOrder.id }}</td>
<td>{{ purchaseOrder.purchaseConditions }}</td>
<td>Fournisseur ???</td>
<td>{{ purchaseOrder.supplierName }}</td>
<td>
<app-modal-button type="link" name="Voir les produits" size="45%">
<div style="max-height: 400px; overflow-y: auto;">
@@ -36,7 +36,7 @@
<tr>
<td>{{ product.productName }}</td>
<td>{{ product.productReference }}</td>
<td>{{ product.productPrice }}</td>
<td>{{ product.productPrice }}</td>
<td>{{ product.quantity }}</td>
<td>
<div style="justify-content: center; display: flex">
@@ -36,7 +36,7 @@
<tr>
<td>{{ product.productReference }}</td>
<td>{{ product.productName }}</td>
<td>Price ???</td>
<td>{{ product.productPrice }} €</td>
<td>{{ product.quantity }}</td>
<td>
<div style="justify-content: center; display: flex">
+2 -1
View File
@@ -2,7 +2,6 @@ import {Component, inject, viewChild} 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 {QuotationForm} from "../../components/quotation-form/quotation-form";
import {PurchaseordersService, QuotationsService} from "../../services/api";
import {NzNotificationService} from "ng-zorro-antd/notification";
import {firstValueFrom} from "rxjs";
@@ -113,12 +112,14 @@ export class Stock {
);
this.notificationService.success('Succès', 'Devis créé');
} catch (e) {
console.log(this.createQuotation());
this.notificationService.error('Erreur', 'Erreur lors de la création du devis.');
}
}
async onModalQuotationOk() {
console.log(this.createQuotation().createQuotationForm.getRawValue());
await this.addQuotation();
this.createQuotation().createQuotationForm.reset();
this.modalButtonQuotation().isVisible = false;
+3 -3
View File
@@ -59,9 +59,9 @@ In your Angular project:
```typescript
import {ApplicationConfig} from '@angular/core';
import {provideHttpClient} from '@angular/common/http';
import {provideApi} from '';
import { ApplicationConfig } from '@angular/core';
import { provideHttpClient } from '@angular/common/http';
import { provideApi } from '';
export const appConfig: ApplicationConfig = {
providers: [
@@ -13,7 +13,7 @@ import {GetPurchaseProductDto} from './get-purchase-product-dto';
export interface GetPurchaseOrderDto {
id?: number;
purchaseConditions?: string | null;
supplierId?: number;
supplierName?: string | null;
products?: Array<GetPurchaseProductDto> | null;
}
@@ -22,6 +22,7 @@ export interface GetQuotationProductDto {
productImage?: string | null;
productLink?: string | null;
productMinimalQuantity?: number;
productPrice?: number;
quotationId?: number;
}