mirror of
https://github.com/frappe/books.git
synced 2026-08-28 10:04:58 -05:00
23 lines
608 B
TypeScript
23 lines
608 B
TypeScript
import { Doc } from 'fyo/model/doc';
|
|
import { FiltersMap } from 'fyo/model/types';
|
|
import { ModelNameEnum } from 'models/types';
|
|
|
|
export class POSProfile extends Doc {
|
|
posProfile?: string;
|
|
posCustomer?: string;
|
|
defaultLocation?: string;
|
|
posPrintTemplate?: string;
|
|
inventory?: string;
|
|
posUI?: 'Classic' | 'Modern';
|
|
isShiftOpen?: boolean;
|
|
itemVisibility?: string;
|
|
canChangeRate?: boolean;
|
|
hideUnavailableItems?: boolean;
|
|
canEditDiscount?: boolean;
|
|
ignorePricingRule?: boolean;
|
|
|
|
static filters: FiltersMap = {
|
|
posPrintTemplate: () => ({ type: ModelNameEnum.SalesInvoice }),
|
|
};
|
|
}
|