diff --git a/database/migrations/2020_12_08_065715_change_description_and_notes_column_type.php b/database/migrations/2020_12_08_065715_change_description_and_notes_column_type.php new file mode 100644 index 00000000..a42967e3 --- /dev/null +++ b/database/migrations/2020_12_08_065715_change_description_and_notes_column_type.php @@ -0,0 +1,46 @@ +text('notes')->nullable()->change(); + }); + + Schema::table('expenses', function (Blueprint $table) { + $table->text('notes')->nullable()->change(); + }); + + Schema::table('estimate_items', function (Blueprint $table) { + $table->text('description')->nullable()->change(); + }); + + Schema::table('invoice_items', function (Blueprint $table) { + $table->text('description')->nullable()->change(); + }); + + Schema::table('items', function (Blueprint $table) { + $table->text('description')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/resources/assets/js/plugins/en.json b/resources/assets/js/plugins/en.json index 5dec8d9d..3bf3b524 100644 --- a/resources/assets/js/plugins/en.json +++ b/resources/assets/js/plugins/en.json @@ -1123,11 +1123,11 @@ "price_minvalue": "Price should be greater than 0.", "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.", + "description_maxlength": "Description should not be greater than 65,000 characters.", "subject_maxlength": "Subject should not be greater than 100 characters.", "message_maxlength": "Message 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.", + "notes_maxlength": "Notes should not be greater than 65,000 characters.", "address_maxlength": "Address should not be greater than 255 characters.", "ref_number_maxlength": "Ref Number should not be greater than 255 characters.", "prefix_maxlength": "Prefix should not be greater than 5 characters.", diff --git a/resources/assets/js/views/estimates/Item.vue b/resources/assets/js/views/estimates/Item.vue index 99e6b32c..e80ab9d7 100644 --- a/resources/assets/js/views/estimates/Item.vue +++ b/resources/assets/js/views/estimates/Item.vue @@ -340,7 +340,7 @@ export default { between: between(0, this.maxDiscount), }, description: { - maxLength: maxLength(255), + maxLength: maxLength(65000), }, }, } diff --git a/resources/assets/js/views/expenses/Create.vue b/resources/assets/js/views/expenses/Create.vue index a44f326f..4a0c0412 100644 --- a/resources/assets/js/views/expenses/Create.vue +++ b/resources/assets/js/views/expenses/Create.vue @@ -302,7 +302,7 @@ export default { }, notes: { - maxLength: maxLength(255), + maxLength: maxLength(65000), }, }, }, diff --git a/resources/assets/js/views/invoices/Item.vue b/resources/assets/js/views/invoices/Item.vue index 9359e22f..b6121ef9 100644 --- a/resources/assets/js/views/invoices/Item.vue +++ b/resources/assets/js/views/invoices/Item.vue @@ -340,7 +340,7 @@ export default { between: between(0, this.maxDiscount), }, description: { - maxLength: maxLength(255), + maxLength: maxLength(65000), }, }, } diff --git a/resources/assets/js/views/items/Create.vue b/resources/assets/js/views/items/Create.vue index 92ebf76f..15f7004a 100644 --- a/resources/assets/js/views/items/Create.vue +++ b/resources/assets/js/views/items/Create.vue @@ -118,7 +118,7 @@ :loading="isLoading" variant="primary" size="lg" - class="flex w-full justify-center md:w-auto" + class="flex justify-center w-full md:w-auto" > {{ isEdit ? $t('items.update_item') : $t('items.save_item') }} @@ -293,7 +293,7 @@ export default { }, description: { - maxLength: maxLength(255), + maxLength: maxLength(65000), }, }, },