mirror of
https://github.com/frappe/books.git
synced 2024-12-22 10:58:59 +00:00
feat: add modal type
This commit is contained in:
parent
d757486fd7
commit
9a95d6fc96
@ -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,
|
||||
}
|
||||
image?: string;
|
||||
name: string;
|
||||
rate: Money;
|
||||
availableQty: number;
|
||||
unit: string;
|
||||
hasBatch: boolean;
|
||||
hasSerialNumber: boolean;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user