From 9a95d6fc96177d30e125ab1c120fcd8ee901eb65 Mon Sep 17 00:00:00 2001 From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:24:05 +0530 Subject: [PATCH] feat: add modal type --- src/components/POS/types.ts | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/src/components/POS/types.ts b/src/components/POS/types.ts index e80cc89b..b4cdf364 100644 --- a/src/components/POS/types.ts +++ b/src/components/POS/types.ts @@ -1,21 +1,28 @@ -import { Money } from "pesa"; +import { Money } from 'pesa'; export type ItemQtyMap = { - [item: string]: { availableQty: number;[batch: string]: number }; -} + [item: string]: { availableQty: number; [batch: string]: number }; +}; export type ItemSerialNumbers = { [item: string]: string }; -export type DiscountType = "percent" | "amount"; +export type DiscountType = 'percent' | 'amount'; -export type ModalName = 'ShiftOpen' | 'ShiftClose' | 'Payment' | 'LoyaltyProgram' | 'SavedInvoice' | 'RouteToInvoiceList' +export type ModalName = + | 'ShiftOpen' + | 'ShiftClose' + | 'Payment' + | 'LoyaltyProgram' + | 'SavedInvoice' + | 'RouteToInvoiceList' + | 'CouponCode'; export interface POSItem { - image?:string, - name: string, - rate: Money, - availableQty: number, - unit: string, - hasBatch: boolean, - hasSerialNumber: boolean, -} \ No newline at end of file + image?: string; + name: string; + rate: Money; + availableQty: number; + unit: string; + hasBatch: boolean; + hasSerialNumber: boolean; +}