diff --git a/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js b/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js index f7546b72e..eeef08e1f 100644 --- a/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js +++ b/modules/invoiceOut/back/methods/invoiceOut/specs/globalInvoicing.spec.js @@ -4,6 +4,7 @@ describe('InvoiceOut globalInvoicing()', () => { const userId = 1; const companyFk = 442; const clientId = 1101; + const addressId = 1; const invoicedTicketId = 8; const invoiceSerial = 'A'; const activeCtx = { @@ -22,11 +23,12 @@ describe('InvoiceOut globalInvoicing()', () => { try { ctx.args = { + clientId: clientId, + addressId: addressId, invoiceDate: new Date(), maxShipped: new Date(), - fromClientId: clientId, - toClientId: 1106, - companyFk: companyFk + companyFk: companyFk, + minShipped: new Date() }; const result = await models.InvoiceOut.globalInvoicing(ctx, options); const ticket = await models.Ticket.findById(invoicedTicketId, null, options);