small cleanup

shift-build-2464
Nadim Salloum 2021-06-14 14:50:42 +03:00
parent dcc0245ffc
commit 8eb3a49c04
4 changed files with 5 additions and 9 deletions

View File

@ -246,7 +246,7 @@ class ContractController extends Controller
'allow_self_signed'=> TRUE
]
]);
$pdf = PDF::setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true])->loadView('contract', compact('contract'));//->setPaper('a4', 'portrait');
$pdf = PDF::setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true])->loadView('contract', compact('contract'));
$pdf->getDomPDF()->setHttpContext($contxt);
return $pdf->stream($contract->date . '_' . $contract->type_formatted . '.pdf');
}

4
public/js/app.js vendored
View File

@ -20022,8 +20022,6 @@ __webpack_require__.r(__webpack_exports__);
},
methods: {
submitForm: function submitForm() {
this.form.initial_date = this.form.initial_date.toISOString().split("T")[0];
this.form.last_check_date = this.form.last_check_date.toISOString().split("T")[0];
this.form.submit(this.meta.method, this.meta.route);
}
}
@ -29097,7 +29095,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
, ["message"])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_4, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, {
"for": "price",
value: "Betrag"
}), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)(" <jet-input id=\"price\" type=\"text\" class=\"mt-1 block w-full\" v-model=\"form.price\" ref=\"price\" autocomplete=\"price\" /> "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_currency_input, {
}), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_currency_input, {
modelValue: $data.form.price,
"onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
return $data.form.price = $event;

View File

@ -54,8 +54,6 @@ export default {
},
methods: {
submitForm() {
this.form.initial_date = this.form.initial_date.toISOString().split("T")[0];
this.form.last_check_date = this.form.last_check_date.toISOString().split("T")[0];
this.form.submit(this.meta.method, this.meta.route);
},
}

View File

@ -135,7 +135,7 @@ MwSt-Nr: CHE-226.272.050
</tr>
<tr>
<td>Kilometerstand</td>
<td>{{ $contract->car->kilometers }}</td>
<td>{{ $contract->car->kilometers_formatted }}</td>
<td>Garantie</td>
<td>{{ $contract->insurance_type_formatted }}</td>
</tr>
@ -146,11 +146,11 @@ MwSt-Nr: CHE-226.272.050
</tr>
<tr>
<td>Anzahlung</td>
<td></td>
<td>{{ $contract->paid }}</td>
</tr>
<tr>
<td>Restbetrag</td>
<td></td>
<td>{{ $contract->left_to_pay }}</td>
</tr>
<tr>
<td>Bankverbindung IBAN</td>