@posx/core 5.5.16 → 5.5.18
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 +5 -5
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -341,9 +341,9 @@ declare module '@posx/core/services/abstract.service' {
|
|
|
341
341
|
/**
|
|
342
342
|
* Retrieves a single entity by its unique identifier.
|
|
343
343
|
* @param id - Unique identifier of the entity to retrieve.
|
|
344
|
-
* @returns A Promise that resolves to the retrieved entity
|
|
344
|
+
* @returns A Promise that resolves to the retrieved entity.
|
|
345
345
|
*/
|
|
346
|
-
getOne(id: string): Promise<T
|
|
346
|
+
getOne(id: string): Promise<T>;
|
|
347
347
|
/**
|
|
348
348
|
* Retrieves a single entity by its unique identifier.
|
|
349
349
|
* @param params - Filtering parameters.
|
|
@@ -386,7 +386,7 @@ declare module '@posx/core/services/abstract.service' {
|
|
|
386
386
|
* get one by uid
|
|
387
387
|
* @param uid Primary nano id
|
|
388
388
|
*/
|
|
389
|
-
getOne(uid: string): Promise<T
|
|
389
|
+
getOne(uid: string): Promise<T>;
|
|
390
390
|
getOneByParams(params: Partial<T>): Promise<T | null>;
|
|
391
391
|
getDefaultOne(): Promise<T | undefined>;
|
|
392
392
|
getAll(): Promise<T[]>;
|
|
@@ -975,7 +975,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
975
975
|
import { IEmployee } from '@posx/core/types/employee.type';
|
|
976
976
|
import { QueryBuilder, QueryEtcParams } from '@posx/core/utils/autoquery.utils';
|
|
977
977
|
export interface IInvoiceBaseService extends IAppRemoteService<IInvoice> {
|
|
978
|
-
calculate(invoice: IInvoice, appConfig: IAppConfig): IInvoice;
|
|
978
|
+
calculate(invoice: IInvoice, appConfig: IAppConfig, disableRounding?: boolean): IInvoice;
|
|
979
979
|
calculateLines(invoice: IInvoice): void;
|
|
980
980
|
calculateLine(line: IInvoiceLine): void;
|
|
981
981
|
calculatePointSubtotal(invoice: IInvoice): void;
|
|
@@ -1012,7 +1012,7 @@ declare module '@posx/core/services/invoice.service' {
|
|
|
1012
1012
|
protected printerService: PrinterService;
|
|
1013
1013
|
protected printJobService: PrintJobService;
|
|
1014
1014
|
constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
|
|
1015
|
-
calculate(invoice: IInvoice, appConfig: IAppConfig): IInvoice;
|
|
1015
|
+
calculate(invoice: IInvoice, appConfig: IAppConfig, disableRounding?: boolean): IInvoice;
|
|
1016
1016
|
calculateLines(invoice: IInvoice): void;
|
|
1017
1017
|
calculateLine(line: IInvoiceLine): void;
|
|
1018
1018
|
calculatePointSubtotal(invoice: IInvoice): void;
|