Minor fixes for tax rates and options.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user