#1738 exportar estructura y datos de produccion a la local
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
9a65cafe19
commit
ed1ed7f50b
File diff suppressed because one or more lines are too long
|
@ -65,6 +65,11 @@ INSERT INTO `vn`.`warehouse`(`id`, `name`, `isComparative`, `isInventory`, `hasA
|
||||||
(4, 'Warehouse Four', 1, 1, 1, 1, 0),
|
(4, 'Warehouse Four', 1, 1, 1, 1, 0),
|
||||||
(5, 'Warehouse Five', 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`)
|
INSERT INTO `vn`.`warehouseAlias`(`id`, `name`)
|
||||||
VALUES
|
VALUES
|
||||||
(1, 'Main Warehouse');
|
(1, 'Main Warehouse');
|
||||||
|
|
15284
db/dump/structure.sql
15284
db/dump/structure.sql
File diff suppressed because it is too large
Load Diff
|
@ -45,20 +45,20 @@ TABLES=(
|
||||||
claimReason
|
claimReason
|
||||||
claimRedelivery
|
claimRedelivery
|
||||||
claimResult
|
claimResult
|
||||||
|
ticketUpdateAction
|
||||||
|
state
|
||||||
)
|
)
|
||||||
dump_tables ${TABLES[@]}
|
dump_tables ${TABLES[@]}
|
||||||
|
|
||||||
TABLES=(
|
TABLES=(
|
||||||
vn2008
|
vn2008
|
||||||
accion_dits
|
accion_dits
|
||||||
bionic_updating_options
|
|
||||||
businessReasonEnd
|
businessReasonEnd
|
||||||
container
|
container
|
||||||
department
|
department
|
||||||
escritos
|
escritos
|
||||||
Grupos
|
Grupos
|
||||||
iva_group_codigo
|
iva_group_codigo
|
||||||
state
|
|
||||||
tarifa_componentes
|
tarifa_componentes
|
||||||
tarifa_componentes_series
|
tarifa_componentes_series
|
||||||
)
|
)
|
||||||
|
|
|
@ -362,8 +362,8 @@ export default {
|
||||||
moreMenuDeleteTicket: '.vn-popover.shown .vn-drop-down li[name="Delete ticket"]',
|
moreMenuDeleteTicket: '.vn-popover.shown .vn-drop-down li[name="Delete ticket"]',
|
||||||
moreMenuMakeInvoice: '.vn-popover.shown .vn-drop-down li[name="Make invoice"]',
|
moreMenuMakeInvoice: '.vn-popover.shown .vn-drop-down li[name="Make invoice"]',
|
||||||
moreMenuChangeShippedHour: '.vn-popover.shown .vn-drop-down li[name="Change shipped hour"]',
|
moreMenuChangeShippedHour: '.vn-popover.shown .vn-drop-down li[name="Change shipped hour"]',
|
||||||
changeShippedHour: 'vn-ticket-descriptor .vn-dialog.shown[vn-id="changeShippedDialog"]',
|
changeShippedHourDialog: 'vn-ticket-descriptor vn-dialog[vn-id="changeShippedDialog"]',
|
||||||
changeShippedHourInput: 'vn-ticket-descriptor .vn-dialog.shown vn-input-time input',
|
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',
|
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"]',
|
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)',
|
thursdayButton: 'vn-ticket-descriptor > vn-dialog > div > form > div.body > tpl-body > div > vn-tool-bar > vn-button:nth-child(4)',
|
||||||
|
|
|
@ -30,19 +30,11 @@ describe('Ticket descriptor path', () => {
|
||||||
expect(url.hash).toContain('/summary');
|
expect(url.hash).toContain('/summary');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should open the change shipped hours dialog by using the more menu option', async() => {
|
it(`should update the shipped hour using the descriptor menu`, async() => {
|
||||||
const visible = await nightmare
|
const result = await nightmare
|
||||||
.waitToClick(selectors.ticketDescriptor.moreMenu)
|
.waitToClick(selectors.ticketDescriptor.moreMenu)
|
||||||
.waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour)
|
.waitToClick(selectors.ticketDescriptor.moreMenuChangeShippedHour)
|
||||||
.waitForClassPresent(selectors.ticketDescriptor.changeShippedHour, 'shown')
|
.write(selectors.ticketDescriptor.changeShippedHourInput, '08:15')
|
||||||
.isVisible(selectors.ticketDescriptor.changeShippedHourInput);
|
|
||||||
|
|
||||||
expect(visible).toBeTruthy();
|
|
||||||
});
|
|
||||||
|
|
||||||
it(`should update the shipped hour`, async() => {
|
|
||||||
const result = await nightmare
|
|
||||||
.pickTime(selectors.ticketDescriptor.changeShippedHourInput, '08:15')
|
|
||||||
.waitToClick(selectors.ticketDescriptor.acceptChangeHourButton)
|
.waitToClick(selectors.ticketDescriptor.acceptChangeHourButton)
|
||||||
.waitForLastSnackbar();
|
.waitForLastSnackbar();
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ describe('Client activeWorkersWithRole', () => {
|
||||||
|
|
||||||
let isBuyer = await app.models.Account.hasRole(result[0].id, 'buyer');
|
let isBuyer = await app.models.Account.hasRole(result[0].id, 'buyer');
|
||||||
|
|
||||||
expect(result.length).toEqual(10);
|
expect(result.length).toEqual(11);
|
||||||
expect(isBuyer).toBeTruthy();
|
expect(isBuyer).toBeTruthy();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -61,14 +61,14 @@ describe('sale updatePrice()', () => {
|
||||||
|
|
||||||
it('should set price as a decimal number and check the sale has the mana component', async() => {
|
it('should set price as a decimal number and check the sale has the mana component', async() => {
|
||||||
let ctx = {req: {accessToken: {userId: 9}}};
|
let ctx = {req: {accessToken: {userId: 9}}};
|
||||||
let price = 5.3;
|
let price = 5.4;
|
||||||
|
|
||||||
await app.models.Sale.updatePrice(ctx, saleId, price);
|
await app.models.Sale.updatePrice(ctx, saleId, price);
|
||||||
let saleUpdated = await app.models.Sale.findById(saleId);
|
let saleUpdated = await app.models.Sale.findById(saleId);
|
||||||
createdSaleComponent = await app.models.SaleComponent.findOne({where: {saleFk: saleId, componentFk: manaComponentId}});
|
createdSaleComponent = await app.models.SaleComponent.findOne({where: {saleFk: saleId, componentFk: manaComponentId}});
|
||||||
|
|
||||||
expect(saleUpdated.price).toBe(price);
|
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() => {
|
it('should check that the mana of salesPerson changed', async() => {
|
||||||
|
|
Loading…
Reference in New Issue