init
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user