@posx/core 5.5.167 → 5.5.168

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
@@ -1315,7 +1315,7 @@ declare module '@posx/core/services/invoice.service' {
1315
1315
  removeAllComboItems(Invoice: IInvoice, comboLineUid: string): IInvoiceLine[];
1316
1316
  }
1317
1317
  export class LineOperationService extends InvoiceBaseService implements ILineOperationService {
1318
- addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions): IInvoiceLine;
1318
+ addItemToLine(invoice: IInvoice, customer: ICustomer, appConfig: IAppConfig, item: IItem, modifiers?: IInvoiceCoreLine[], lineOptions?: LineOptions, createNewLine?: boolean): IInvoiceLine;
1319
1319
  duplicateLine(invoice: IInvoice, line: IInvoiceLine): IInvoice;
1320
1320
  calibrateDuplicates(invoice: IInvoice): IInvoice;
1321
1321
  toInvoiceCoreLine(modifier: ICoreItem, quantity?: number): IInvoiceCoreLine;
@@ -1329,7 +1329,7 @@ declare module '@posx/core/services/invoice.service' {
1329
1329
  addModifierQuantity(modifiers: IInvoiceCoreLine[], modifier: IInvoiceCoreLine, quantity?: number): IInvoiceCoreLine[];
1330
1330
  changeModifierPrice(modifier: IInvoiceCoreLine, price: number): IInvoiceCoreLine;
1331
1331
  overwriteNoteToLine(line: IInvoiceLine, note: string): IInvoiceLine;
1332
- findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string): IInvoiceLine;
1332
+ findOrCreateLine(invoice: IInvoice, item: IItem, quantity: number, price?: number, modifiers?: IInvoiceCoreLine[], remark?: string, createNewLine?: boolean): IInvoiceLine;
1333
1333
  private createInvoiceLine;
1334
1334
  protected compareModifiers(target: IInvoiceCoreLine[], source: IInvoiceCoreLine[]): boolean;
1335
1335
  /**
@@ -3349,7 +3349,10 @@ declare module '@posx/core/types/payment.type' {
3349
3349
  export interface IPayment extends IAppCoreModel {
3350
3350
  /** Invoice ID */
3351
3351
  invoice_uid: string;
3352
- /** Tender Amount */
3352
+ /** Tender Amount
3353
+ * tender amount can be greater than invoice amount
3354
+ * So the payment amount is tender_amount - change_amount
3355
+ */
3353
3356
  tender_amount: number;
3354
3357
  /** Change Amount */
3355
3358
  change_amount: number;