feat: discount formatted attributes of sale transactions

This commit is contained in:
Ahmed Bouhuolia
2024-11-28 17:59:09 +02:00
parent df8391201f
commit e02ad1e795
12 changed files with 246 additions and 25 deletions

View File

@@ -25,6 +25,11 @@ export interface ISaleEstimate {
branchId?: number;
warehouseId?: number;
discountAmount?: number;
discountPercentage?: number | null;
adjustment?: number;
}
export interface ISaleEstimateDTO {
customerId: number;

View File

@@ -83,8 +83,8 @@ export interface ISaleInvoice {
}
export enum DiscountType {
Percentage = 'Percentage',
Amount = 'Amount',
Percentage = 'percentage',
Amount = 'amount',
}
export interface ISaleInvoiceDTO {

View File

@@ -28,6 +28,11 @@ export interface ISaleReceipt {
localAmount?: number;
entries?: IItemEntry[];
discountAmount: number;
discountPercentage?: number | null;
adjustment?: number;
}
export interface ISalesReceiptsFilter {