feat: update POS and account components to use new field names and improve form handling

This commit is contained in:
2026-04-24 04:27:40 +03:30
parent d857361cb7
commit 5bb5f10dbf
26 changed files with 323 additions and 73 deletions
@@ -5,7 +5,7 @@ import { IPosInitialValues } from './pos.model';
export const columns: IColumn[] = [
// { field: 'id', header: 'شناسه', type: 'id' },
{ field: 'name', header: 'عنوان' },
{ field: 'serial', header: 'شماره سریال' },
{ field: 'serial_number', header: 'شماره سریال' },
{ field: 'pos_type', header: 'نوع دستگاه' },
{ field: 'device', header: 'دستگاه', type: 'nested', nestedOption: { path: 'device.name' } },
{
@@ -14,7 +14,7 @@ export const columns: IColumn[] = [
type: 'nested',
nestedOption: { path: 'provider.name' },
},
{ field: 'status', header: 'وضعیت' },
{ field: 'account', header: 'کاربر', type: 'nested', nestedOption: { path: 'account.username' } },
{
field: 'created_at',
header: 'تاریخ ایجاد',