This commit is contained in:
parent
ce211b436d
commit
96feb24f12
|
@ -15,7 +15,7 @@ describe('InvoiceOut refund()', () => {
|
|||
const options = {transaction: tx};
|
||||
|
||||
try {
|
||||
const result = await models.InvoiceOut.refund('T1111111', options);
|
||||
const result = await models.InvoiceOut.refund('T1111111', true, options);
|
||||
|
||||
expect(result).toBeDefined();
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ describe('Sale refund()', () => {
|
|||
try {
|
||||
const options = {transaction: tx};
|
||||
|
||||
const refundedTicket = await models.Sale.refund(salesIds, servicesIds, options);
|
||||
const refundedTicket = await models.Sale.refund(salesIds, servicesIds, true, options);
|
||||
|
||||
expect(refundedTicket).toBeDefined();
|
||||
|
||||
|
@ -40,7 +40,7 @@ describe('Sale refund()', () => {
|
|||
try {
|
||||
const options = {transaction: tx};
|
||||
|
||||
const ticket = await models.Sale.refund(salesIds, servicesIds, options);
|
||||
const ticket = await models.Sale.refund(salesIds, servicesIds, true, options);
|
||||
|
||||
const refundedTicket = await models.Ticket.findOne({
|
||||
where: {
|
||||
|
|
Loading…
Reference in New Issue