mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
feat: allow negative taxes
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class TaxesAmountAsSigned extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('taxes', function (Blueprint $table) {
|
||||||
|
$table->bigInteger('amount')->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('taxes', function (Blueprint $table) {
|
||||||
|
$table->unsignedBigInteger('amount')->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -169,7 +169,7 @@ const rules = computed(() => {
|
|||||||
required: helpers.withMessage(t('validation.required'), required),
|
required: helpers.withMessage(t('validation.required'), required),
|
||||||
between: helpers.withMessage(
|
between: helpers.withMessage(
|
||||||
t('validation.enter_valid_tax_rate'),
|
t('validation.enter_valid_tax_rate'),
|
||||||
between(0, 100)
|
between(-100, 100)
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
|
|||||||
Reference in New Issue
Block a user