@posx/core 5.5.110 → 5.5.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.d.ts CHANGED
@@ -912,6 +912,12 @@ declare module '@posx/core/services/app.service' {
912
912
  printReport(request: IReportRequest): Promise<void>;
913
913
  private getReportData;
914
914
  processReportInvoicesData(reportData: IReportData, invoices?: IInvoice[]): IReportData;
915
+ /**
916
+ * 生成唯一的菜品key
917
+ * 格式: 菜品uid-modifier1:modifier1.quantity-modifier2:modifier2.quantity-modifier3:modifier3.quantity
918
+ * 修饰符按uid排序,去除相同菜品不同modifier顺序的影响
919
+ */
920
+ private generateItemKey;
915
921
  }
916
922
  export type IPrintJobService = IAppRemoteService<IPrintJob> & {
917
923
  /**
@@ -4199,6 +4205,7 @@ declare module '@posx/core/types/product.type' {
4199
4205
  declare module '@posx/core/types/report.type' {
4200
4206
  import { IAppBase, IAppCoreModel, AppCoreModel } from '@posx/core/types/abstract.type';
4201
4207
  import { IConfig } from '@posx/core/types/config.type';
4208
+ import { IItem } from '@posx/core/types/product.type';
4202
4209
  export type IReportCategory = IAppBase & {
4203
4210
  reports: IReport[];
4204
4211
  };
@@ -4275,6 +4282,9 @@ declare module '@posx/core/types/report.type' {
4275
4282
  drawer_summary: IDrawerSummary;
4276
4283
  payments_summary: IPaymentSummary[];
4277
4284
  loyalty_program_summary: ILoyaltyProgramSummary;
4285
+ item_sales_summary: TItemSalesSummary[];
4286
+ item_sales_summary_total: number;
4287
+ item_sales_summary_total_count: number;
4278
4288
  config: IConfig;
4279
4289
  };
4280
4290
  export class ReportData implements IReportData {
@@ -4282,10 +4292,14 @@ declare module '@posx/core/types/report.type' {
4282
4292
  humanized_start_datetime: string;
4283
4293
  end_datetime: string;
4284
4294
  humanized_end_datetime: string;
4295
+ humanized_printed_datetime: string;
4285
4296
  sales_summary: SalesSummary;
4286
4297
  drawer_summary: DrawerSummary;
4287
4298
  payments_summary: PaymentSummary[];
4288
4299
  loyalty_program_summary: LoyaltyProgramSummary;
4300
+ item_sales_summary: ItemSalesSummary[];
4301
+ item_sales_summary_total: number;
4302
+ item_sales_summary_total_count: number;
4289
4303
  config: IConfig;
4290
4304
  }
4291
4305
  export type ISalesSummary = {
@@ -4382,6 +4396,20 @@ declare module '@posx/core/types/report.type' {
4382
4396
  minus_point_total: number;
4383
4397
  minus_point_count: number;
4384
4398
  }
4399
+ export type TItemCoreSalesSummary = {
4400
+ item: IItem;
4401
+ quantity: number;
4402
+ total_amount: number;
4403
+ };
4404
+ export type TItemSalesSummary = TItemCoreSalesSummary & {
4405
+ modifiers?: TItemCoreSalesSummary[];
4406
+ };
4407
+ export class ItemSalesSummary implements TItemSalesSummary {
4408
+ item: IItem;
4409
+ quantity: number;
4410
+ total_amount: number;
4411
+ modifiers: TItemCoreSalesSummary[];
4412
+ }
4385
4413
 
4386
4414
  }
4387
4415
  declare module '@posx/core/types/request.type' {
@@ -4430,7 +4458,7 @@ declare module '@posx/core/types/section.type' {
4430
4458
  /** Number of persons */
4431
4459
  pax: number;
4432
4460
  /** Invoice created timestamp */
4433
- invoice_created_at: string;
4461
+ invoice_created_at: Date;
4434
4462
  /** Number of child persons */
4435
4463
  child_pax: number;
4436
4464
  /** Number of baby persons */
@@ -4462,7 +4490,7 @@ declare module '@posx/core/types/section.type' {
4462
4490
  total: number;
4463
4491
  time: number;
4464
4492
  pax: number;
4465
- invoice_created_at: string;
4493
+ invoice_created_at: Date;
4466
4494
  child_pax: number;
4467
4495
  baby_pax: number;
4468
4496
  uid: string;