File size: 840 Bytes
6b154f5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | export interface Product {
id: string;
nameAr: string;
nameEn: string;
quantity: number;
price: number;
categoryAr: string;
categoryEn: string;
description?: string;
secoCode?: string;
supplier?: string;
supplierAr?: string;
importDate?: string;
inventoryDates?: { [date: string]: number };
totalReceived?: number;
totalSold?: number;
currentStock?: number;
}
export interface Language {
code: 'ar' | 'en';
name: string;
dir: 'rtl' | 'ltr';
}
export const languages: Language[] = [
{ code: 'ar', name: 'العربية', dir: 'rtl' },
{ code: 'en', name: 'English', dir: 'ltr' }
];
export interface CatalogProduct {
id: string;
name: string;
description: string;
category: string;
price?: number;
inStock: boolean;
secoCode?: string;
specifications?: string[];
image?: string;
} |