details.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. {% extends "base/base.html" %}
  2. {% block content %}
  3. <!--
  4. <h3>Kommentare</h3>
  5. <table class="table table-striped table-bordered">
  6. <thead>
  7. <tr>
  8. <th>Timestamp</th>
  9. <th>Name</th>
  10. <th>Rolle</th>
  11. <th>Begründung</th>
  12. <th>Wiedervorlage</th>
  13. <th>Kommentar</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {% for row in forderung_kommentar %}
  18. <tr>
  19. <td>{{ row.Timestamp|date_format }}</td>
  20. <td>{{ row.Name }}</td>
  21. <td>{{ row.Rolle }}</td>
  22. <td>{{ row.Begründung or '' }}</td>
  23. <td>{{ row.Wiedervorlage|date_format }}</td>
  24. <td>{{ row.Kommentar or '' }}</td>
  25. </tr>
  26. {% endfor %}
  27. </tbody>
  28. </table>
  29. -->
  30. <br>
  31. <br>
  32. {%include 'base/chat_container.html' %}
  33. <br>
  34. <br>
  35. <h3>Eingabemaske</h3>
  36. <br>
  37. <br>
  38. <form class="row g-3">
  39. <div class="col-12">
  40. <div class="form-check" data-coreui-toggle="collapse" data-coreui-target="#VersicherungCollapse"
  41. aria-expanded="false" aria-controls="VersicherungCollapse">
  42. <input class="form-check-input" type="checkbox" id="Versicherung">
  43. <label class="form-check-label" for="Versicherung">
  44. <strong>Versicherungsfall</strong>
  45. </label>
  46. </div>
  47. </div>
  48. <div class="collapse" id="VersicherungCollapse">
  49. <div class="card card-body">
  50. <div class="row mb-3">
  51. <label for="Versicherung_Name" class="col-sm-2 col-form-label">Versicherung</label>
  52. <div class="col-sm-3">
  53. <select id="Versicherung_Name" name="Versicherung_Name" class="form-select">
  54. <option value="" selected>-</option>
  55. <option>ADAC Autoversicherung AG</option>
  56. <option>ADLER Versicherung AG</option>
  57. <option>Allianz Versicherungs-Aktiengesellschaft</option>
  58. <option>AllSecur Deutschland AG</option>
  59. <option>ALTE LEIPZIGER Versicherung Aktiengesellschaft</option>
  60. <option>ARAG Allgemeine Versicherungs-AG</option>
  61. <option>AXA Versicherung AG</option>
  62. <option>Badische Allgemeine Versicherung AG</option>
  63. <option>Barmenia Allgemeine Versicherungs-AG</option>
  64. <option>Badischer Gemeinde-Versicherungs-Verband</option>
  65. <option>Basler Securitas Versicherungs-AG</option>
  66. <option>Basler Versicherungs-Gesellschaft, Basel, Direktion für Deutschland</option>
  67. <option>BAYERISCHE BEAMTEN VERSICHERUNG AKTIENGESELLSCHAFT</option>
  68. <option>Bayerischer VersicherungsverbandVersicherungsaktiengesellschaft</option>
  69. <option>BRUDERHILFE Sachversicherung Aktiengesellschaft im Raum der Kirchen</option>
  70. <option>Chartis Europe S.A.</option>
  71. <option>Concordia Versicherungs-Gesellschaft auf Gegenseitigkeit</option>
  72. <option>Condor Allgemeine Versicherungs-Aktiengesellschaft</option>
  73. <option>Continentale</option>
  74. <option>COSMOS Versicherung Aktiengesellschaft</option>
  75. <option>DA - Deutsche Allgemeine Versicherung Aktiengesellschaft</option>
  76. <option>DBV Deutsche Beamten-Versicherung Aktiengesellschaft</option>
  77. <option>Debeka Allgemeine Versicherung Aktiengesellschaft</option>
  78. <option>deutsche internet versicherung aktiengesellschaft</option>
  79. <option>DEVK Fast Lane</option>
  80. <option>Direct Line Versicherung AG</option>
  81. <option>ERGO Versicherung Aktiengesellschaft</option>
  82. <option>EUROPA Sachversicherung AG</option>
  83. <option>Fahrlehrerversicherung Verein auf Gegenseitigkeit</option>
  84. <option>Feuersozietät Berlin Brandenburg</option>
  85. <option>GARANTA Versicherungs-AG</option>
  86. <option>GEGENSEITIGKEIT Versicherung Oldenburg</option>
  87. <option>Generali Deutschland Versicherung AG</option>
  88. <option>Gothaer Allgemeine Versicherung AG</option>
  89. <option>GVV-Kommunalversicherung VVaG</option>
  90. <option>GVV-Privatversicherung AG</option>
  91. <option>Haftpflichtgemeinschaft Dt. Nahverkehrs- u. Versorgungsuntern. Allg. VVaG</option>
  92. <option>Hannoversche Direktversicherung AG</option>
  93. <option>HanseMerkur Allgemeine Versicherung AG</option>
  94. <option>HDI Global SE</option>
  95. <option>HDI Versicherung AG</option>
  96. <option>HDI-Gerling Firmen und Privat Versicherung AG</option>
  97. <option>HDI Haftpflichtverband der Deutschen Industrie VVaG</option>
  98. <option>Helvetia Schweizerische Versicherungsgesellschaft</option>
  99. <option>HUK 24 Aktiengesellschaft</option>
  100. <option>HUK-COBURG-Allgemeine Versicherungs AG</option>
  101. <option>HUK-COBURG Haftpflicht-Unterstützungs-Kasse kraftfahrender Beamter a.G.</option>
  102. <option>Itzehoer Versicherung/ Brandgilde von 1691 VVaG</option>
  103. <option>KRAVAG-ALLGEMEINE Versicherungs-Aktiengesellschaft</option>
  104. <option>KRAVAG-LOGISTIC Versicherungs-Aktiengesellschaft</option>
  105. <option>KRAVAG-SACH Versicherung des Deutschen Kraftverkehrs VaG</option>
  106. <option>Landesschadenhilfe Versicherung VaG</option>
  107. <option>Lippische Landesbrandversicherung AG</option>
  108. <option>LVM Landwirtschaftlicher Versicherungsverein Münster a.G.</option>
  109. <option>Mannheimer Versicherung Aktiengesellschaft</option>
  110. <option>Mecklenburgische Versicherungs-Gesellschaft a.G.</option>
  111. <option>MÜNCHENER VEREIN Allgemeine Versicherungs-AG</option>
  112. <option>NÜRNBERGER Allgemeine Versicherungs-AG</option>
  113. <option>NÜRNBERGER Beamten Allgemeine Versicherungs-AG</option>
  114. <option>Oldenburgische Landesbrandkasse</option>
  115. <option>Optima Versicherungs-Aktiengesellschaft</option>
  116. <option>OVAG - Ostdeutsche Versicherung Aktiengesellschaft</option>
  117. <option>Öffentliche Feuerversicherung Sachsen-Anhalt</option>
  118. <option>Öffentliche Versicherung Braunschweig</option>
  119. <option>Provinzial Nord Brandkasse Aktiengesellschaft</option>
  120. <option>Provinzial Rheinland Versicherung AG</option>
  121. <option>R+V Allgemeine Versicherung AG</option>
  122. <option>R+V Direktversicherung AG</option>
  123. <option>S direkt Versicherung AG</option>
  124. <option>SAARLAND Feuerversicherung AG</option>
  125. <option>SCHWARZMEER UND OSTSEE Versicherungs-AktiengesellschaftSOVAG</option>
  126. <option>Signal Iduna Allgemeine Versicherung AG</option>
  127. <option>SIGNAL Unfallversicherung a.G.</option>
  128. <option>SV Sparkassen-Versicherung Holding AG</option>
  129. <option>United Services Automobile Association Direktion für Deutschland</option>
  130. <option>UniVersa Allgemeine Versicherung AG</option>
  131. <option>Versicherungskammer Bayern Versicherungsanstalt des öffentlichen Rechts</option>
  132. <option>Verti Versicherung</option>
  133. <option>VGH Landschaftliche Brandkasse Hannover</option>
  134. <option>VHV Allgemeine Versicherung AG</option>
  135. <option>VHV Vereinigte Hannoversche Versicherung a.G.</option>
  136. <option>VOLKSWOHL-BUND Sachversicherung Aktiengesellschaft</option>
  137. <option>Westfälische Provinzial Versicherung Aktiengesellschaft</option>
  138. <option>WGV-Versicherung AG</option>
  139. <option>Württembergische Gemeinde-Versicherung a.G.</option>
  140. <option>Württembergische Versicherung AG</option>
  141. <option>WWK Allgemeine Versicherung AG</option>
  142. <option>Zurich Insurance plc</option>
  143. </select>
  144. </div>
  145. <div class="col-sm-3">
  146. <select id="Versicherung_Typ" name="Versicherung_Typ" class="form-select">
  147. <option value="" selected>-</option>
  148. <option>Haftpflicht</option>
  149. <option>Teilkasko</option>
  150. <option>Vollkasko</option>
  151. <option>Ausländisch</option>
  152. </select>
  153. </div>
  154. </div>
  155. <div class="row mb-3">
  156. <label for="Selbstbeteiligung" class="col-sm-2 col-form-label">Selbstbeteiligung</label>
  157. <div class="col-sm-2">
  158. <select id="Selbstbeteiligung" name="Selbstbeteiligung" class="form-select">
  159. <option value="" selected>-</option>
  160. <option>Versicherung</option>
  161. <option>Kunde</option>
  162. <option>Autohaus</option>
  163. </select>
  164. </div>
  165. <div class="col-sm-2">
  166. <input type="text" class="form-control" id="Selbstbeteiligung_Betrag" placeholder="Betrag">
  167. </div>
  168. </div>
  169. <div class="row mb-3">
  170. <label for="MwSt" class="col-sm-2 col-form-label">MwSt</label>
  171. <div class="col-sm-2">
  172. <select id="MwSt" name="MwSt" class="form-select">
  173. <option value="" selected>-</option>
  174. <option>Versicherung</option>
  175. <option>Kunde</option>
  176. <option>Autohaus</option>
  177. </select>
  178. </div>
  179. <div class="col-sm-2">
  180. <input type="text" class="form-control" id="MwSt_Betrag" placeholder="Betrag">
  181. </div>
  182. <div class="col-sm-2">
  183. <span
  184. onclick="document.getElementById('MwSt_Betrag').value='{{ forderung_kopf[0].MwSt_Betrag|number_format }}';">{{
  185. forderung_kopf[0].MwSt_Betrag|number_format }}</span>
  186. </div>
  187. </div>
  188. <div class="col-3">
  189. <a class="btn btn-secondary" hx-disable="true"
  190. href="/app/forderungen/export/{{forderung_kopf[0].Client_DB}}_{{forderung_kopf[0].Document_No}}">Mahnung
  191. erstellen</a>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="col-12">
  196. <div class="form-check" data-coreui-toggle="collapse" data-coreui-target="#ReklamationCollapse"
  197. aria-expanded="false" aria-controls="ReklamationCollapse">
  198. <input class="form-check-input" type="checkbox" id="Reklamation">
  199. <label class="form-check-label" for="Reklamation">
  200. <strong>Reklamation</strong>
  201. </label>
  202. </div>
  203. </div>
  204. <div class="collapse" id="ReklamationCollapse">
  205. <div class="card card-body">
  206. <div class="row mb-3">
  207. <label for="Reklamation_Begründung" class="col-sm-2 col-form-label">Begründung</label>
  208. <div class="col-sm-3">
  209. <input type="text" class="form-control" id="Reklamation_Begründung">
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <div class="col-12">
  215. <div class="form-check" data-coreui-toggle="collapse" data-coreui-target="#RechtsanwaltCollapse"
  216. aria-expanded="false" aria-controls="RechtsanwaltCollapse">
  217. <input class="form-check-input" type="checkbox" id="Rechtsanwalt">
  218. <label class="form-check-label" for="Rechtsanwalt">
  219. <strong>Rechtsanwalt</strong>
  220. </label>
  221. </div>
  222. </div>
  223. <div class="collapse" id="RechtsanwaltCollapse">
  224. <div class="card card-body">
  225. <div class="row mb-3">
  226. <label for="Rechtsanwalt_Begründung" class="col-sm-2 col-form-label">Begründung</label>
  227. <div class="col-sm-3">
  228. <input type="text" class="form-control" id="Rechtsanwalt_Begründung">
  229. </div>
  230. </div>
  231. <div class="row mb-3">
  232. <label for="Rechtsanwalt_Aktenzeichen" class="col-sm-2 col-form-label">Aktenzeichen</label>
  233. <div class="col-sm-3">
  234. <input type="text" class="form-control" id="Rechtsanwalt_Aktenzeichen">
  235. </div>
  236. </div>
  237. <div class="row mb-3">
  238. <label for="Rechtsanwalt_Stand" class="col-sm-2 col-form-label">Aktueller Stand</label>
  239. <div class="col-sm-3">
  240. <input type="text" class="form-control" id="Rechtsanwalt_Stand">
  241. </div>
  242. </div>
  243. <div class="col-3">
  244. <a class="btn btn-secondary" hx-disable="true"
  245. href="/app/forderungen/export/{{forderung_kopf[0].Client_DB}}_{{forderung_kopf[0].Document_No}}">Beitreibungsauftrag</a>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="col-12">
  250. <div class="form-check" data-coreui-toggle="collapse" data-coreui-target="#MahnenCollapse"
  251. aria-expanded="false" aria-controls="MahnenCollapse">
  252. <input class="form-check-input" type="checkbox" id="Mahnen">
  253. <label class="form-check-label" for="Mahnen">
  254. <strong>Mahnlauf aussetzen</strong>
  255. </label>
  256. </div>
  257. </div>
  258. <div class="collapse" id="MahnenCollapse">
  259. <div class="card card-body">
  260. <div class="row mb-3">
  261. <label for="Mahnen_Begründung" class="col-sm-2 col-form-label">Begründung</label>
  262. <div class="col-sm-3">
  263. <input type="text" class="form-control" id="Mahnen_Begründung">
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. <div class="col-3">
  269. <label for="Wiedervorlage" class="form-label">Wiedervorlage</label>
  270. <input type="date" class="form-control" id="Wiedervorlage" name="Wiedervorlage" value="{{ forderung_kopf[0].Invoice_Date.strftime("%Y-%m-%d") }}">
  271. </div>
  272. <div class="col-12">
  273. <a class="btn btn-primary" hx-disable="true"
  274. href="#">Speichern
  275. </a>
  276. </div>
  277. </form>
  278. <br>
  279. <br>
  280. <div class="accordion accordion-flush" id="accordionFlushExample">
  281. <div class="accordion-item">
  282. <h2 class="accordion-header">
  283. <button class="accordion-button collapsed" type="button" data-coreui-toggle="collapse"
  284. data-coreui-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
  285. <h3>Dateien</h3>
  286. </button>
  287. </h2>
  288. <div id="flush-collapseOne" class="accordion-collapse collapse" data-coreui-parent="#accordionFlushExample">
  289. <div class="accordion-body">
  290. <table class="table table-striped table-bordered">
  291. <thead>
  292. <tr>
  293. <th>Datum</th>
  294. <th>Dateiname</th>
  295. </tr>
  296. </thead>
  297. <tbody>
  298. {% for row in files %}
  299. <tr>
  300. <td></td>
  301. <td><a href="/files/?name={{ row }}" hx-disable="true">{{ row }}</a></td>
  302. </tr>
  303. {% endfor %}
  304. </tbody>
  305. </table>
  306. </div>
  307. </div>
  308. </div>
  309. <div class="accordion-item">
  310. <h2 class="accordion-header">
  311. <button class="accordion-button collapsed" type="button" data-coreui-toggle="collapse"
  312. data-coreui-target="#flush-collapseTwo" aria-expanded="false" aria-controls="flush-collapseTwo">
  313. <h3>Forderung Details</h3>
  314. </button>
  315. </h2>
  316. <div id="flush-collapseTwo" class="accordion-collapse collapse" data-coreui-parent="#accordionFlushExample">
  317. <div class="accordion-body">
  318. <table class="table table-striped table-bordered">
  319. <tbody>
  320. {% for row in forderung_kopf %}
  321. {% for key, value in row._asdict().items() %}
  322. <tr>
  323. <th>{{ key }}</th>
  324. <td>{{ value }}</td>
  325. </tr>
  326. {% endfor %}
  327. {% endfor %}
  328. </tbody>
  329. </table>
  330. </div>
  331. </div>
  332. </div>
  333. <div class="accordion-item">
  334. <h2 class="accordion-header">
  335. <button class="accordion-button collapsed" type="button" data-coreui-toggle="collapse"
  336. data-coreui-target="#flush-collapseThree" aria-expanded="false" aria-controls="flush-collapseThree">
  337. <h3>Mahnungen</h3>
  338. </button>
  339. </h2>
  340. <div id="flush-collapseThree" class="accordion-collapse collapse" data-coreui-parent="#accordionFlushExample">
  341. <div class="accordion-body">
  342. <table class="table table-striped table-bordered">
  343. <thead>
  344. <tr>
  345. <th>Kunde_Nr</th>
  346. <th>Mahnung_Nr</th>
  347. <th>Mahndatum</th>
  348. <th>Mahnstufe</th>
  349. <th>Rechnung_Nr</th>
  350. <th>Rechnung_Datum</th>
  351. <th>Betrag</th>
  352. <th>Offen</th>
  353. </tr>
  354. </thead>
  355. <tbody>
  356. {% for row in forderung_mahnung %}
  357. <tr>
  358. <td>{{ row.Kunde_Nr }}</td>
  359. <td>{{ row.Mahnung_Nr }}</td>
  360. <td>{{ row.Mahndatum|date_format }}</td>
  361. <td>{{ row.Mahnstufe }}</td>
  362. <td>{{ row.Rechnung_Nr }}</td>
  363. <td>{{ row.Rechnung_Datum|date_format }}</td>
  364. <td class="text-end">{{ row.Betrag|number_format }}</td>
  365. <td class="text-end">{{ row.Offen|number_format }}</td>
  366. </tr>
  367. {% endfor %}
  368. </tbody>
  369. </table>
  370. </div>
  371. </div>
  372. </div>
  373. <div class="accordion-item">
  374. <h2 class="accordion-header">
  375. <button class="accordion-button collapsed" type="button" data-coreui-toggle="collapse"
  376. data-coreui-target="#flush-collapseFour" aria-expanded="false" aria-controls="flush-collapseFour">
  377. <h3>Auftragspositionen</h3>
  378. </button>
  379. </h2>
  380. <div id="flush-collapseFour" class="accordion-collapse collapse" data-coreui-parent="#accordionFlushExample">
  381. <div class="accordion-body">
  382. <table class="table table-bordered">
  383. <thead>
  384. <tr>
  385. <th>Auftrag_Position</th>
  386. <th>Betrag</th>
  387. </tr>
  388. </thead>
  389. <tbody>
  390. {% for row in auftrag_positionen %}
  391. <tr>
  392. <td>{{ row.Auftrag_Position }}</td>
  393. <td class="text-end">{{ row.Betrag|number_format }}</td>
  394. </tr>
  395. {% endfor %}
  396. </tbody>
  397. </table>
  398. </div>
  399. </div>
  400. </div>
  401. <div class="accordion-item">
  402. <h2 class="accordion-header">
  403. <button class="accordion-button collapsed" type="button" data-coreui-toggle="collapse"
  404. data-coreui-target="#flush-collapseFive" aria-expanded="false" aria-controls="flush-collapseFive">
  405. <h3>Buchungsbelege</h3>
  406. </button>
  407. </h2>
  408. <div id="flush-collapseFive" class="accordion-collapse collapse" data-coreui-parent="#accordionFlushExample">
  409. <div class="accordion-body">
  410. <table class="table table-striped table-bordered">
  411. <thead>
  412. <tr>
  413. <th>Fahrzeug</th>
  414. <th>Rechnungsnr.</th>
  415. <th>Rechnungsdatum</th>
  416. <th>Beschreibung</th>
  417. <th>Betrag</th>
  418. <th>Offen</th>
  419. <th>Benutzer</th>
  420. </tr>
  421. </thead>
  422. <tbody>
  423. {% for row in forderung_belege %}
  424. <tr>
  425. <td>{{ row.Fahrzeug_Nr }}</td>
  426. <td>{{ row.Beleg_Nr }}</td>
  427. <td>{{ row.Beleg_Datum|date_format }}</td>
  428. <td>{{ row.Beleg_Beschreibung }}</td>
  429. <td class="text-end">{{ row.Betrag|number_format }}</td>
  430. <td>{{ row.Status }}</td>
  431. <td>{{ row.Benutzer }}</td>
  432. </tr>
  433. {% endfor %}
  434. </tbody>
  435. </table>
  436. </div>
  437. </div>
  438. </div>
  439. </div>
  440. {% endblock %}