+
ورود به پایانه
@@ -20,6 +20,5 @@
[editMode]="true"
[posId]="posId()"
[initialValues]="pos() || undefined"
- (onSubmit)="getData()"
- />
+ (onSubmit)="getData()" />
diff --git a/src/app/domains/consumer/modules/poses/views/single.component.ts b/src/app/domains/consumer/modules/poses/views/single.component.ts
index ea9eb9c..5ff5e81 100644
--- a/src/app/domains/consumer/modules/poses/views/single.component.ts
+++ b/src/app/domains/consumer/modules/poses/views/single.component.ts
@@ -44,12 +44,17 @@ export class ConsumerPosPageComponent {
toPosLanding() {
this.cookieService.set(COOKIE_KEYS.POS_ID, '', new Date());
+
+ console.log('COOKIE_KEYS.POS_ID', COOKIE_KEYS.POS_ID);
+
this.cookieService.set(COOKIE_KEYS.POS_ID, this.posId(), {
sameSite: 'Lax', // or 'Strict' for same-site requests only
secure: false,
path: '/',
- domain: 'localhost',
+ domain: window.location.hostname,
});
+ console.log('this.posId', this.posId());
+
window.open('/pos', '_blank');
}
}
diff --git a/src/app/domains/consumer/modules/saleInvoices/components/list.component.html b/src/app/domains/consumer/modules/saleInvoices/components/list.component.html
index ae9dfe6..efa7dc2 100644
--- a/src/app/domains/consumer/modules/saleInvoices/components/list.component.html
+++ b/src/app/domains/consumer/modules/saleInvoices/components/list.component.html
@@ -1,7 +1,7 @@
+ (onChangePage)="changePage($event)">
+
+
+
+
diff --git a/src/app/domains/consumer/modules/saleInvoices/components/list.component.ts b/src/app/domains/consumer/modules/saleInvoices/components/list.component.ts
index 2667f1d..eb9ee92 100644
--- a/src/app/domains/consumer/modules/saleInvoices/components/list.component.ts
+++ b/src/app/domains/consumer/modules/saleInvoices/components/list.component.ts
@@ -1,13 +1,14 @@
// import { CatalogRoleTagComponent } from '@/shared/catalog/roles';
import { Maybe } from '@/core';
+import { IPaginatedQuery } from '@/core/models/service.model';
import { AbstractList } from '@/shared/abstractClasses/abstract-list';
+import { CatalogTaxProviderStatusTagComponent } from '@/shared/catalog';
import {
IColumn,
PageDataListComponent,
} from '@/shared/components/pageDataList/page-data-list.component';
-import { IPaginatedQuery } from '@/core/models/service.model';
import { saleInvoiceListConfig } from '@/shared/constants/list-configs';
-import { Component, inject, Input } from '@angular/core';
+import { Component, inject, Input, TemplateRef, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { consumerSaleInvoicesNamedRoutes } from '../constants/routes';
import { IConsumerSaleInvoicesResponse } from '../models';
@@ -16,7 +17,7 @@ import { ConsumerSaleInvoicesService } from '../services/main.service';
@Component({
selector: 'consumer-saleInvoice-list',
templateUrl: './list.component.html',
- imports: [PageDataListComponent],
+ imports: [PageDataListComponent, CatalogTaxProviderStatusTagComponent],
})
export class ConsumerSaleInvoiceListComponent extends AbstractList<
IConsumerSaleInvoicesResponse,
@@ -24,12 +25,21 @@ export class ConsumerSaleInvoiceListComponent extends AbstractList<
> {
@Input() fullHeight?: boolean;
@Input() header: IColumn[] = saleInvoiceListConfig.columns;
+ @ViewChild('status', { static: true }) status!: TemplateRef
;
private readonly service = inject(ConsumerSaleInvoicesService);
private readonly router = inject(Router);
override setColumns(): void {
- this.columns = this.header;
+ this.columns = this.header.map((header) => {
+ if (header.field === 'status') {
+ return {
+ ...header,
+ customDataModel: this.status,
+ };
+ }
+ return header;
+ });
}
override getDataRequest(payload: Maybe) {
diff --git a/src/app/domains/consumer/modules/saleInvoices/constants/routes/index.ts b/src/app/domains/consumer/modules/saleInvoices/constants/routes/index.ts
index 8f58fa0..9206a7d 100644
--- a/src/app/domains/consumer/modules/saleInvoices/constants/routes/index.ts
+++ b/src/app/domains/consumer/modules/saleInvoices/constants/routes/index.ts
@@ -9,7 +9,7 @@ export const consumerSaleInvoicesNamedRoutes: NamedRoutes
import('../../views/list.component').then((m) => m.ConsumerSaleInvoicesComponent),
meta: {
- title: 'صورتحسابهای صادر شده',
+ title: 'صورتحسابها',
pagePath: () => `/consumer/sale_invoices`,
},
},
@@ -18,7 +18,7 @@ export const consumerSaleInvoicesNamedRoutes: NamedRoutes
import('../../views/single.component').then((m) => m.ConsumerSaleInvoiceComponent),
meta: {
- title: 'صورتحساب صادر شده',
+ title: 'صورتحساب',
pagePath: (saleInvoiceId: string) => `/consumer/sale_invoices/${saleInvoiceId}`,
},
},
diff --git a/src/app/domains/partner/modules/accounts/views/single.component.html b/src/app/domains/partner/modules/accounts/views/single.component.html
index 76c7796..4595d0f 100644
--- a/src/app/domains/partner/modules/accounts/views/single.component.html
+++ b/src/app/domains/partner/modules/accounts/views/single.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/src/app/domains/partner/modules/consumers/components/poses/form.component.html b/src/app/domains/partner/modules/consumers/components/poses/form.component.html
index 0dd0f2f..38dff05 100644
--- a/src/app/domains/partner/modules/consumers/components/poses/form.component.html
+++ b/src/app/domains/partner/modules/consumers/components/poses/form.component.html
@@ -1,8 +1,8 @@