Minor fixes for tax rates and options.
This commit is contained in:
@@ -24,7 +24,7 @@ class TaxrateController extends Controller
|
||||
$taxData = $request->validate([
|
||||
'name' => 'required|string',
|
||||
'rate' => 'required|numeric',
|
||||
'active' => 'required|boolean'
|
||||
'active' => 'boolean'
|
||||
]);
|
||||
|
||||
$tax = new Taxrate($taxData);
|
||||
|
||||
@@ -345,9 +345,10 @@
|
||||
</div>
|
||||
<x-text-input id="bcc_copy" name="bcc_copy" type="checkbox"
|
||||
class="mt-1 block"
|
||||
:value="old('bcc_copy')" required autofocus
|
||||
:value="1" required autofocus
|
||||
autocomplete="bcc_copy"
|
||||
x-model="options.bcc_copy"/>
|
||||
x-model="options.bcc_copy"
|
||||
checked="bcc_copy == 1"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
@@ -380,6 +381,7 @@
|
||||
vm.options[value.name] = value.value;
|
||||
});
|
||||
})
|
||||
console.log(vm.options);
|
||||
},
|
||||
|
||||
updatePreview() {
|
||||
|
||||
@@ -66,7 +66,6 @@
|
||||
let vm = this;
|
||||
axios.get('/taxrate')
|
||||
.then(function (response) {
|
||||
console.log(response.data);
|
||||
vm.taxrates = response.data;
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user