add salesInvoice in pos of consumer domain

This commit is contained in:
2026-03-30 13:17:34 +03:30
parent c10623bc3f
commit 44097fe1ac
35 changed files with 855 additions and 122 deletions
@@ -26,7 +26,7 @@ export interface IColumn<T = any> {
width?: string;
minWidth?: string;
canCopy?: boolean;
type?: 'text' | 'price' | 'boolean' | 'date' | 'nested' | 'index';
type?: 'text' | 'price' | 'boolean' | 'date' | 'nested' | 'index' | 'id';
nestedPath?: string;
customDataModel?: TemplateRef<any> | ((item: T) => string | number | boolean);
}
@@ -139,6 +139,9 @@ export class PageDataListComponent<I> {
}
const data = item[String(field)];
switch (column.type) {
case 'id':
if (!data) return '-';
return `${data.slice(0, 5)}...${data.slice(data.length - 5, data.length)}`;
case 'date':
if (!data) return '-';
return formatJalali(data);