Merge branch '1975-delivery_note_tags' of verdnatura/salix into dev
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-01-10 11:09:29 +00:00 committed by Gitea
commit de05cadef4
15 changed files with 66 additions and 42 deletions

View File

@ -87,8 +87,7 @@ vn-layout {
& > * {
display: block;
padding: $spacing-md;
box-sizing: border-box;
height: 100%
box-sizing: border-box
}
&.ng-enter {
vn-side-menu {

View File

@ -2,4 +2,5 @@
.vn-module-card {
padding: 0;
height: 100%
}

View File

@ -2,4 +2,5 @@
.vn-module-main {
padding: 0;
height: 100%
}

View File

@ -10,4 +10,4 @@ import './descriptor';
import './development';
import './search-panel';
import './summary';
import './dms/index';
import './photos';

View File

@ -1,4 +1,4 @@
import ngModule from '../../module';
import ngModule from '../module';
import './style.scss';
class Controller {
@ -108,7 +108,7 @@ class Controller {
Controller.$inject = ['$stateParams', '$scope', '$http', '$translate', 'vnToken', 'vnApp', 'vnConfig'];
ngModule.component('vnClaimDmsIndex', {
ngModule.component('vnClaimPhotos', {
template: require('./index.html'),
controller: Controller,
bindings: {

View File

@ -2,7 +2,7 @@ import './index';
import crudModel from 'core/mocks/crud-model';
describe('Claim', () => {
describe('Component vnClaimDmsIndex', () => {
describe('Component vnClaimPhotos', () => {
let $componentController;
let $scope;
let $httpBackend;
@ -16,7 +16,7 @@ describe('Claim', () => {
$httpParamSerializer = _$httpParamSerializer_;
$httpBackend = _$httpBackend_;
$scope = $rootScope.$new();
controller = $componentController('vnClaimDmsIndex', {$: $scope});
controller = $componentController('vnClaimPhotos', {$: $scope});
controller.$.model = crudModel;
controller.claim = {
id: 1,

View File

@ -0,0 +1,32 @@
@import "./variables";
vn-claim-photos {
height: 100%;
.drop-zone {
color: $color-font-secondary;
box-sizing: border-box;
border-radius: 0.5em;
text-align: center;
min-height: 100%;
.empty-rows {
padding: 5em $spacing-md;
font-size: 1.4em
}
vn-icon {
font-size: 3em
}
}
.photo-list {
padding: $spacing-md;
min-height: 100%;
.photo {
width: 32em;
height: 18em;
}
}
}

View File

@ -11,7 +11,7 @@
"card": [
{"state": "claim.card.basicData", "icon": "settings"},
{"state": "claim.card.detail", "icon": "icon-details"},
{"state": "claim.card.dms.index", "icon": "image"},
{"state": "claim.card.photos", "icon": "image"},
{"state": "claim.card.development", "icon": "icon-traceability"},
{"state": "claim.card.action", "icon": "icon-actions"}
]
@ -81,14 +81,9 @@
},
"acl": ["salesAssistant"]
}, {
"url": "/dms",
"state": "claim.card.dms",
"abstract": true,
"component": "ui-view"
}, {
"url" : "/index",
"state": "claim.card.dms.index",
"component": "vn-claim-dms-index",
"url": "/photos",
"state": "claim.card.photos",
"component": "vn-claim-photos",
"description": "Photos",
"params": {
"claim": "$ctrl.claim"

View File

@ -2,22 +2,24 @@
vn-id="SMSDialog"
on-response="$ctrl.onResponse($response)">
<tpl-body>
<h5 class="vn-py-sm" translate>Send SMS</h5>
<vn-horizontal>
<vn-textfield
vn-one
label="Destination"
ng-model="$ctrl.sms.destination">
</vn-textfield>
</vn-horizontal>
<vn-horizontal >
<vn-textarea
vn-one
label="Message"
ng-model="$ctrl.sms.message"
rule>
</vn-textarea>
</vn-horizontal>
<section class="SMSDialog">
<h5 class="vn-py-sm" translate>Send SMS</h5>
<vn-horizontal>
<vn-textfield
vn-one
label="Destination"
ng-model="$ctrl.sms.destination">
</vn-textfield>
</vn-horizontal>
<vn-horizontal >
<vn-textarea vn-one
label="Message"
ng-model="$ctrl.sms.message"
rows="5"
rule>
</vn-textarea>
</vn-horizontal>
</section>
</tpl-body>
<tpl-buttons>
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>

View File

@ -1,7 +1,5 @@
@import "variables";
vn-client-sms {
textarea {
height: 8em
}
.SMSDialog {
min-width: 25em
}

View File

@ -13,9 +13,7 @@ Send Delivery Note: Enviar albarán
Show pallet report: Ver hoja de pallet
Change shipped hour: Cambiar hora de envío
Shipped hour: Hora de envío
SMSPayment: >-
Verdnatura le comunica: Su pedido está pendiente de pago.
Por favor, entre en la página web y efectue el pago con tarjeta. Muchas gracias.
SMSPayment: "Verdnatura le comunica:\rSu pedido está pendiente de pago.\rPor favor, entre en la página web y efectue el pago con tarjeta.\rMuchas gracias."
Ticket invoiced: Ticket facturado
Make invoice: Crear factura
Regenerate invoice: Regenerar factura

View File

@ -24,9 +24,7 @@ Sales to transfer: Líneas a transferir
Destination ticket: Ticket destinatario
Change ticket state to 'Ok': Cambiar estado del ticket a 'Ok'
Reserved: Reservado
SMSAvailability: >-
Verdnatura le comunica: Pedido {{ticketFk}} día {{created | date: "dd/MM/yyyy"}}.
{{notAvailables}} no disponible/s. Disculpe las molestias.
SMSAvailability: "Verdnatura le comunica:\rPedido {{ticketFk}} día {{created | date: 'dd/MM/yyyy'}}.\r{{notAvailables}} no disponible/s.\rDisculpe las molestias."
Continue anyway?: ¿Continuar de todas formas?
This ticket is now empty: El ticket ha quedado vacio
Do you want to delete it?: ¿Quieres eliminarlo?