@posx/core 5.5.260 → 5.5.263

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/CLAUDE.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Claude AI Development Guidelines
2
2
 
3
+ ## Rules you have to follow strictly
4
+
5
+ - You are top-notch programmer who always write simplest code to achieve the ideal result
6
+ - you are one liner engineers and we believe "The Great Tao is Simple", so try to keep changes small and focused
7
+ - keep the changes as minimal as possible
8
+ - if or else has one line of code, then { } are not needed and it should be wrote into same line
9
+ - DO NOT write uncessary comment do not make newlines within a function and try to make the code compact
10
+ - All crucial code should have proper explanation in English
11
+
3
12
  ## Best Practices for AI-Assisted Development
4
13
 
5
14
  1. **在开始编码前先充分讨论和规划架构,确保理解用户的真实需求和使用场景,避免过度设计。**
package/build/index.d.ts CHANGED
@@ -1856,6 +1856,12 @@ declare module '@posx/core/services/invoice.service' {
1856
1856
  lines: IInvoiceLine[];
1857
1857
  printerUids: string[];
1858
1858
  };
1859
+ /**
1860
+ * Sorts print jobs by printer sequence
1861
+ * @param printJobs - Array of print jobs to sort
1862
+ * @returns Sorted array of print jobs (lower sequence number prints first)
1863
+ */
1864
+ private sortPrintJobsByPrinterSequence;
1859
1865
  private preprocessInvoice;
1860
1866
  /**
1861
1867
  * Adds a charge to an invoice
@@ -2050,10 +2056,18 @@ declare module '@posx/core/test/services/invoice/invoice-discount-calculations-t
2050
2056
  declare module '@posx/core/test/services/invoice/invoice-discount-test/invoice-discount.test' {
2051
2057
  export {};
2052
2058
 
2059
+ }
2060
+ declare module '@posx/core/test/services/invoice/invoice-print-job-uids-test/invoice-print-job-uids.test' {
2061
+ export {};
2062
+
2053
2063
  }
2054
2064
  declare module '@posx/core/test/services/invoice/invoice-rounding-test/invoice-rounding.test' {
2055
2065
  export {};
2056
2066
 
2067
+ }
2068
+ declare module '@posx/core/test/services/invoice/printer-sequence-sorting-test/printer-sequence-sorting.test' {
2069
+ export {};
2070
+
2057
2071
  }
2058
2072
  declare module '@posx/core/test/services/item/modifier-stock-test/modifier-stock.test' {
2059
2073
  export {};
@@ -3398,6 +3412,10 @@ declare module '@posx/core/types/invoice.type' {
3398
3412
  activities: any[];
3399
3413
  /** Receipt printer unique id */
3400
3414
  receipt_print_job_uid: string;
3415
+ /** Kitchen print job uids */
3416
+ kitchen_print_job_uids: string[][];
3417
+ /** Label print job uids */
3418
+ label_print_job_uids: string[][];
3401
3419
  /** Additional charges */
3402
3420
  charges: IInvoiceCharge[];
3403
3421
  /** Flag to track if charge has been manually deleted by user */
@@ -3512,6 +3530,8 @@ declare module '@posx/core/types/invoice.type' {
3512
3530
  otp: string;
3513
3531
  activities: any[];
3514
3532
  receipt_print_job_uid: string;
3533
+ kitchen_print_job_uids: string[][];
3534
+ label_print_job_uids: string[][];
3515
3535
  charges: IInvoiceCharge[];
3516
3536
  /** Flag to track if charge has been manually deleted by user */
3517
3537
  is_charge_triggered: boolean;
@@ -4092,6 +4112,8 @@ declare module '@posx/core/types/printer.type' {
4092
4112
  designated_table_section_uids: string[];
4093
4113
  /** Job ID */
4094
4114
  job_id: number;
4115
+ /** Print sequence order (lower number prints first) */
4116
+ print_sequence?: number;
4095
4117
  }
4096
4118
  export class PrintJob extends AppBaseModel implements IPrintJob {
4097
4119
  printer_name: string;
@@ -4112,6 +4134,7 @@ declare module '@posx/core/types/printer.type' {
4112
4134
  device_uid_to_print: string;
4113
4135
  designated_table_section_uids: any[];
4114
4136
  job_id: number;
4137
+ print_sequence?: number;
4115
4138
  constructor(printer: IPrinter, printData: IPrintCommand, saveOnly?: boolean, printTimes?: number);
4116
4139
  }
4117
4140
  export enum PrinterStatus {
@@ -4143,6 +4166,8 @@ declare module '@posx/core/types/printer.type' {
4143
4166
  print_times: number;
4144
4167
  /** Number of retries */
4145
4168
  retries: number;
4169
+ /** Print sequence order (lower number prints first) */
4170
+ print_sequence?: number;
4146
4171
  }
4147
4172
  export class Printer extends AppBaseModel implements IPrinter {
4148
4173
  device_uid: string;