import { Bill, BillItemRefer, BillSubItemRefer } from '~core/modules/order/definitions'; import { RecalculatedItemFromBill } from '~core/modules/order/functions/Bill/recalculateItemFromBill'; export interface PopulatedSubItem extends BillSubItemRefer { addonGroupName?: string; product?: PopulatedBillItemRefer; subItems: PopulatedSubItem[]; } export interface PopulatedBillItemRefer extends BillItemRefer { categoryName?: string; } export interface PopulatedBillItem extends RecalculatedItemFromBill { product: PopulatedBillItemRefer; subItems: PopulatedSubItem[]; } export interface PopulatedBill extends Bill { items: { [created: string]: PopulatedBillItem; }; }