#1738 exportar estructura y datos de produccion a la local
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-10-15 07:23:34 +02:00
parent 9a65cafe19
commit ed1ed7f50b
8 changed files with 10237 additions and 6102 deletions

File diff suppressed because one or more lines are too long

View File

@ -65,6 +65,11 @@ INSERT INTO `vn`.`warehouse`(`id`, `name`, `isComparative`, `isInventory`, `hasA
(4, 'Warehouse Four', 1, 1, 1, 1, 0),
(5, 'Warehouse Five', 1, 1, 1, 1, 0);
INSERT INTO `vn`.`sector`(`id`, `description`, `warehouseFk`, `isPreviousPreparedByPacking`, `code`, `pickingPlacement`, `path`)
VALUES
(1, 'First sector', 1, 1, 'FIRST', 999, 999),
(2, 'Second sector', 2, 0, 'SECOND', 100, 150);
INSERT INTO `vn`.`warehouseAlias`(`id`, `name`)
VALUES
(1, 'Main Warehouse');

File diff suppressed because it is too large Load Diff

View File

@ -45,20 +45,20 @@ TABLES=(
claimReason
claimRedelivery
claimResult
ticketUpdateAction
state
)
dump_tables ${TABLES[@]}
TABLES=(
vn2008
accion_dits
bionic_updating_options
businessReasonEnd
container
department
escritos
Grupos
iva_group_codigo
state
tarifa_componentes
tarifa_componentes_series
)

View File

@ -362,8 +362,8 @@ export default {
moreMenuDeleteTicket: '.vn-popover.shown .vn-drop-down li[name="Delete ticket"]',
moreMenuMakeInvoice: '.vn-popover.shown .vn-drop-down li[name="Make invoice"]',
moreMenuChangeShippedHour: '.vn-popover.shown .vn-drop-down li[name="Change shipped hour"]',
changeShippedHour: 'vn-ticket-descriptor .vn-dialog.shown[vn-id="changeShippedDialog"]',
changeShippedHourInput: 'vn-ticket-descriptor .vn-dialog.shown vn-input-time input',
changeShippedHourDialog: 'vn-ticket-descriptor vn-dialog[vn-id="changeShippedDialog"]',
changeShippedHourInput: 'vn-ticket-descriptor vn-dialog[vn-id="changeShippedDialog"] vn-input-time[vn-id="newShipped"]',
addStowawayDialogFirstTicket: 'vn-ticket-descriptor > vn-add-stowaway > vn-dialog vn-table vn-tbody vn-tr',
shipButton: 'vn-ticket-descriptor > div > div.body > div.quicklinks vn-icon[icon="icon-stowaway"]',
thursdayButton: 'vn-ticket-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-tool-bar > vn-button:nth-child(4)',

View File

@ -30,19 +30,11 @@ describe('Ticket descriptor path', () => {
expect(url.hash).toContain('/summary');
});
it('should open the change shipped hours dialog by using the more menu option', async() => {
const visible = await nightmare
it(`should update the shipped hour using the descriptor menu`, async() => {
const result = await nightmare
.waitToClick(selectors.ticketDescriptor.moreMenu)
.waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour)
.waitForClassPresent(selectors.ticketDescriptor.changeShippedHour, 'shown')
.isVisible(selectors.ticketDescriptor.changeShippedHourInput);
expect(visible).toBeTruthy();
});
it(`should update the shipped hour`, async() => {
const result = await nightmare
.pickTime(selectors.ticketDescriptor.changeShippedHourInput, '08:15')
.write(selectors.ticketDescriptor.changeShippedHourInput, '08:15')
.waitToClick(selectors.ticketDescriptor.acceptChangeHourButton)
.waitForLastSnackbar();

View File

@ -17,7 +17,7 @@ describe('Client activeWorkersWithRole', () => {
let isBuyer = await app.models.Account.hasRole(result[0].id, 'buyer');
expect(result.length).toEqual(10);
expect(result.length).toEqual(11);
expect(isBuyer).toBeTruthy();
});
});

View File

@ -61,14 +61,14 @@ describe('sale updatePrice()', () => {
it('should set price as a decimal number and check the sale has the mana component', async() => {
let ctx = {req: {accessToken: {userId: 9}}};
let price = 5.3;
let price = 5.4;
await app.models.Sale.updatePrice(ctx, saleId, price);
let saleUpdated = await app.models.Sale.findById(saleId);
createdSaleComponent = await app.models.SaleComponent.findOne({where: {saleFk: saleId, componentFk: manaComponentId}});
expect(saleUpdated.price).toBe(price);
expect(createdSaleComponent.value).toEqual(-2.14);
expect(createdSaleComponent.value).toEqual(-2.04);
});
it('should check that the mana of salesPerson changed', async() => {