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
@@ -184,8 +184,6 @@ export class InputComponent {
}
onPriceInput($event: InputNumberInputEvent) {
console.log($event);
this.onInput($event.originalEvent, true);
}
onInput($event: Event, isPriceFormat?: boolean) {
@@ -198,7 +196,6 @@ export class InputComponent {
if (this.inputMode === 'numeric') {
let newValue = parseFloat(value);
// console.log(value, newValue);
const minValidator = (this.min || this.min === 0) && parseFloat(value) < this.min!;
const maxValidator = (this.max || this.max === 0) && parseFloat(value) > this.max;
@@ -89,7 +89,7 @@ export class KeyValueComponent {
}
switch (this.type) {
case 'simple':
return this.value || '';
return this.value || '-';
}
return value;
}
@@ -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);