small cleanup
parent
dcc0245ffc
commit
8eb3a49c04
|
|
@ -246,7 +246,7 @@ class ContractController extends Controller
|
||||||
'allow_self_signed'=> TRUE
|
'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);
|
$pdf->getDomPDF()->setHttpContext($contxt);
|
||||||
return $pdf->stream($contract->date . '_' . $contract->type_formatted . '.pdf');
|
return $pdf->stream($contract->date . '_' . $contract->type_formatted . '.pdf');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20022,8 +20022,6 @@ __webpack_require__.r(__webpack_exports__);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submitForm: function submitForm() {
|
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);
|
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, {
|
, ["message"])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_4, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_jet_label, {
|
||||||
"for": "price",
|
"for": "price",
|
||||||
value: "Betrag"
|
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,
|
modelValue: $data.form.price,
|
||||||
"onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) {
|
||||||
return $data.form.price = $event;
|
return $data.form.price = $event;
|
||||||
|
|
|
||||||
|
|
@ -54,8 +54,6 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submitForm() {
|
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);
|
this.form.submit(this.meta.method, this.meta.route);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ MwSt-Nr: CHE-226.272.050
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Kilometerstand</td>
|
<td>Kilometerstand</td>
|
||||||
<td>{{ $contract->car->kilometers }}</td>
|
<td>{{ $contract->car->kilometers_formatted }}</td>
|
||||||
<td>Garantie</td>
|
<td>Garantie</td>
|
||||||
<td>{{ $contract->insurance_type_formatted }}</td>
|
<td>{{ $contract->insurance_type_formatted }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -146,11 +146,11 @@ MwSt-Nr: CHE-226.272.050
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Anzahlung</td>
|
<td>Anzahlung</td>
|
||||||
<td></td>
|
<td>{{ $contract->paid }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Restbetrag</td>
|
<td>Restbetrag</td>
|
||||||
<td></td>
|
<td>{{ $contract->left_to_pay }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Bankverbindung IBAN</td>
|
<td>Bankverbindung IBAN</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue