#6703 refactor saleRefund #1954
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1954
Loading…
Reference in New Issue
No description provided.
Delete Branch "6703-refactorSaleRefund"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#6703 refactor saleRefundto WIP: #6703 refactor saleRefundWIP: #6703 refactor saleRefundto #6703 refactor saleRefund@ -525,3 +525,3 @@
const salesIds = sales.map(sale => sale.id);
const params = {salesIds: salesIds, withWarehouse: withWarehouse};
const query = 'Sales/refund';
const query = 'Sales/clone';
aqui imagino que deberas pasar a true el parametro negative
@ -57,3 +57,3 @@
const params = {servicesIds: this.checkeds, withWarehouse: false};
const query = 'Sales/refund';
const query = 'Sales/clone';
aqui imagino que deberas pasar a true el parametro negative
@ -0,0 +1,4 @@
UPDATE salix.ACL
Pasar a como se hace en myt
@ -1,101 +0,0 @@
const models = require('vn-loopback/server/server').models;
Adaptar los test a .clone sino se quedaria sin tests
@ -16,4 +0,0 @@
});
});
it('should create ticket with the selected lines', async() => {
Ya hay un test parecido en sale clone.
@ -34,4 +0,0 @@
}
});
it('should create one ticket for each unique ticketFk in the sales', async() => {
@alexm @jgallego creo que este ya se controla en los tests de clone.
@ -61,4 +0,0 @@
}
});
it('should create a ticket without sales', async() => {
Este lo añado en sale clone