mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 20:51:09 -04:00
made changes
This commit is contained in:
@ -374,7 +374,7 @@ import MultiSelect from 'vue-multiselect'
|
||||
import { validationMixin } from 'vuelidate'
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import AddressStub from '../../../stub/address'
|
||||
const { required, minLength, email, numeric, alpha, url, maxLength } = require('vuelidate/lib/validators')
|
||||
const { required, minLength, email, numeric, url, maxLength } = require('vuelidate/lib/validators')
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -421,8 +421,7 @@ export default {
|
||||
formData: {
|
||||
name: {
|
||||
required,
|
||||
minLength: minLength(3),
|
||||
alpha
|
||||
minLength: minLength(3)
|
||||
},
|
||||
email: {
|
||||
email
|
||||
|
||||
@ -772,7 +772,7 @@ export default {
|
||||
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.',
|
||||
price_maxlength: 'Price should not be greater than 10 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_minvalue: 'Amount should be greater than 0.',
|
||||
|
||||
@ -38,6 +38,7 @@
|
||||
v-model="price"
|
||||
v-bind="defaultCurrencyForInput"
|
||||
class="input-field"
|
||||
|
||||
/>
|
||||
</div>
|
||||
<div v-if="$v.formData.price.$error">
|
||||
@ -92,7 +93,7 @@
|
||||
<script>
|
||||
import { validationMixin } from 'vuelidate'
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
const { required, minLength, numeric, alpha, minValue, maxLength } = require('vuelidate/lib/validators')
|
||||
const { required, minLength, numeric, minValue, maxLength } = require('vuelidate/lib/validators')
|
||||
|
||||
export default {
|
||||
mixins: {
|
||||
@ -163,7 +164,7 @@ export default {
|
||||
price: {
|
||||
required,
|
||||
numeric,
|
||||
maxLength: maxLength(10),
|
||||
maxLength: maxLength(20),
|
||||
minValue: minValue(0.1)
|
||||
},
|
||||
description: {
|
||||
|
||||
Reference in New Issue
Block a user