@posx/core 5.5.32 → 5.5.34

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
@@ -955,6 +955,10 @@ declare module '@posx/core/services/app.service' {
955
955
  private renderPrintCommand;
956
956
  }
957
957
 
958
+ }
959
+ declare module '@posx/core/services/invoice.merge.test' {
960
+ export {};
961
+
958
962
  }
959
963
  declare module '@posx/core/services/invoice.service' {
960
964
  import { IAppRemoteService, AppRemoteService } from '@posx/core/services/abstract.service';
@@ -1189,6 +1193,7 @@ declare module '@posx/core/services/invoice.service' {
1189
1193
  */
1190
1194
  addModifier(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine): IInvoiceCoreLine[];
1191
1195
  /**
1196
+ * @deprecated use changeModifierQuantity instead
1192
1197
  * Decreases the quantity of a modifier in a list of modifiers.
1193
1198
  * @param modifiers - The list of modifiers to decrease the quantity in.
1194
1199
  * @param modifier - The modifier to decrease the quantity of.
@@ -1197,6 +1202,7 @@ declare module '@posx/core/services/invoice.service' {
1197
1202
  */
1198
1203
  minusModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1199
1204
  /**
1205
+ * @deprecated use changeModifierQuantity instead
1200
1206
  * Increases the quantity of a modifier in a list of modifiers.
1201
1207
  * @param modifiers - The list of modifiers to increase the quantity in.
1202
1208
  * @param modifier - The modifier to increase the quantity of.
@@ -1204,6 +1210,17 @@ declare module '@posx/core/services/invoice.service' {
1204
1210
  * @returns The updated list of modifiers.
1205
1211
  */
1206
1212
  addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1213
+ /**
1214
+ * Changes the quantity of a modifier in a list of modifiers.
1215
+ * Positive quantity will increase the modifier quantity.
1216
+ * Negative quantity will decrease the modifier quantity.
1217
+ * If quantity becomes 0 or negative, the modifier will be removed.
1218
+ * @param modifiers - The list of modifiers to change the quantity in.
1219
+ * @param modifier - The modifier to change the quantity of.
1220
+ * @param quantity - The quantity to add (positive) or subtract (negative).
1221
+ * @returns The updated list of modifiers.
1222
+ */
1223
+ changeModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1207
1224
  /**
1208
1225
  * Changes the unit price of a existing modifier.
1209
1226
  * @param modifier - The modifier to change the price of.
@@ -1230,6 +1247,7 @@ declare module '@posx/core/services/invoice.service' {
1230
1247
  minusLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number): IInvoice;
1231
1248
  addLineQuantity(invoice: IInvoice, line: IInvoiceLine, quantity: number): IInvoice;
1232
1249
  minusModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1250
+ changeModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1233
1251
  addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1234
1252
  changeModifierPrice(modifier: IInvoiceCoreLine, price: number): IInvoiceCoreLine;
1235
1253
  overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
@@ -1894,6 +1912,8 @@ declare module '@posx/core/types/config.type' {
1894
1912
  cds: ICustomerDisplaySystemConfig;
1895
1913
  /** Kiosk system setting */
1896
1914
  kiosk: IKioskSystemConfig;
1915
+ /** Online order setting */
1916
+ online_order: IOnlineOrderConfig;
1897
1917
  }
1898
1918
  export interface ICustomerDisplaySystemConfig {
1899
1919
  full_screen_assets: string[];