diff --git a/resources/assets/js/components/base/modal/ItemModal.vue b/resources/assets/js/components/base/modal/ItemModal.vue index 439f55bd..2a3bfc31 100644 --- a/resources/assets/js/components/base/modal/ItemModal.vue +++ b/resources/assets/js/components/base/modal/ItemModal.vue @@ -142,7 +142,7 @@ export default { required, numeric, minValue: minValue(0.1), - maxLength: maxLength(10) + maxLength: maxLength(20) }, description: { maxLength: maxLength(255) diff --git a/resources/assets/js/plugins/en.js b/resources/assets/js/plugins/en.js index 93c2e001..40d5bdde 100644 --- a/resources/assets/js/plugins/en.js +++ b/resources/assets/js/plugins/en.js @@ -773,17 +773,17 @@ export default { password_length: 'Password must be {count} character long.', qty_must_greater_than_zero: 'Quantity must be greater than zero.', price_greater_than_zero: 'Price must be greater than zero.', - payment_greater_than_zero: 'Payment must be greater than zero.', + payment_greater_than_zero: 'Payment must be greater than zero.', payment_greater_than_due_amount: 'Entered Payment is more than due amount of this invoice.', - quantity_maxlength: 'Quantity should not be greater than 10 digits.', + quantity_maxlength: 'Quantity should not be greater than 20 digits.', price_maxlength: 'Price should not be greater than 20 digits.', price_minvalue: 'Price should be greater than 0.', - amount_maxlength: 'Amount should not be greater than 10 digits.', + amount_maxlength: 'Amount should not be greater than 20 digits.', amount_minvalue: 'Amount should be greater than 0.', description_maxlength: 'Description should not be greater than 255 characters.', maximum_options_error: 'Maximum of {max} options selected. First remove a selected option to select another.', notes_maxlength: 'Notes should not be greater than 255 characters.', address_maxlength: 'Address should not be greater than 255 characters.', - ref_number_maxlength: 'Ref Number should not be greater than 10 digits' + ref_number_maxlength: 'Ref Number should not be greater than 255 characters.' } } diff --git a/resources/assets/js/plugins/es.js b/resources/assets/js/plugins/es.js index 84f539c7..35961f44 100644 --- a/resources/assets/js/plugins/es.js +++ b/resources/assets/js/plugins/es.js @@ -774,15 +774,15 @@ export default { price_greater_than_zero: 'El precio debe ser mayor que cero.', payment_greater_than_zero: 'El pago debe ser mayor que cero.', payment_greater_than_due_amount: 'El pago ingresado es mayor al monto adeudado de esta factura.', - quantity_maxlength: 'La cantidad no debe ser mayor de 10 dígitos.', - price_maxlength: 'El precio no debe ser mayor de 10 dígitos.', + quantity_maxlength: 'La cantidad no debe ser mayor de 20 dígitos.', + price_maxlength: 'El precio no debe ser mayor de 20 dígitos.', price_minvalue: 'El precio debe ser mayor que 0 dígitos', - amount_maxlength: 'La cantidad no debe ser mayor de 10 dígitos.', + amount_maxlength: 'La cantidad no debe ser mayor de 20 dígitos.', amount_minvalue: 'La cantidad debe ser mayor que 0 dígitos', description_maxlength: 'La descripción no debe tener más de 255 caracteres.', maximum_options_error: 'Máximo de {max} opciones seleccionadas. Primero elimine una opción seleccionada para seleccionar otra.', notes_maxlength: 'Las notas no deben tener más de 255 caracteres.', address_maxlength: 'La dirección no debe tener más de 255 caracteres.', - ref_number_maxlength: 'El número de referencia no debe tener más de 10 dígitos.' + ref_number_maxlength: 'El número de referencia no debe tener más de 255 caracteres.' } } diff --git a/resources/assets/js/plugins/fr.js b/resources/assets/js/plugins/fr.js index 02b05495..4f08e620 100644 --- a/resources/assets/js/plugins/fr.js +++ b/resources/assets/js/plugins/fr.js @@ -777,15 +777,15 @@ export default { price_greater_than_zero: 'Le prix doit être supérieur à zéro.', payment_greater_than_zero: 'Le paiement doit être supérieur à zéro.', payment_greater_than_due_amount: 'Le paiement entré est plus que le montant dû de cette facture.', - quantity_maxlength: 'La quantité ne doit pas dépasser 10 chiffres.', - price_maxlength: 'Le prix ne doit pas dépasser 10 chiffres.', + quantity_maxlength: 'La quantité ne doit pas dépasser 20 chiffres.', + price_maxlength: 'Le prix ne doit pas dépasser 20 chiffres.', price_minvalue: 'Le prix doit être supérieur à 0 chiffre', - amount_maxlength: 'Le montant ne doit pas dépasser 10 chiffres.', + amount_maxlength: 'Le montant ne doit pas dépasser 20 chiffres.', amount_minvalue: 'Le montant doit être supérieur à 0 chiffre', description_maxlength: 'La description ne doit pas dépasser 255 caractères.', maximum_options_error: 'Maximum de {max} options sélectionnées. Commencez par supprimer une option sélectionnée pour en sélectionner une autre.', notes_maxlength: 'Les notes ne doivent pas dépasser 255 caractères.', address_maxlength: "L'adresse ne doit pas dépasser 255 caractères.", - ref_number_maxlength: 'Le numéro de référence ne doit pas dépasser 10 chiffres.' + ref_number_maxlength: 'Le numéro de référence ne doit pas dépasser 255 caractères.' } } diff --git a/resources/assets/js/views/estimates/Create.vue b/resources/assets/js/views/estimates/Create.vue index 5f5a83ad..c2858d3d 100644 --- a/resources/assets/js/views/estimates/Create.vue +++ b/resources/assets/js/views/estimates/Create.vue @@ -141,7 +141,6 @@ v-model="newEstimate.reference_number" :invalid="$v.newEstimate.reference_number.$error" icon="hashtag" - type="number" @input="$v.newEstimate.reference_number.$touch()" />
{{ $tc('validation.ref_number_maxlength') }}
@@ -383,7 +382,7 @@ export default { maxLength: maxLength(255) }, reference_number: { - maxLength: maxLength(10) + maxLength: maxLength(255) } }, selectedCustomer: { diff --git a/resources/assets/js/views/estimates/Item.vue b/resources/assets/js/views/estimates/Item.vue index 15a3ae1b..4bab0d56 100644 --- a/resources/assets/js/views/estimates/Item.vue +++ b/resources/assets/js/views/estimates/Item.vue @@ -305,12 +305,12 @@ export default { quantity: { required, minValue: minValue(1), - maxLength: maxLength(10) + maxLength: maxLength(20) }, price: { required, minValue: minValue(1), - maxLength: maxLength(10) + maxLength: maxLength(20) }, discount_val: { between: between(0, this.maxDiscount) diff --git a/resources/assets/js/views/expenses/Create.vue b/resources/assets/js/views/expenses/Create.vue index c975bd4a..bcd57434 100644 --- a/resources/assets/js/views/expenses/Create.vue +++ b/resources/assets/js/views/expenses/Create.vue @@ -90,16 +90,16 @@ *
- {{ $t('validation.required') }} - {{ $t('validation.amount_maxlength') }} - {{ $t('validation.amount_minvalue') }} + {{ $t('validation.required') }} + {{ $t('validation.price_maxlength') }} + {{ $t('validation.price_minvalue') }}
@@ -198,8 +198,8 @@ export default { }, amount: { required, - maxLength: maxLength(10), - minValue: minValue(0.1) + minValue: minValue(0.1), + maxLength: maxLength(20) }, notes: { maxLength: maxLength(255) diff --git a/resources/assets/js/views/invoices/Create.vue b/resources/assets/js/views/invoices/Create.vue index e2e43ddd..b1f6139c 100644 --- a/resources/assets/js/views/invoices/Create.vue +++ b/resources/assets/js/views/invoices/Create.vue @@ -141,7 +141,6 @@ v-model="newInvoice.reference_number" :invalid="$v.newInvoice.reference_number.$error" icon="hashtag" - type="number" @input="$v.newInvoice.reference_number.$touch()" />
{{ $tc('validation.ref_number_maxlength') }}
@@ -384,7 +383,7 @@ export default { maxLength: maxLength(255) }, reference_number: { - maxLength: maxLength(10) + maxLength: maxLength(255) } }, selectedCustomer: { diff --git a/resources/assets/js/views/invoices/Item.vue b/resources/assets/js/views/invoices/Item.vue index c5dab726..b9ab77f6 100644 --- a/resources/assets/js/views/invoices/Item.vue +++ b/resources/assets/js/views/invoices/Item.vue @@ -306,12 +306,12 @@ export default { quantity: { required, minValue: minValue(1), - maxLength: maxLength(10) + maxLength: maxLength(20) }, price: { required, minValue: minValue(1), - maxLength: maxLength(10) + maxLength: maxLength(20) }, discount_val: { between: between(0, this.maxDiscount) diff --git a/resources/assets/js/views/items/Create.vue b/resources/assets/js/views/items/Create.vue index f0a942da..d00969cf 100644 --- a/resources/assets/js/views/items/Create.vue +++ b/resources/assets/js/views/items/Create.vue @@ -38,7 +38,6 @@ v-model="price" v-bind="defaultCurrencyForInput" class="input-field" - />