Merge branch 'dev' of ssh://git.verdnatura.es:/var/lib/git/salix into dev
This commit is contained in:
commit
9d4acfc64f
|
@ -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>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
name="*[name]*"
|
||||
ng-model="*[model]*"
|
||||
vn-validation="*[rule]*"
|
||||
ng-disabled="*[disable]*"
|
||||
*[enabled]*/>
|
||||
<button
|
||||
type="button"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue