report_FM_SC-TuZ.tpl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. {popup_init src="overlib/overlib.js"}
  2. {* title *}
  3. {include file="reportHeader.tpl"}
  4. {*Edited*}
  5. <div class="report_filter">
  6. {if $columnCount > 0}
  7. {* parameter *}
  8. {* FLDAT_von:datefrom:date,FLDAT_bis:dateuntil:date,Betrieb:betr:select,Stufe5:stufe_5:select,O500_Mahnstufe:mahnst:select,Stufe2:stufe_2:select,KNAME:k_name:select,wochen:woch:select,Versicherung:vers:select,Reklamation:rekl:select *}
  9. <form method="POST" action="{$smarty.server.PHP_SELF}" onSubmit="return dateFormat('datefrom:dateuntil');">
  10. <table id="report_filter_table" class="report_filter_table"><tr>
  11. <tr id="report_filter_table_input">
  12. <td>{$filter_betrTxt}</td>
  13. <td>{$filter_betrVal}</td>
  14. <td>{$filter_stufe_2Txt}</td>
  15. <td>{$filter_stufe_2Val}</td>
  16. <td>{$filter_stufe_5Txt}</td>
  17. <td>{$filter_stufe_5Val}</td>
  18. <td>{$filter_mahnstTxt}</td>
  19. <td colspan="3">{$filter_mahnstVal}</td>
  20. <td><input type=submit class="pme-filter" value="{$Query}"></td>
  21. </tr><tr>
  22. <td>{$filter_k_nameTxt}</td>
  23. <td>{$filter_k_nameVal}</td>
  24. <td>{$filter_wochTxt}</td>
  25. <td>{$filter_wochVal}</td>
  26. <td>{$filter_versTxt}</td>
  27. <td>{$filter_versVal}</td>
  28. <td>{$filter_reklTxt}</td>
  29. <td>{$filter_reklVal}</td>
  30. <td>{$filter_WiedervorlTxt}</td>
  31. <td>{$filter_WiedervorlVal}</td>
  32. <td><input type=button onClick="clearCache();" class="pme-filter" value="{$Reset}"></td>
  33. </tr><tr>
  34. <td>{$filter_datefromTxt}</td><td>{$filter_datefromVal}</td><td>{$filter_dateuntilTxt}</td><td>{$filter_dateuntilVal}</td>
  35. <td>{$filter_Mahnen_entTxt}</td>
  36. <td>{$filter_Mahnen_entVal}</td>
  37. </tr>
  38. </table>
  39. </form>
  40. {/if}
  41. {*Edited*}
  42. </div>
  43. {* variable *}
  44. {* {$REPORT_COUNT} *}
  45. {* field *}
  46. {* Betrieb, Stufe2, FAGNR, FTYPE, KNDNR, KNAME, Stufe5, REDAT, O500_HW2BUCHGBETR, FLDAT, FLDAT_von, FLDAT_bis, O500_MAHNSTUFE, Next_MAHNSTUFE, O500_HW2BETR_OFFEN, OPDAT, O500_BELEGNR1, Ktelf, Kstra, Kdplz, Kdort, Bemerkung, Wiedervorlage, Bemerkung_2, Bearbeitet, Mahnen, User, Aenderungsdatum, User_2, Aenderungsdatum_u2, Fäll_Tage, Wochen, KZALA, Versicherung, Reklamation, Selbstbeteiligung, SelbstbeteiligungBetrag, Mwst, MwstBetrag, qb_id *}
  47. {* group *}
  48. {* ALL:SUM.O500_HW2BETR_OFFEN; *}
  49. {* pageHeader *}
  50. {* <p>{$Total}: {$REPORT_COUNT}</p> *}
  51. {$form_begin}
  52. {*Edited*}
  53. <!--<hr>-->
  54. {*Edited*}
  55. <div id="report_content" class="report_content">
  56. {if $columnCount > 0}
  57. {php}
  58. global $phpme;
  59. while ($phpme->assign_rows()) {
  60. {/php}
  61. {* columnHeader *}
  62. {if $rows_count == 1}
  63. <div id="report_content_header" class="report_content_header">
  64. <table id="report_content_header_table" class="report_content_header_table">
  65. <tr><td width="2%">&nbsp;</td>
  66. <td width="3%">{$BetriebTxt2}</td>
  67. <td width="3%">{$Stufe2Txt2}</td>
  68. <td width="12%">{$KNAMETxt2}</td>
  69. <td width="6%">{$Stufe5Txt2}</td>
  70. <td width="5%">{$REDATTxt2}</td>
  71. <td width="6%">{$O500_HW2BUCHGBETRTxt2}</td>
  72. <td style="text-align: center;" width="6%">{$FLDATTxt2}</td>
  73. <td width="7%">{$O500_MAHNSTUFETxt2}</td>
  74. <td width="5%">{$O500_HW2BETR_OFFENTxt2}</td>
  75. <td width="14%">{$BemerkungTxt2}</td>
  76. <td width="6%">{$WiedervorlageTxt2}</td>
  77. <td width="14%">{$Bemerkung_2Txt2}</td>
  78. <td style="text-align: left;" width="3%">{$BearbeitetTxt2}</td>
  79. <td width="6%">{$MahnenTxt2}</td>
  80. </tr>
  81. </table>
  82. {if strlen($sortInfo) > 0}
  83. {$sortInfo}
  84. {/if}
  85. </div>
  86. <div id="report_content_table" class="report_content_table">
  87. <table id="report_content_table_table" class="report_content_table_table">
  88. {/if}
  89. {* detail *}
  90. {if $rows.FAGNR|count_characters == 6 && $rows.O500_BELEGNR1|cat:$rows.OPDAT eq $thisrec}
  91. <tr bgcolor=#99CCFF>
  92. {elseif $rows.FAGNR|count_characters == 7 && $rows.O500_BELEGNR1|cat:$rows.OPDAT|cat:$rows.FAGNR eq $thisrec}
  93. <tr bgcolor=#99CCFF>
  94. {elseif ($rows.User == $smarty.session.userid && $rows.Aenderungsdatum|date_format:'%d.%m.%Y' == $smarty.now|date_format:'%d.%m.%Y') || ($rows.User_2 == $smarty.session.userid && $rows.Aenderungsdatum_u2|date_format:'%d.%m.%Y' == $smarty.now|date_format:'%d.%m.%Y') }
  95. <tr bgcolor=#99CCFF> {*E8EEFF*}
  96. {elseif $rows_count % 2 == 0}
  97. <tr bgcolor=#E8EEFF>
  98. {else}
  99. <tr>
  100. {/if}
  101. <td nowrap width="2%">
  102. {$rows.link_change}
  103. </td>
  104. <td width="3%">{$rows.Betrieb}</td>
  105. <td width="3%">{$rows.Stufe2}</td>
  106. <td width="12%">{$rows.KNAME}</td>
  107. <td width="6%">{$rows.Stufe5}</td>
  108. <td style="text-align: right;"width="5%">{$rows.REDAT|date_format:'%d.%m.%Y'}</td>
  109. <td style="text-align: right;"width="6%">{$rows.O500_HW2BUCHGBETR|number_format:2:",":"."}</td>
  110. <td style="text-align: center;" width="6%">{$rows.FLDAT|date_format:'%d.%m.%Y'}</td>
  111. <td width="7%">{$rows.O500_MAHNSTUFE}</td>
  112. <td style="text-align: right;"width="5%">{$rows.O500_HW2BETR_OFFEN|number_format:2:",":"."}</td>
  113. <td width="14%">{$rows.Bemerkung}</td>
  114. <td width="6%">{if $rows.Wiedervorlage != '0000-00-00' && $rows.Wiedervorlage != '&nbsp;'}{$rows.Wiedervorlage|date_format:'%d.%m.%Y'}{/if}</td>
  115. <td width="14%">{$rows.Bemerkung_2}</td>
  116. <td style="text-align: left;" width="3%">{$rows.Bearbeitet}</td>
  117. <td width="6%">{$rows.Mahnen}</td>
  118. </tr>
  119. {* groupFooter *}
  120. {* columnFooter *}
  121. {if ! $rows_next}
  122. </table>
  123. </div>
  124. </div>
  125. <div id="report_gesamt_berechnung" class="report_gesamt_berechung">
  126. <tr><td colspan={$columnCount}>
  127. {$grandTotal}
  128. {$O500_HW2BETR_OFFENTxt} = {$ALLGroup_SUM|number_format:2:",":"."}
  129. </td></tr>
  130. </div>
  131. {/if}
  132. {php}
  133. }
  134. {/php}
  135. {if $rows_count == 0}
  136. <h1>Keine Datensätze ausgewählt.</h1>
  137. {/if}
  138. </div>
  139. {else}
  140. {section name=html loop=$form_hidden}
  141. {$form_hidden[html]}
  142. {/section}
  143. <table class='report_content_formular_table' cellspacing='0px'>
  144. <tr style="background-Color: #E8EEFF;">
  145. <td>{$BetriebTxt}:</td>
  146. <td>{$BetriebVal}</td>
  147. <td>{$FTYPETxt}:</td>
  148. <td>{$FTYPEVal}</td>
  149. <td>{$Fäll_TageTxt}</td>
  150. <td><input class="pme-input--1" type="text" disabled name="Fäll_Tage" value="{$rows.Fäll_Tage}" size="10" maxlength="10"></td>
  151. <td>{$FLDATTxt}:</td>
  152. <td><input class="pme-input--1" type="text" disabled name="FLDAT" value="{$rows.FLDAT|date_format:'%d.%m.%Y'}" size="10" maxlength="10"></input></td>
  153. <td>{$KNAMETxt}:</td>
  154. <td>{$KNAMEVal}</td>
  155. </tr>
  156. <tr style="background-Color: #E8EEFF;">
  157. <td>{$Stufe2Txt}:</td>
  158. <td>{$Stufe2Val}</td>
  159. <td>{$FAGNRTxt}:</td>
  160. <td>{$FAGNRVal}</td>
  161. <td>{$REDATTxt}:</td>
  162. <td><input class="pme-input--1" type="text" disabled name="REDAT" value="{$rows.REDAT|date_format:'%d.%m.%Y'}" size="10" maxlength="10"></input></td>
  163. <td>{$WochenTxt}:</td>
  164. <td>{$WochenVal}</td>
  165. <td>{$KstraTxt}</td>
  166. <td>{$KstraVal}</td>
  167. </tr>
  168. <tr style="background-Color: #E8EEFF;">
  169. <td>{$Stufe5Txt}:</td>
  170. <td>{$Stufe5Val}</td>
  171. <td>{$O500_HW2BUCHGBETRTxt}:</td>
  172. <td><input class="pme-input--1" type="text" disabled name="O500_HW2BUCHGBETR" value={$rows.O500_HW2BUCHGBETR|number_format:2:",":"."} size="11" maxlength="11"></input></td>
  173. <td>&nbsp;</td>
  174. <td>&nbsp;</td>
  175. <td>&nbsp;</td>
  176. <td>&nbsp;</td>
  177. <td>{$KdplzTxt}</td>
  178. <td>{$KdplzVal}</td>
  179. </tr>
  180. <tr style="background-Color: #E8EEFF;">
  181. <td>{$KNDNRTxt}:</td>
  182. <td>{$KNDNRVal}</td>
  183. <td>&nbsp;</td>
  184. <td colspan="3">&nbsp;</td>
  185. <td>&nbsp;</td>
  186. <td>&nbsp;</td>
  187. <td>{$KdortTxt}</td>
  188. <td>{$KdortVal}</td>
  189. </tr>
  190. <tr style="background-Color: #E8EEFF;">
  191. <td>{$O500_BELEGNR1Txt}</td>
  192. <td>{$O500_BELEGNR1Val}</td>
  193. <td>&nbsp;</td>
  194. <td colspan="3">&nbsp;</td>
  195. <td>&nbsp;</td>
  196. <td>&nbsp;</td>
  197. <td>{$KtelfTxt}</td>
  198. <td>{$KtelfVal}</td>
  199. </tr>
  200. <tr>
  201. <td><b>{$VersicherungTxt}</b></td>
  202. <td><SELECT class="pme-input--1" type="text" name="Versicherung" size="1" maxlength="1">
  203. <option value='N'>Nein</option>
  204. <option value='J' {if $rows.Versicherung=="J"} selected {/if} >Ja</option>
  205. </SELECT></td>
  206. <td>&nbsp;</td>
  207. <td>&nbsp;</td>
  208. <td><b>{$ReklamationTxt}</b></td>
  209. <td><SELECT class="pme-input--1" type="text" name="Reklamation" size="1" maxlength="1">
  210. <option value='N'>Nein</option>
  211. <option value='J' {if $rows.Reklamation=="J"} selected {/if} >Ja</option>
  212. </SELECT>
  213. </td>
  214. <td>&nbsp;</td>
  215. <td>&nbsp;</td>
  216. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  217. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  218. </tr>
  219. <tr>
  220. <td><b>&nbsp;> {$SelbstbeteiligungTxt}</b></td>
  221. <td><SELECT class="pme-input--1" name="Selbstbeteiligung" size="1" maxlength="10">
  222. <option value=''></option>
  223. <option value='Kunde' {if $rows.Selbstbeteiligung=="Kunde"} selected {/if} >Kunde</option>
  224. <option value='Versicherung' {if $rows.Selbstbeteiligung=="Versicherung"} selected {/if} >Versicherung</option>
  225. <option value='AHR' {if $rows.Selbstbeteiligung=="AHR"} selected {/if} >AHR</option>
  226. </SELECT>
  227. </td>
  228. <td><b>{$SelbstbeteiligungBetragTxt}</b></td>
  229. <td>{$SelbstbeteiligungBetragVal}</td>
  230. <td>&nbsp;</td>
  231. <td>&nbsp;</td>
  232. <td>&nbsp;</td>
  233. <td>&nbsp;</td>
  234. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  235. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  236. </tr>
  237. <tr>
  238. <td><b>&nbsp;> {$MwstTxt}</b></td>
  239. <td><SELECT class="pme-input--1" name="Mwst" size="1" maxlength="10">
  240. <option value=''></option>
  241. <option value='Kunde' {if $rows.Mwst=="Kunde"} selected {/if} >Kunde</option>
  242. <option value='Versicherung' {if $rows.Mwst=="Versicherung"} selected {/if} >Versicherung</option>
  243. <option value='AHR' {if $rows.Mwst=="AHR"} selected {/if} >AHR</option>
  244. </SELECT></td>
  245. <td><b>{$MwstBetragTxt}</b></td>
  246. <td>{$MwstBetragVal}</td>
  247. <td>&nbsp;</td>
  248. <td>&nbsp;</td>
  249. <td>&nbsp;</td>
  250. <td>&nbsp;</td>
  251. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  252. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  253. </tr>
  254. <tr>
  255. <td>{$O500_MAHNSTUFETxt}:</td>
  256. <td colspan="5">{$O500_MAHNSTUFEVal}</td>
  257. <td>&nbsp;</td>
  258. <td>&nbsp;</td>
  259. <td style="background-Color: #E8EEFF;">{$KZALATxt}:</td>
  260. <td style="background-Color: #E8EEFF;">{$KZALAVal}</td>
  261. </tr>
  262. <tr>
  263. <td><b>{$BemerkungTxt}:</b></td>
  264. <td colspan="5"><textarea class="pme-input--1" {if $smarty.session.group_name == ABTEILUNG} disabled {/if} name="Bemerkung" rows="5" cols="50" wrap="virtual">{$rows.Bemerkung}</textarea></td>
  265. <td>{$Aenderungsdatum_u2Txt}:<br>{$User_2Txt}:</td>
  266. <td><input class="pme-input--1" type="text" disabled name="Aenderungsdatum_u2" value="{if $rows.Aenderungsdatum_u2 != '0000-00-00'}{$rows.Aenderungsdatum_u2|date_format:'%d.%m.%Y'}{/if}" size="10" maxlength="10"><br><input class="pme-input--1" disabled type="text" name="User_2" value="{$rows.User_2}" size="30" maxlength="30"></td>
  267. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  268. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  269. </tr>
  270. <tr>
  271. <td>{$Next_MAHNSTUFETxt}:</td>
  272. <td colspan="7">{$Next_MAHNSTUFEVal}</td>
  273. <td colspan="2" style="background-Color: #E8EEFF;">&nbsp;</td>
  274. </tr>
  275. <tr>
  276. <td><b>{$MahnenTxt}:</b></td>
  277. <td colspan="7"> <select class="pme-input--1" type="text" name="Mahnen" size="1" maxlength="1">
  278. <option value="N">Nein</option>
  279. <option value="J" {if $rows.Mahnen=="J"} selected {/if} >Ja</option>
  280. </select>
  281. </td>
  282. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  283. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  284. </tr>
  285. <tr>
  286. <td><b>{$Bemerkung_2Txt}:</b></td>
  287. <td colspan="5"><textarea class="pme-input--1" {if $smarty.session.group_name == FIBU} disabled {/if} name="Bemerkung_2" rows="5" cols="50" wrap="virtual">{$rows.Bemerkung_2}</textarea></td>
  288. <td>{$AenderungsdatumTxt}:<br>{$UserTxt}:</td>
  289. <td><input class="pme-input--1" type="text" disabled name="Aenderungsdatum" value="{if $rows.Aenderungsdatum != '0000-00-00'}{$rows.Aenderungsdatum|date_format:'%d.%m.%Y'}{/if}" size="10" maxlength="10"><br><input class="pme-input--1" disabled type="text" name="User" value="{$rows.User}" size="30" maxlength="30"></td>
  290. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  291. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  292. </tr>
  293. <tr>
  294. <td>&nbsp;</td>
  295. <td>&nbsp;</td>
  296. <td>&nbsp;</td>
  297. <td>&nbsp;</td>
  298. <td>&nbsp;</td>
  299. <td>&nbsp;</td>
  300. <td>&nbsp;</td>
  301. <td>&nbsp;</td>
  302. <td colspan="2" style="background-Color: #E8EEFF;">&nbsp;</td>
  303. </tr>
  304. <tr>
  305. <td>&nbsp;</td>
  306. <td>&nbsp;</td>
  307. <td>&nbsp;</td>
  308. <td>&nbsp;</td>
  309. <td>&nbsp;</td>
  310. <td>&nbsp;</td>
  311. <td style="border-top: 1px solid #45458D;"><b>{$WiedervorlageTxt}:</b></td>
  312. <td style="border-top: 1px solid #45458D;"><input class="pme-input--1" type="text" date="date" name="Wiedervorlage" value="{if $rows.Wiedervorlage != '0000-00-00'}{$rows.Wiedervorlage|date_format:'%d.%m.%Y'}{/if}" size="10" maxlength="10"><image src="images/dynCalendar.gif" name='calendar' onclick="startCalendar(this,'Wiedervorlage','up');"></td>
  313. <td style="background-Color: #E8EEFF; border-top: 1px solid #45458D;">{$O500_HW2BETR_OFFENTxt}</td>
  314. <td style="background-Color: #E8EEFF; border-top: 1px solid #45458D;"</td><input class="pme-input--1" type="text" disabled name="O500_HW2BETR_OFFEN" value={$rows.O500_HW2BETR_OFFEN|number_format:2:",":"."} size="11" maxlength="11"></input></td>
  315. </tr>
  316. <tr style="display: none;">
  317. <td>{$OPDATTxt}</td>
  318. <td>{$OPDATVal}</td>
  319. <td>{$FLDAT_oriTxt}:</td>
  320. <td>{$FLDAT_oriVal}</td>
  321. <td><input class="pme-input--1" type="text" name="Bearbeitet" value='J' size="1" maxlength="1"></td>
  322. <td><input class="pme-input--1" type="hidden" name="User_2" value="{if $smarty.session.group_name == FIBU}{$smarty.session.userid}{else}{$rows.User_2}{/if}" size="30" maxlength="30"></td>
  323. <td><input class="pme-input--1" type="hidden" name="User" value="{if $smarty.session.group_name == ABTEILUNG}{$smarty.session.userid}{else}{$rows.User}{/if}" size="30" maxlength="30"></td>
  324. <td><input class="pme-input--1" type="text" name="Aenderungsdatum_u2" value="{if $smarty.session.group_name == FIBU}{$curdate|date_format:'%Y-%m-%d'}{else}{$rows.Aenderungsdatum_u2}{/if}" size="10" maxlength="10"></td>
  325. <td><input class="pme-input--1" type="text" name="Aenderungsdatum" value="{if $smarty.session.group_name == ABTEILUNG}{$curdate|date_format:'%Y-%m-%d'}{else}{$rows.Aenderungsdatum}{/if}" size="10" maxlength="10"></td>
  326. <td>{if $smarty.session.group_name == ABTEILUNG}<textarea type="hidden" class="pme-input--1" name="Bemerkung" rows="5" cols="50" wrap="virtual">{$rows.Bemerkung}</textarea>{/if}</td>
  327. <td>{if $smarty.session.group_name == FIBU}<textarea type="hidden" class="pme-input--1" name="Bemerkung_2" rows="5" cols="50" wrap="virtual">{$rows.Bemerkung_2}</textarea>{/if}</td>
  328. </tr>
  329. </table>
  330. </div>
  331. {* using translate : {'add'|__} *}
  332. {* for value : $rows.keyname *}
  333. {/if}
  334. {if $columnCount > 0}
  335. {include file="listButtons.tpl"}
  336. {else}
  337. {include file="recordButtons.tpl"}
  338. {/if}
  339. {* summary *}
  340. {* pageFooter *}
  341. {$form_end}
  342. {include file="reportFooter.tpl"}