Minor fixes for tax rates and options.

This commit is contained in:
2025-01-12 08:42:05 +01:00
parent 899de7b10a
commit 3da6ed1b85
3 changed files with 5 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class TaxrateController extends Controller
$taxData = $request->validate([ $taxData = $request->validate([
'name' => 'required|string', 'name' => 'required|string',
'rate' => 'required|numeric', 'rate' => 'required|numeric',
'active' => 'required|boolean' 'active' => 'boolean'
]); ]);
$tax = new Taxrate($taxData); $tax = new Taxrate($taxData);

View File

@@ -345,9 +345,10 @@
</div> </div>
<x-text-input id="bcc_copy" name="bcc_copy" type="checkbox" <x-text-input id="bcc_copy" name="bcc_copy" type="checkbox"
class="mt-1 block" class="mt-1 block"
:value="old('bcc_copy')" required autofocus :value="1" required autofocus
autocomplete="bcc_copy" autocomplete="bcc_copy"
x-model="options.bcc_copy"/> x-model="options.bcc_copy"
checked="bcc_copy == 1"/>
</div> </div>
</form> </form>
@@ -380,6 +381,7 @@
vm.options[value.name] = value.value; vm.options[value.name] = value.value;
}); });
}) })
console.log(vm.options);
}, },
updatePreview() { updatePreview() {

View File

@@ -66,7 +66,6 @@
let vm = this; let vm = this;
axios.get('/taxrate') axios.get('/taxrate')
.then(function (response) { .then(function (response) {
console.log(response.data);
vm.taxrates = response.data; vm.taxrates = response.data;
}) })
} }