This commit is contained in:
2026-03-10 13:36:45 +03:30
parent 45d48f79dc
commit b379787002
208 changed files with 2328 additions and 2510 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
import { Maybe } from '@/core';
import { ICustomerResponse } from '@/modules/customers/models';
// import { ICustomerResponse } from '@/modules/customers/models';
import { computed, Inject, Injectable, InjectionToken, signal } from '@angular/core';
import { map, of } from 'rxjs';
import { IPosInfoResponse, IPosProductCategoriesResponse, IPosStockResponse } from '../models';
@@ -19,7 +19,7 @@ interface IPosState {
productCategories: Maybe<IPosProductCategoriesResponse[]>;
activeProductCategory: Maybe<number>;
inOrderProducts: IPosInOrderProduct[];
selectedCustomer: Maybe<ICustomerResponse>;
selectedCustomer: Maybe<any>;
viewType: TViewType;
searchQuery: string;
}
@@ -245,7 +245,7 @@ export class POSStore {
this.setState({ inOrderProducts: [] });
}
setSelectedCustomer(customer: Maybe<ICustomerResponse>) {
setSelectedCustomer(customer: Maybe<any>) {
this.setState({ selectedCustomer: customer });
}