Merge branch 'dev' of ssh://git.verdnatura.es:/var/lib/git/salix into dev

This commit is contained in:
Juan Ferrer Toribio 2017-05-17 21:23:54 +02:00
commit 9d4acfc64f
3 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,6 @@
<vn-vertical pad-large>
<vn-title>Información de facturación</vn-title>
<vn-horizontal>
<vn-textfield vn-two label="IBAN" field="fiscal.client.iban"></vn-textfield>
<vn-autocomplete vn-two
initial-value="fiscal.client.payMethod"
field="fiscal.client.payMethodFk"
@ -51,6 +50,7 @@
value-field="id"
label="Forma de pago">
</vn-autocomplete>
<vn-textfield vn-two label="IBAN" field="fiscal.client.iban"></vn-textfield>
<vn-textfield vn-one label="Vencimiento" field="fiscal.client.dueDay"></vn-textfield>
</vn-horizontal>
<vn-horizontal>

View File

@ -5,6 +5,7 @@
name="*[name]*"
ng-model="*[model]*"
vn-validation="*[rule]*"
ng-disabled="*[disable]*"
*[enabled]*/>
<button
type="button"

View File

@ -22,6 +22,7 @@ module.exports = function(Client) {
if(this.payMethod && !this.salesPerson) err();
};
Client.validatesLengthOf('iban', {allowNull: true, min: 23, max: 23});
// Hooks
Client.observe('before save', function(ctx, next) {