diff --git a/database/migrations/2024_02_08_181804_taxes_amount_as_signed.php b/database/migrations/2024_02_08_181804_taxes_amount_as_signed.php new file mode 100644 index 00000000..3a1580d5 --- /dev/null +++ b/database/migrations/2024_02_08_181804_taxes_amount_as_signed.php @@ -0,0 +1,32 @@ +bigInteger('amount')->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('taxes', function (Blueprint $table) { + $table->unsignedBigInteger('amount')->change(); + }); + } +} diff --git a/resources/scripts/admin/components/modal-components/TaxTypeModal.vue b/resources/scripts/admin/components/modal-components/TaxTypeModal.vue index e7c1d76a..d162b827 100644 --- a/resources/scripts/admin/components/modal-components/TaxTypeModal.vue +++ b/resources/scripts/admin/components/modal-components/TaxTypeModal.vue @@ -169,7 +169,7 @@ const rules = computed(() => { required: helpers.withMessage(t('validation.required'), required), between: helpers.withMessage( t('validation.enter_valid_tax_rate'), - between(0, 100) + between(-100, 100) ), }, description: {