2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 19:09:01 +00:00

feat: add modal type

This commit is contained in:
AbleKSaju 2024-10-08 12:24:05 +05:30
parent d757486fd7
commit 9a95d6fc96

View File

@ -1,21 +1,28 @@
import { Money } from "pesa"; import { Money } from 'pesa';
export type ItemQtyMap = { 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 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 { export interface POSItem {
image?:string, image?: string;
name: string, name: string;
rate: Money, rate: Money;
availableQty: number, availableQty: number;
unit: string, unit: string;
hasBatch: boolean, hasBatch: boolean;
hasSerialNumber: boolean, hasSerialNumber: boolean;
} }