diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js index f4d0a8fda..d1ecae5a4 100644 --- a/e2e/helpers/selectors.js +++ b/e2e/helpers/selectors.js @@ -261,12 +261,12 @@ export default { submitBotanicalButton: `${components.vnSubmit}` }, itemSummary: { - basicData: `vn-item-summary vn-vertical[name="basicData"]`, - vat: `vn-item-summary vn-vertical[name="tax"]`, - tags: `vn-item-summary vn-vertical[name="tags"]`, - niche: `vn-item-summary vn-vertical[name="niche"]`, - botanical: `vn-item-summary vn-vertical[name="botanical"]`, - barcode: `vn-item-summary vn-vertical[name="barcode"]` + basicData: `vn-item-summary [name="basicData"]`, + vat: `vn-item-summary [name="tax"]`, + tags: `vn-item-summary [name="tags"]`, + niche: `vn-item-summary [name="niche"]`, + botanical: `vn-item-summary [name="botanical"]`, + barcode: `vn-item-summary [name="barcode"]` }, itemDiary: { thirdTicketId: 'vn-item-diary > vn-vertical > vn-card > div > vn-vertical > vn-table > div > vn-tbody > vn-tr:nth-child(3) > vn-td:nth-child(2) > span', @@ -275,11 +275,11 @@ export default { warehouseAutocomplete: 'vn-item-diary vn-autocomplete[field="$ctrl.warehouseFk"]', }, ticketSummary: { - sale: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr', - firstSaleItemId: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr > td:nth-child(2) > span', - popoverDiaryButton: 'vn-ticket-summary > vn-item-descriptor-popover vn-item-descriptor vn-icon[icon="icon-transaction"]', - firstSaleQuantity: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr > td:nth-child(4)', - firstSaleDiscount: 'vn-ticket-summary > vn-card > div > vn-vertical > vn-horizontal:nth-child(3) > vn-one > table > tbody > tr > td:nth-child(6)' + sale: 'vn-ticket-summary [name="sales"] table > tbody > tr', + firstSaleItemId: 'vn-ticket-summary [name="sales"] table > tbody > tr > td:nth-child(2) > span', + popoverDiaryButton: 'vn-ticket-summary vn-item-descriptor-popover vn-item-descriptor vn-icon[icon="icon-transaction"]', + firstSaleQuantity: 'vn-ticket-summary [name="sales"] table > tbody > tr > td:nth-child(4)', + firstSaleDiscount: 'vn-ticket-summary [name="sales"] table > tbody > tr > td:nth-child(6)' }, ticketsIndex: { newTicketButton: 'body > vn-app > vn-vertical > vn-vertical > ui-view > vn-ticket-index > a', diff --git a/e2e/paths/item-module/01_item_summary.spec.js b/e2e/paths/item-module/01_item_summary.spec.js index 13f72d98d..d454ddf81 100644 --- a/e2e/paths/item-module/01_item_summary.spec.js +++ b/e2e/paths/item-module/01_item_summary.spec.js @@ -35,34 +35,34 @@ describe('Item summary path', () => { it(`should check the item summary preview shows fields from basic data`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.basicData, 'Name: Object1 Gem1 5') + .waitForTextInElement(selectors.itemSummary.basicData, 'Object1 Gem1 5') .waitToGetProperty(selectors.itemSummary.basicData, 'innerText'); - expect(result).toContain('Name: Object1 Gem1 5'); + expect(result).toContain('Object1 Gem1 5'); }); it(`should check the item summary preview shows fields from tags`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.tags, 'Color: Yellow') + .waitForTextInElement(selectors.itemSummary.tags, 'Yellow') .waitToGetProperty(selectors.itemSummary.tags, 'innerText'); - expect(result).toContain('Color: Yellow'); + expect(result).toContain('Yellow'); }); it(`should check the item summary preview shows fields from niche`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.niche, 'Warehouse One: A1') + .waitForTextInElement(selectors.itemSummary.niche, 'A1') .waitToGetProperty(selectors.itemSummary.niche, 'innerText'); - expect(result).toContain('Warehouse One: A1'); + expect(result).toContain('A1'); }); it(`should check the item summary preview shows fields from botanical`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.botanical, 'Botanical: Hedera helix') + .waitForTextInElement(selectors.itemSummary.botanical, 'Hedera helix') .waitToGetProperty(selectors.itemSummary.botanical, 'innerText'); - expect(result).toContain('Botanical: Hedera helix'); + expect(result).toContain('Hedera helix'); }); it(`should check the item summary preview shows fields from barcode`, async() => { @@ -83,7 +83,7 @@ describe('Item summary path', () => { it('should search for other item', async() => { const result = await nightmare - .clearInput('body > vn-app > vn-vertical > vn-vertical > ui-view > vn-item-index > div > div > vn-card:nth-child(1) > div > vn-searchbar > form > vn-horizontal > vn-textfield > div > div > div.infix > input') + .clearInput('vn-item-index vn-searchbar input') .click(selectors.itemsIndex.searchButton) .type(selectors.itemsIndex.searchItemInput, 'Object2 Gem2 3') .click(selectors.itemsIndex.searchButton) @@ -109,34 +109,34 @@ describe('Item summary path', () => { it(`should now check the item summary preview shows fields from basic data`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.basicData, 'Name: Object2 Gem2 3') + .waitForTextInElement(selectors.itemSummary.basicData, 'Object2 Gem2 3') .waitToGetProperty(selectors.itemSummary.basicData, 'innerText'); - expect(result).toContain('Name: Object2 Gem2 3'); + expect(result).toContain('Object2 Gem2 3'); }); it(`should now check the item summary preview shows fields from tags`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.tags, 'Color: Red') + .waitForTextInElement(selectors.itemSummary.tags, 'Red') .waitToGetProperty(selectors.itemSummary.tags, 'innerText'); - expect(result).toContain('Color: Red'); + expect(result).toContain('Red'); }); it(`should now check the item summary preview shows fields from niche`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.niche, 'Warehouse One: A4') + .waitForTextInElement(selectors.itemSummary.niche, 'A4') .waitToGetProperty(selectors.itemSummary.niche, 'innerText'); - expect(result).toContain('Warehouse One: A4'); + expect(result).toContain('A4'); }); it(`should now check the item summary preview shows fields from botanical`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.botanical, 'Botanical: -') + .waitForTextInElement(selectors.itemSummary.botanical, '-') .waitToGetProperty(selectors.itemSummary.botanical, 'innerText'); - expect(result).toContain('Botanical: -'); + expect(result).toContain('-'); }); it(`should now check the item summary preview shows fields from barcode`, async() => { @@ -166,31 +166,31 @@ describe('Item summary path', () => { it(`should check the item summary shows fields from basic data section`, async() => { const result = await nightmare - .waitForTextInElement(selectors.itemSummary.basicData, 'Name: Object2 Gem2 3') + .waitForTextInElement(selectors.itemSummary.basicData, 'Object2 Gem2 3') .waitToGetProperty(selectors.itemSummary.basicData, 'innerText'); - expect(result).toContain('Name: Object2 Gem2 3'); + expect(result).toContain('Object2 Gem2 3'); }); it(`should check the item summary shows fields from tags section`, async() => { const result = await nightmare .waitToGetProperty(selectors.itemSummary.tags, 'innerText'); - expect(result).toContain('Color: Red'); + expect(result).toContain('Red'); }); it(`should check the item summary shows fields from niches section`, async() => { const result = await nightmare .waitToGetProperty(selectors.itemSummary.niche, 'innerText'); - expect(result).toContain('Warehouse One: A4'); + expect(result).toContain('One A4'); }); it(`should check the item summary shows fields from botanical section`, async() => { const result = await nightmare .waitToGetProperty(selectors.itemSummary.botanical, 'innerText'); - expect(result).toContain('Botanical: -'); + expect(result).toContain('-'); }); it(`should check the item summary shows fields from barcodes section`, async() => { diff --git a/front/core/components/dialog/style.scss b/front/core/components/dialog/style.scss index a9b1ceb95..a2f11b25d 100644 --- a/front/core/components/dialog/style.scss +++ b/front/core/components/dialog/style.scss @@ -13,6 +13,8 @@ background-color: rgba(0, 0, 0, .6); opacity: 0; transition: opacity 300ms ease-in-out; + padding: 3em; + box-sizing: border-box; &.shown { opacity: 1; @@ -25,6 +27,7 @@ overflow: auto; padding: 2em; box-sizing: border-box; + max-height: 100%; tpl-body { display: block; @@ -67,50 +70,4 @@ } } } - - &.dialog-summary { - - vn-card { - border: none; - box-shadow: none; - padding: 0; - - & > div > vn-vertical { - padding: 0; - margin: 0 - } - } - - & > div > button.close > vn-icon { - color: $main-01; - } - - & > div { - padding: 0 - } - - tpl-body { - width:auto; - background-color: transparent; - padding: 0 2em - } - - .body { - overflow: auto; - margin-top: 2em; - max-height: 700px; - } - - form { - min-width: 680px; - } - - .buttons { - margin-top: 2em - } - - vn-check label span { - font-size: .9em - } - } } diff --git a/front/core/components/fetched-tags/index.html b/front/core/components/fetched-tags/index.html index 84b3a2130..49232862a 100644 --- a/front/core/components/fetched-tags/index.html +++ b/front/core/components/fetched-tags/index.html @@ -2,7 +2,8 @@ {{::$ctrl.item.name}}
{{::fetchedTag.value}} diff --git a/front/core/components/fetched-tags/style.scss b/front/core/components/fetched-tags/style.scss index ec96d1efa..776d2522d 100644 --- a/front/core/components/fetched-tags/style.scss +++ b/front/core/components/fetched-tags/style.scss @@ -4,59 +4,35 @@ vn-fetched-tags { &.noTitle vn-one { display: none !important; } + & > vn-horizontal { + align-items: center; - @media screen and (max-width: 1600px){ - & vn-horizontal { + @media screen and (max-width: 1600px) { flex-direction: column; text-align: center; & > vn-one { - padding: 0 0 0.2em 0; - } - - & > vn-two { - text-align: center; - margin: 0 auto - } - - .inline-tag { - font-size: 0.7em; - padding: 0.3em + padding-bottom: .2em; } } - } + & > vn-one { + min-width: 12em; + } + & > vn-auto > .inline-tag { + display: inline-block; + color: $secondary-font-color; + margin-right: .4em; + text-align: center; + font-size: .8em; + height: 1.25em; + padding: .1em; + border-radius: .1em; + width: 4em; + border: 1px solid $secondary-font-color; - @media screen and (max-width: 1200px){ - & vn-horizontal { - .inline-tag { - font-size: 0.6em; - padding: 0.2em + &.empty { + border: 1px solid $main-bg; } } } - - & vn-one { - padding-top: 0.2em - } - - & vn-two { - white-space: nowrap - } - - & .inline-tag { - background-color: $color-white; - display: inline-block; - color: $secondary-font-color; - margin-right: 0.4em; - text-align: center; - font-size: 0.8em; - height: 1.25em; - padding: 0.3em; - width: 5em; - border: 1px solid $secondary-font-color; - } - - & .inline-tag.empty { - border: 1px solid $main-bg - } } \ No newline at end of file diff --git a/front/core/components/label-value/label-value.js b/front/core/components/label-value/label-value.js index 73a241b4e..88edb5381 100644 --- a/front/core/components/label-value/label-value.js +++ b/front/core/components/label-value/label-value.js @@ -8,7 +8,7 @@ export default class Controller { } set label(value) { let label = this.element.querySelector('vn-label'); - label.textContent = this._.instant(value) + ':'; + label.textContent = this._.instant(value); this._label = value; } get label() { diff --git a/front/core/components/label-value/style.scss b/front/core/components/label-value/style.scss index 19b551af0..e4360cec4 100644 --- a/front/core/components/label-value/style.scss +++ b/front/core/components/label-value/style.scss @@ -3,6 +3,10 @@ vn-label-value > section { & > vn-label { color: $secondary-font-color; + + &::after { + content: ':'; + } } & > span { color: $main-font-color; diff --git a/front/salix/components/home/home.html b/front/salix/components/home/home.html index 16d5eebf9..48546f4cd 100644 --- a/front/salix/components/home/home.html +++ b/front/salix/components/home/home.html @@ -1,18 +1,22 @@ -
+
diff --git a/front/salix/components/home/home.js b/front/salix/components/home/home.js index 4891f29ef..dd8765286 100644 --- a/front/salix/components/home/home.js +++ b/front/salix/components/home/home.js @@ -3,26 +3,42 @@ import './style.scss'; import keybindings from '../../global-keybindings.yml'; export default class Controller { - constructor(modulesFactory, $state, $translate, $scope) { + constructor(modulesFactory, $state, $translate, $sce) { this.modules = modulesFactory.getModules(); - this.state = $state; - this.$translate = $translate; - this.$scope = $scope; + this.$state = $state; + this._ = $translate; + this.$sce = $sce; this.keybindings = keybindings; } $onInit() { - this.modules.map(module => { + this.modules.map(mod => { let keyBind = this.keybindings.find(keyBind => { - return keyBind.sref == module.route.state; + return keyBind.sref == mod.route.state; }); if (keyBind) - module.keyBind = keyBind.key.toUpperCase(); + mod.keyBind = keyBind.key.toUpperCase(); }); } + getModuleName(mod) { + let getName = mod => { + let name = this._.instant(mod.name); + let lower = name.toUpperCase(); + if (!mod.keyBind) return name; + let index = lower.indexOf(mod.keyBind); + if (index === -1) return name; + + let newName = name.substr(0, index); + newName += `${name.substr(index, 1)}`; + newName += name.substr(index + 1); + return newName; + }; + + return this.$sce.trustAsHtml(getName(mod)); + } } -Controller.$inject = ['modulesFactory', '$state', '$translate', '$scope']; +Controller.$inject = ['modulesFactory', '$state', '$translate', '$sce']; ngModule.component('vnHome', { template: require('./home.html'), diff --git a/front/salix/components/home/style.scss b/front/salix/components/home/style.scss index b33949240..f9ba0732b 100644 --- a/front/salix/components/home/style.scss +++ b/front/salix/components/home/style.scss @@ -15,6 +15,8 @@ vn-home { flex-direction: row; justify-content: center; flex-wrap: wrap; + max-width: 40em; + margin: 0 auto; & > a { @extend %clickable-light; @@ -30,18 +32,17 @@ vn-home { padding: 1em; justify-content: center; - & > vn-icon { - font-size: 4em; - } + & > div { + height: 70px; + display: flex; + align-items: center; + justify-content: center; - & > vn-icon i[class="material-icons"] { - line-height: 75px; + & > vn-icon { + display: block; + font-size: 3.5em; + } } - - & > vn-icon, & > vn-icon i, & > vn-icon i::before { - max-height: 75px; - } - & > span { font-size: 0.9em; text-align: center; @@ -53,6 +54,11 @@ vn-home { white-space: nowrap; overflow: hidden; color: white; + margin: 0; + + & > .bind-letter { + color: #FD0; + } } } } diff --git a/front/salix/components/main-menu/main-menu.html b/front/salix/components/main-menu/main-menu.html index ba6cd6688..5f771d363 100644 --- a/front/salix/components/main-menu/main-menu.html +++ b/front/salix/components/main-menu/main-menu.html @@ -22,7 +22,7 @@
  • - + {{::mod.name}}
diff --git a/front/salix/modules-factory.js b/front/salix/modules-factory.js index 02c3e845c..1c199c4c4 100644 --- a/front/salix/modules-factory.js +++ b/front/salix/modules-factory.js @@ -4,9 +4,8 @@ function modulesFactory(aclService) { function getMainRoute(routeCollection) { let cant = routeCollection.length; for (let i = 0; i < cant; i++) { - if (!routeCollection[i].abstract) { + if (!routeCollection[i].abstract) return routeCollection[i]; - } } return null; } @@ -16,7 +15,7 @@ function modulesFactory(aclService) { for (let file in window.routes) { let card = { name: routes[file].name || routes[file].module, - icon: routes[file].icon || '' + icon: routes[file].icon || null }; let mainRoute = getMainRoute(window.routes[file].routes); if (mainRoute && aclService.routeHasPermission(mainRoute)) { diff --git a/front/salix/styles/summary.scss b/front/salix/styles/summary.scss index 4efda84e0..d636f4c29 100644 --- a/front/salix/styles/summary.scss +++ b/front/salix/styles/summary.scss @@ -1,18 +1,64 @@ @import "./colors"; +@import "./margin"; +@import "./padding"; -.summary{ - h5:not(.title) { - padding: 7px; - background-color: $main-01-03; - border-bottom: 2px solid $main-01; - font-family: unset !important; - text-transform: uppercase; - } - .title, p.title { - border: none; - background: $main-01; - color: $color-white; - margin: 0!important; +.summary { + margin: 0 auto; + max-width: 950px; + + & > div { + & > h5 { + @extend .pad-small; + border: none; + background: $main-01; + color: $color-white; + margin: 0; + text-align: center; + line-height: 1.3em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + & > vn-horizontal { + flex-wrap: wrap; + @extend .pad-medium; + + h4 { + @extend .margin-medium-bottom; + text-transform: uppercase; + font-size: 15pt; + line-height: 1; + padding: 7px; + padding-bottom: 4px; /* Bottom line-height fix */ + font-family: unset; + background-color: $main-01-03; + border-bottom: .1em solid $main-01; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + & > * { + @extend .margin-small; + min-width: 14em; + overflow: hidden; + padding: 0; + } + & > vn-auto { + width: 100%; + } + vn-label-value > section { + margin-bottom: .3em; + + & > vn-label { + display: block; + font-size: .9em; + + &::after { + content: initial; + } + } + } + } } p:after { content: ' '; @@ -20,42 +66,50 @@ display: block; clear: both } +} - vn-label-value > section { - margin-bottom: .3em +.vn-dialog.dialog-summary { + vn-card { + border: none; + box-shadow: none; + } + & > div > button.close { + display: none; + } + & > div { + padding: 0 + } + tpl-body { + width: auto; + } + .buttons { + display: none; + } + vn-check label span { + font-size: .9em } } .state { - @extend .summary; padding: 5px; background-color: $main-01; - vn-one:nth-child(1){ - border-right: 1px solid white; - } + color: white; + p { - font-size: 12px; - line-height: 15px!important; - padding: 0 0 2px 0; - } - h5 { - line-height: 10px!important; + font-size: 13px; + line-height: 15px; + text-align: center; + margin: .1em 0; + + &:nth-child(1) { + text-transform: uppercase; + } } vn-one { padding: 0; - } - vn-one > h5{ - padding-bottom: 7px; - } -} - -vn-item-descriptor .state{ - @extend .state; - vn-one > p{ - padding-top: 5px; - } - vn-one > h5{ - padding-bottom: 12px; + &:nth-child(1) { + border-right: .1em solid white; + } } } \ No newline at end of file diff --git a/loopback/locale/en.json b/loopback/locale/en.json index 8c9f4779f..9e24f2b04 100644 --- a/loopback/locale/en.json +++ b/loopback/locale/en.json @@ -26,5 +26,6 @@ "Warehouse cannot be blank": "Warehouse cannot be blank", "Agency cannot be blank": "Agency cannot be blank", "The IBAN does not have the correct format": "The IBAN does not have the correct format", - "You can't make changes on the basic data of an confirmed order or with rows": "You can't make changes on the basic data of an confirmed order or with rows" + "You can't make changes on the basic data of an confirmed order or with rows": "You can't make changes on the basic data of an confirmed order or with rows", + "You can't create a ticket for a inactive client": "You can't create a ticket for a inactive client" } \ No newline at end of file diff --git a/modules/claim/front/summary/index.html b/modules/claim/front/summary/index.html index 6a505426d..243d98f25 100644 --- a/modules/claim/front/summary/index.html +++ b/modules/claim/front/summary/index.html @@ -1,167 +1,162 @@ - - - - -
{{$ctrl.summary.claim.id}} - {{$ctrl.summary.claim.client.name}}
-
- - - - - - - - - - - - - - - - - - - - - - -
Detail
- - - - Id - Landed - Quantity - Claimed - Description - Price - Disc. - Total - - - - - - - {{("000000"+saleClaimed.sale.itemFk).slice(-6)}} - - - {{::saleClaimed.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}} - {{::saleClaimed.sale.quantity}} - {{::saleClaimed.quantity}} - {{::saleClaimed.sale.concept}} - {{::saleClaimed.sale.price | currency:'€':2}} - {{::saleClaimed.sale.discount}} % - - {{::(saleClaimed.sale.quantity * saleClaimed.sale.price) - - ((saleClaimed.sale.discount * - (saleClaimed.sale.quantity * saleClaimed.sale.price))/100) | currency:'€':2 - }} - - - - - No results - - -
-
- - -
Development
- - - - Reason - Result - Responsible - Worker - Redelivery - - - - - {{::development.claimReason.description}} - {{::development.claimResult.description}} - {{::development.claimResponsible.description}} - {{::development.worker.firstName}} - {{::development.claimRedelivery.description}} - - - - No results - - -
-
- - -
Action
- - - - Id - Destination - Landed - Quantity - Description - Price - Disc. - Total - - - - - - - {{("000000"+action.sale.itemFk).slice(-6)}} - - - {{::action.sale.id}} - {{::action.claimBeggining.description}} - {{::action.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}} - {{::action.sale.quantity}} - {{::action.sale.concept}} - {{::action.sale.price}} - {{::action.sale.discount}} % - - {{::(action.sale.quantity * action.sale.price) - - ((action.sale.discount * - (action.sale.quantity * action.sale.price))/100) | currency:'€':2 - }} - - - - - No results - - -
-
-
-
-
- + +
{{$ctrl.summary.claim.id}} - {{$ctrl.summary.claim.client.name}}
+ + + + + + + + + + + + + + + + + + + + +

Detail

+
+ + + + Id + Landed + Quantity + Claimed + Description + Price + Disc. + Total + + + + + + + {{("000000"+saleClaimed.sale.itemFk).slice(-6)}} + + + {{saleClaimed.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}} + {{saleClaimed.sale.quantity}} + {{saleClaimed.quantity}} + {{saleClaimed.sale.concept}} + {{saleClaimed.sale.price | currency:'€':2}} + {{saleClaimed.sale.discount}} % + + {{(saleClaimed.sale.quantity * saleClaimed.sale.price) - + ((saleClaimed.sale.discount * + (saleClaimed.sale.quantity * saleClaimed.sale.price))/100) | currency:'€':2 + }} + + + + + No results + + +
+
+ +

Development

+
+ + + + Reason + Result + Responsible + Worker + Redelivery + + + + + {{development.claimReason.description}} + {{development.claimResult.description}} + {{development.claimResponsible.description}} + {{development.worker.firstName}} + {{development.claimRedelivery.description}} + + + + No results + + +
+
+ +

Action

+
+ + + + Id + Destination + Landed + Quantity + Description + Price + Disc. + Total + + + + + + + {{("000000"+action.sale.itemFk).slice(-6)}} + + + {{action.sale.id}} + {{action.claimBeggining.description}} + {{action.sale.ticket.landed | dateTime: 'dd/MM/yyyy'}} + {{action.sale.quantity}} + {{action.sale.concept}} + {{action.sale.price}} + {{action.sale.discount}} % + + {{(action.sale.quantity * action.sale.price) - + ((action.sale.discount * + (action.sale.quantity * action.sale.price))/100) | currency:'€':2 + }} + + + + + No results + + +
+
+
+
+ \ No newline at end of file diff --git a/modules/client/front/locale/es.yml b/modules/client/front/locale/es.yml index 917e440a9..64614337e 100644 --- a/modules/client/front/locale/es.yml +++ b/modules/client/front/locale/es.yml @@ -33,7 +33,7 @@ List: Listado New client: Nuevo cliente Summary: Vista previa Basic data: Datos básicos -Fiscal data: Datos Fiscales +Fiscal data: Datos fiscales Pay method: Forma de pago Addresses: Consignatarios New address: Nuevo consignatario diff --git a/modules/client/front/summary/index.html b/modules/client/front/summary/index.html index 7ea875094..311da805a 100644 --- a/modules/client/front/summary/index.html +++ b/modules/client/front/summary/index.html @@ -1,208 +1,195 @@ - - - - -
{{$ctrl.summary.name}} - {{$ctrl.summary.id}} - {{$ctrl.summary.salesPerson.firstName}} {{$ctrl.summary.salesPerson.name}}
-
- - -
Basic data
- - - - - - - - - - - - - - - - -
- -
Fiscal data
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Pay method
- - - - - - - - - - - - - - - - -
-
- - -
Default address
- - - - - - -
- -
Web access
- - - - - - -
- -
Business data
- - - - - - - - - - -
- -
Financial information
- - - - - - - - - - - - - - -
-
+ +
{{$ctrl.summary.name}} - {{$ctrl.summary.id}} - {{$ctrl.summary.salesPerson.firstName}} {{$ctrl.summary.salesPerson.name}}
+ + +

Basic data

+ + + + + + + + + + + + + + + + +
+ +

Fiscal address

+ + + + + + + + + + + + + + +
+ +

Fiscal data

+ + + + + + + + + + + + + + + + +
+ +

Pay method

+ + + + + + + + + + + + + + +
+ +

Default address

+ + + + + + +
+ +

Web access

+ + + + + + +
+ +

Business data

+ + + + + + + + + + +
+ +

Financial information

+ + + + + + + + + + + + + -
-
\ No newline at end of file + + +
\ No newline at end of file diff --git a/modules/client/front/summary/locale/es.yml b/modules/client/front/summary/locale/es.yml index 36faf51d6..8377e8bc5 100644 --- a/modules/client/front/summary/locale/es.yml +++ b/modules/client/front/summary/locale/es.yml @@ -11,3 +11,4 @@ Balance due: Saldo vencido Rate: Tarifa Business data: Datos comerciales Recovery since: Recobro desde +Fiscal address: Dirección fiscal diff --git a/modules/client/front/summary/style.scss b/modules/client/front/summary/style.scss index a8a0be75b..7918cdffd 100644 --- a/modules/client/front/summary/style.scss +++ b/modules/client/front/summary/style.scss @@ -1,9 +1,3 @@ -vn-dialog { - vn-client-summary vn-one { - min-width: 10em; - } -} - vn-client-summary { .bold { font-family: vn-font-bold; diff --git a/modules/item/front/descriptor/index.html b/modules/item/front/descriptor/index.html index f44f13f37..2742b5f26 100644 --- a/modules/item/front/descriptor/index.html +++ b/modules/item/front/descriptor/index.html @@ -31,16 +31,16 @@ - - -

Visible

-
{{$ctrl.item.visible}}
-
- -

Available

-
{{$ctrl.item.available}}
-
-
+ + +

Visible

+

{{$ctrl.item.visible}}

+
+ +

Available

+

{{$ctrl.item.available}}

+
+
{{$ctrl.item.id}}
- - - - - -
{{$ctrl.item.id}}
-
- - - - - -

Visible

-
{{$ctrl.summary.visible}}
-
- -

Available

-
{{$ctrl.summary.available}}
-
-
-
-
- - -
Basic data
- - - - - - - - - - - - - - -
+
{{$ctrl.item.id}} - {{$ctrl.summary.item.name}}
+ + + + - - -
Other data
- - - - - - - - - - - - - - -
- - -
Tags
- - -
-
-
- - - -
Tax
- - -
-
- - -
Niche
- - -
-
- - -
Botanical
- - - - - - -
-
- - -
Barcode
-

- {{barcode.code}} -

-
-
-
-
+ + +

Visible

+

{{$ctrl.summary.visible}}

+
+ +

Available

+

{{$ctrl.summary.available}}

+
+
+ + +

Basic data

+ + + + + + + + + + + + + + +
+ +

Other data

+ + + + + + + + + + + + + + +
+ +

Tags

+ + +
+ +

Tax

+ + +
+ +

Niche

+ + +
+ +

Botanical

+ + + + + + +
+ +

Barcode

+

+ {{barcode.code}} +

+
+ \ No newline at end of file diff --git a/modules/item/front/summary/style.scss b/modules/item/front/summary/style.scss index fd2af274a..40f3c2f9e 100644 --- a/modules/item/front/summary/style.scss +++ b/modules/item/front/summary/style.scss @@ -1,5 +1,5 @@ vn-item-summary { - p{ + p { margin: 0; } } \ No newline at end of file diff --git a/modules/item/front/ticket-descriptor/index.js b/modules/item/front/ticket-descriptor/index.js index b0d5c54fa..dc8432be8 100644 --- a/modules/item/front/ticket-descriptor/index.js +++ b/modules/item/front/ticket-descriptor/index.js @@ -10,9 +10,10 @@ class Controller { this.$translate = $translate; this.moreOptions = [ {callback: this.showAddTurnDialog, name: 'Add turn', show: true}, - {callback: this.showDeleteTicketDialog, name: 'Delete ticket', show: true}, + {callback: this.showDeleteTicketDialog, name: 'Delete ticket', show: true}/* , {callback: this.showAddStowaway, name: 'Add stowaway', show: true}, - {callback: this.showRemoveStowaway, name: 'Remove stowaway', show: () => this.shouldShowRemoveStowaway()} + {callback: this.showRemoveStowaway, name: 'Remove stowaway', show: false} + */ ]; } @@ -109,8 +110,7 @@ class Controller { tooltip: 'Ship' }; } - console.log(value.ship); - + /* if (value.ship.length == 1) { links.btnThree = { icon: 'icon-polizon', @@ -119,7 +119,7 @@ class Controller { }; } else if (value.ship.length > 1) this.shipStowaways = value.ship; - +*/ this._quicklinks = links; } diff --git a/modules/order/front/index/index.html b/modules/order/front/index/index.html index 6c05f0d05..4528cfe45 100644 --- a/modules/order/front/index/index.html +++ b/modules/order/front/index/index.html @@ -70,18 +70,14 @@
- + - - - - - - + + + class="dialog-summary"> diff --git a/modules/order/front/summary/index.html b/modules/order/front/summary/index.html index 45009c009..1b4fc97fc 100644 --- a/modules/order/front/summary/index.html +++ b/modules/order/front/summary/index.html @@ -1,52 +1,45 @@ - - + +
{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}} - {{$ctrl.summary.client.salesPerson.id}}
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Subtotal {{$ctrl.summary.subTotal | currency:' €':2}}

+

VAT {{$ctrl.summary.VAT | currency:' €':2}}

+

Total {{$ctrl.summary.total | currency:' €':2}}

+
-
{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}} - {{$ctrl.summary.client.salesPerson.id}}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Subtotal {{$ctrl.summary.subTotal | currency:' €':2}}

-

VAT {{$ctrl.summary.VAT | currency:' €':2}}

-

Total {{$ctrl.summary.total | currency:' €':2}}

-
-
-
- +
@@ -86,9 +79,11 @@
- - +
+ +
- diff --git a/modules/order/front/summary/style.scss b/modules/order/front/summary/style.scss index eed3d5370..283214a2d 100644 --- a/modules/order/front/summary/style.scss +++ b/modules/order/front/summary/style.scss @@ -1,31 +1,14 @@ -vn-dialog { - vn-order-summary vn-one { - min-width: 10em; - } -} +vn-order-summary .summary > div > vn-horizontal > vn-one { + min-width: 10em !important; -.ticketSummary { - .ticketSummary__data { - vn-one { - padding-right: 20px - } + &.taxes { + border: .1em solid #CCC; + text-align: right; + padding: .5em !important; - vn-one:last-child { - padding-right: 0 - } - } - - .ticketSummary__notes { - max-width: 18em - } - - .ticketSummary__taxes { - max-width: 15em; - - & section { - border: 1px solid #CCC; - text-align: right; - padding: 10px + & > p { + font-size: 1.2em; + margin: .2em; } } } \ No newline at end of file diff --git a/modules/ticket/front/card/index.js b/modules/ticket/front/card/index.js index cfd60800d..94a35f02a 100644 --- a/modules/ticket/front/card/index.js +++ b/modules/ticket/front/card/index.js @@ -7,9 +7,9 @@ class Controller { this.filter = { include: [ {relation: 'warehouse', scope: {fields: ['name']}}, - {relation: 'ship'}, + // {relation: 'ship'}, {relation: 'agencyMode', scope: {fields: ['name']}}, - {relation: 'stowaway'}, + // {relation: 'stowaway'}, { relation: 'client', scope: { diff --git a/modules/ticket/front/summary/index.html b/modules/ticket/front/summary/index.html index 46b5858b1..f2d0a9b4f 100644 --- a/modules/ticket/front/summary/index.html +++ b/modules/ticket/front/summary/index.html @@ -1,59 +1,55 @@ - - - -
{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}} - {{$ctrl.summary.nickname}}
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Subtotal {{$ctrl.summary.subTotal | currency:' €':2}}

-

VAT {{$ctrl.summary.VAT | currency:' €':2}}

-

Total {{$ctrl.summary.total | currency:' €':2}}

-
-
-
- - -
Sale
+ +
{{$ctrl.summary.id}} - {{$ctrl.summary.client.name}} - {{$ctrl.summary.nickname}}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Subtotal {{$ctrl.summary.subTotal | currency:' €':2}}

+

VAT {{$ctrl.summary.VAT | currency:' €':2}}

+

Total {{$ctrl.summary.total | currency:' €':2}}

+
+ +

Sale

+
@@ -89,7 +85,7 @@ - {{("000000"+sale.itemFk).slice(-6)}} + {{sale.itemFk | zeroFill:6}} @@ -103,11 +99,11 @@
- - - - -
Packages
+
+
+ +

Packages

+
@@ -127,9 +123,11 @@ No results - - -
Service
+
+
+ +

Service

+
@@ -153,11 +151,11 @@ No results - - - - -
Purchase request
+
+
+ +

Purchase request

+
@@ -199,10 +197,11 @@ No results - - - +
+
+
- diff --git a/modules/ticket/front/summary/style.scss b/modules/ticket/front/summary/style.scss index ca61ee97c..571402188 100644 --- a/modules/ticket/front/summary/style.scss +++ b/modules/ticket/front/summary/style.scss @@ -1,25 +1,14 @@ -.ticketSummary { - .ticketSummary__data { - vn-one { - padding-right: 20px - } +vn-ticket-summary .summary > div > vn-horizontal > vn-one { + min-width: 10em !important; - vn-one:last-child { - padding-right: 0 - } - } + &.taxes { + border: .1em solid #CCC; + text-align: right; + padding: .5em !important; - .ticketSummary__notes { - max-width: 18em - } - - .ticketSummary__taxes { - max-width: 15em; - - & section { - border: 1px solid #CCC; - text-align: right; - padding: 10px + & > p { + font-size: 1.2em; + margin: .2em; } } } \ No newline at end of file diff --git a/modules/travel/front/routes.json b/modules/travel/front/routes.json index 44f70e821..174cf4ac3 100644 --- a/modules/travel/front/routes.json +++ b/modules/travel/front/routes.json @@ -1,7 +1,6 @@ { "module": "travel", "name": "Travels", - "icon": "icon-travels", "validations": true, "routes": [ {