@posx/core 5.5.132 → 5.5.134
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 +13 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -291,6 +291,11 @@ declare module '@posx/core/service.factory' {
|
|
|
291
291
|
dataSource: Dexie;
|
|
292
292
|
private status;
|
|
293
293
|
constructor(options: IServiceOptions, win: any, withoutDbInit?: boolean);
|
|
294
|
+
/**
|
|
295
|
+
* Static factory method to create and initialize a ServiceFactory instance
|
|
296
|
+
* Use this instead of constructor + separate init call for proper async handling
|
|
297
|
+
*/
|
|
298
|
+
static init(options: IServiceOptions, win: any, withoutDbInit?: boolean): Promise<ServiceFactory>;
|
|
294
299
|
initializeDatabase(): Promise<Dexie>;
|
|
295
300
|
dropDatabase(): Promise<void>;
|
|
296
301
|
clearTableData(tableName: string): import("dexie").PromiseExtended<void>;
|
|
@@ -1280,6 +1285,13 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1280
1285
|
* @returns The updated invoice line.
|
|
1281
1286
|
*/
|
|
1282
1287
|
overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
|
|
1288
|
+
/**
|
|
1289
|
+
* Compares two invoice lines.
|
|
1290
|
+
* @param target - The target invoice line to compare.
|
|
1291
|
+
* @param source - The source invoice line to compare.
|
|
1292
|
+
* @returns True if the lines are the same, false otherwise.
|
|
1293
|
+
*/
|
|
1294
|
+
compareLines(target: IInvoiceLine, source: IInvoiceLine): boolean;
|
|
1283
1295
|
/**
|
|
1284
1296
|
* To add combo items under one combo
|
|
1285
1297
|
* @param invoice - The invoice to add the item to.
|
|
@@ -1325,7 +1337,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1325
1337
|
* @param target
|
|
1326
1338
|
* @param source
|
|
1327
1339
|
*/
|
|
1328
|
-
|
|
1340
|
+
compareLines(target: IInvoiceLine, source: IInvoiceLine): boolean;
|
|
1329
1341
|
addComboItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, comboLineUid: string, comboGroupUid: string, modifiers?: IInvoiceCoreLine[], options?: LineOptions): IInvoiceLine;
|
|
1330
1342
|
removeAllComboItems(invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
|
|
1331
1343
|
}
|