report_fm_aha_sc.tpl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  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} RA: {$filter_raVal}</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>
  35. <td>{$filter_datefromVal}</td>
  36. <td>{$filter_dateuntilTxt}</td>
  37. <td>{$filter_dateuntilVal}</td>
  38. <td>{$filter_Mahnen_entTxt}</td>
  39. <td>{$filter_Mahnen_entVal}</td>
  40. <td>{$filter_rechgutTxt}</td>
  41. <td>{$filter_rechgutVal}</td>
  42. </tr>
  43. </table>
  44. </form>
  45. {/if}
  46. {*Edited*}
  47. </div>
  48. {* variable *}
  49. {* {$REPORT_COUNT} *}
  50. {* field *}
  51. {* 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 *}
  52. {* group *}
  53. {* ALL:SUM.O500_HW2BETR_OFFEN; *}
  54. {* pageHeader *}
  55. {* <p>{$Total}: {$REPORT_COUNT}</p> *}
  56. {$form_begin}
  57. {*Edited*}
  58. <!--<hr>-->
  59. {*Edited*}
  60. <div id="report_content" class="report_content">
  61. {if $columnCount > 0}
  62. {php}
  63. global $phpme;
  64. while ($phpme->assign_rows()) {
  65. {/php}
  66. {* columnHeader *}
  67. {if $rows_count == 1}
  68. <div id="report_content_header" class="report_content_header">
  69. <table id="report_content_header_table" class="report_content_header_table">
  70. <tr>
  71. <td>&nbsp;</td>
  72. <td>{$BetriebTxt2}</td>
  73. <td>{$Stufe2Txt2}</td>
  74. <td>{$KNAMETxt2}</td>
  75. <td>{$Stufe5Txt2}</td>
  76. <td>{$REDATTxt2}</td>
  77. <td>{$O500_HW2BUCHGBETRTxt2}</td>
  78. <td style="text-align: center;">{$FLDATTxt2}</td>
  79. <td>{$O500_MAHNSTUFETxt2}</td>
  80. <td>{$O500_HW2BETR_OFFENTxt2}</td>
  81. <td>{$BemerkungTxt2}</td>
  82. <td>{$WiedervorlageTxt2}</td>
  83. <td>{$Bemerkung_2Txt2}</td>
  84. <td>{$shipment_dateTxt2}</td>
  85. <td style="text-align: left;" >{$BearbeitetTxt2}</td>
  86. <td>{$MahnenTxt2}</td>
  87. <td style="width: 10px;">&nbsp;</td>
  88. </tr>
  89. </table>
  90. {if strlen($sortInfo) > 0}
  91. {$sortInfo}
  92. {/if}
  93. </div>
  94. <div id="report_content_table" class="report_content_table">
  95. <table id="report_content_table_table" class="report_content_table_table">
  96. {/if}
  97. {* detail *}
  98. {if $rows.FAGNR|count_characters == 6 && $rows.O500_BELEGNR1|cat:$rows.OPDAT eq $thisrec}
  99. <tr bgcolor=#99CCFF>
  100. {elseif $rows.FAGNR|count_characters == 7 && $rows.FAGNR|cat:$rows.O500_BELEGNR1|cat:$rows.OPDAT eq $thisrec}
  101. <tr bgcolor=#99CCFF>
  102. {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') }
  103. <tr bgcolor=#99CCFF> {*E8EEFF*}
  104. {elseif $rows_count % 2 == 0}
  105. <tr bgcolor=#E8EEFF>
  106. {else}
  107. <tr>
  108. {/if}
  109. <td nowrap>
  110. {$rows.link_change}
  111. </td>
  112. <td>{$rows.Betrieb}</td>
  113. <td>{$rows.Stufe2}</td>
  114. <td>{$rows.KNAME}</td>
  115. <td>{$rows.Stufe5}</td>
  116. <td style="text-align: right;">{$rows.REDAT|date_format:'%d.%m.%Y'}</td>
  117. <td style="text-align: right;">{$rows.O500_HW2BUCHGBETR|number_format:2:",":"."}</td>
  118. <td style="text-align: center;">{$rows.FLDAT|date_format:'%d.%m.%Y'}</td>
  119. <td>{$rows.O500_MAHNSTUFE}</td>
  120. <td style="text-align: right;">{$rows.O500_HW2BETR_OFFEN|number_format:2:",":"."}</td>
  121. <td>{$rows.Bemerkung}</td>
  122. <td>{if $rows.Wiedervorlage != '0000-00-00'}{$rows.Wiedervorlage|date_format:'%d.%m.%Y'}{/if}</td>
  123. <td>{$rows.Bemerkung_2}</td>
  124. <td>{if $rows.shipment_date != '0000-00-00'}{$rows.shipment_date|date_format:'%d.%m.%Y'}{/if}</td>
  125. <td style="text-align: left;" >{$rows.Bearbeitet}</td>
  126. <td>{$rows.Mahnen}</td>
  127. </tr>
  128. {* groupFooter *}
  129. {* columnFooter *}
  130. {if ! $rows_next}
  131. </table>
  132. </div>
  133. </div>
  134. <div id="report_gesamt_berechnung" class="report_gesamt_berechung">
  135. <tr><td colspan={$columnCount}>
  136. {$grandTotal}
  137. {$O500_HW2BETR_OFFENTxt} = {$ALLGroup_SUM|number_format:2:",":"."}
  138. </td></tr>
  139. </div>
  140. {/if}
  141. {php}
  142. }
  143. {/php}
  144. {if $rows_count == 0}
  145. <h1>Keine Datensätze ausgewählt.</h1>
  146. {/if}
  147. </div>
  148. {else}
  149. {section name=html loop=$form_hidden}
  150. {$form_hidden[html]}
  151. {/section}
  152. <table class='report_content_formular_table' cellspacing='0px'>
  153. <tr style="background-Color: #E8EEFF;">
  154. <td>{$BetriebTxt}:</td>
  155. <td>{$BetriebVal}</td>
  156. <td>{$FTYPETxt}:</td>
  157. <td>{$FTYPEVal}</td>
  158. <td>{$Faell_TageTxt}</td>
  159. <td><input class="pme-input--1" type="text" disabled name="Faell_Tage" value="{$rows.Faell_Tage}" size="10" maxlength="10"></td>
  160. <td>{$FLDATTxt}:</td>
  161. <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>
  162. <td>{$KNAMETxt}:</td>
  163. <td>{$KNAMEVal}</td>
  164. </tr>
  165. <tr style="background-Color: #E8EEFF;">
  166. <td>{$Stufe2Txt}:</td>
  167. <td>{$Stufe2Val}</td>
  168. <td>{$FAGNRTxt}:</td>
  169. <td>{$FAGNRVal}</td>
  170. <td>{$REDATTxt}:</td>
  171. <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>
  172. <td>{$WochenTxt}:</td>
  173. <td>{$WochenVal}</td>
  174. <td>{$KstraTxt}</td>
  175. <td>{$KstraVal}</td>
  176. </tr>
  177. <tr style="background-Color: #E8EEFF;">
  178. <td>{$Stufe5Txt}:</td>
  179. <td>{$Stufe5Val}</td>
  180. <td>{$O500_HW2BUCHGBETRTxt}:</td>
  181. <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>
  182. <td>&nbsp;</td>
  183. <td>&nbsp;</td>
  184. <td>&nbsp;</td>
  185. <td>&nbsp;</td>
  186. <td>{$KdplzTxt}</td>
  187. <td>{$KdplzVal}</td>
  188. </tr>
  189. <tr style="background-Color: #E8EEFF;">
  190. <td>{$KNDNRTxt}:</td>
  191. <td>{$KNDNRVal}</td>
  192. <td>&nbsp;</td>
  193. <td colspan="3">&nbsp;</td>
  194. <td>&nbsp;</td>
  195. <td>&nbsp;</td>
  196. <td>{$KdortTxt}</td>
  197. <td>{$KdortVal}</td>
  198. </tr>
  199. <tr style="background-Color: #E8EEFF;">
  200. <td>{$O500_BELEGNR1Txt}</td>
  201. <td>{$O500_BELEGNR1Val}</td>
  202. <td>&nbsp;</td>
  203. <td colspan="3">&nbsp;</td>
  204. <td>&nbsp;</td>
  205. <td>&nbsp;</td>
  206. <td>{$KtelfTxt}</td>
  207. <td>{$KtelfVal}</td>
  208. </tr>
  209. <tr>
  210. <td><b>{$VersicherungTxt}</b></td>
  211. <td><SELECT class="pme-input--1" type="text" name="Versicherung" size="1" maxlength="1">
  212. <option value='N'>Nein</option>
  213. <option value='J' {if $rows.Versicherung=="J"} selected {/if} >Ja</option>
  214. </SELECT></td>
  215. <td><b>{$RechtsanwaltTxt}</b></td>
  216. <td><SELECT class="pme-input--1" type="text" name="Rechtsanwalt" size="1" maxlength="1">
  217. <option value='N'>Nein</option>
  218. <option value='J' {if $rows.Rechtsanwalt=="J"} selected {/if} >Ja</option>
  219. </SELECT></td>
  220. <td><b>{$ReklamationTxt}</b></td>
  221. <td><SELECT class="pme-input--1" type="text" name="Reklamation" size="1" maxlength="1">
  222. <option value='N'>Nein</option>
  223. <option value='J' {if $rows.Reklamation=="J"} selected {/if} >Ja</option>
  224. </SELECT>
  225. </td>
  226. <td>&nbsp;</td>
  227. <td>&nbsp;</td>
  228. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  229. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  230. </tr>
  231. <tr>
  232. <td><b>&nbsp;> {$SelbstbeteiligungTxt}</b></td>
  233. <td><SELECT class="pme-input--1" name="Selbstbeteiligung" size="1" maxlength="10">
  234. <option value=''></option>
  235. <option value='Kunde' {if $rows.Selbstbeteiligung=="Kunde"} selected {/if} >Kunde</option>
  236. <option value='Versicherung' {if $rows.Selbstbeteiligung=="Versicherung"} selected {/if} >Versicherung</option>
  237. <option value='AHR' {if $rows.Selbstbeteiligung=="AHR"} selected {/if} >AHR</option>
  238. </SELECT>
  239. </td>
  240. <td><b>{$SelbstbeteiligungBetragTxt}</b></td>
  241. <td>{$SelbstbeteiligungBetragVal}</td>
  242. <td>&nbsp;</td>
  243. <td>&nbsp;</td>
  244. <td>&nbsp;</td>
  245. <td>&nbsp;</td>
  246. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  247. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  248. </tr>
  249. <tr>
  250. <td><b>&nbsp;> {$MwstTxt}</b></td>
  251. <td><SELECT class="pme-input--1" name="Mwst" size="1" maxlength="10">
  252. <option value=''></option>
  253. <option value='Kunde' {if $rows.Mwst=="Kunde"} selected {/if} >Kunde</option>
  254. <option value='Versicherung' {if $rows.Mwst=="Versicherung"} selected {/if} >Versicherung</option>
  255. <option value='AHR' {if $rows.Mwst=="AHR"} selected {/if} >AHR</option>
  256. </SELECT></td>
  257. <td><b>{$MwstBetragTxt}</b></td>
  258. <td>{$MwstBetragVal}</td>
  259. <td>&nbsp;</td>
  260. <td>&nbsp;</td>
  261. <td>&nbsp;</td>
  262. <td>&nbsp;</td>
  263. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  264. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  265. </tr>
  266. <tr>
  267. <td>{$O500_MAHNSTUFETxt}:</td>
  268. <td colspan="5">{$O500_MAHNSTUFEVal}</td>
  269. <td>&nbsp;</td>
  270. <td>&nbsp;</td>
  271. <td style="background-Color: #E8EEFF;">{$KZALATxt}:</td>
  272. <td style="background-Color: #E8EEFF;">{$KZALAVal}</td>
  273. </tr>
  274. <tr>
  275. <td><b>{$BemerkungTxt}:</b></td>
  276. <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>
  277. <td>{$Aenderungsdatum_u2Txt}:<br>{$User_2Txt}:</td>
  278. <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>
  279. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  280. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  281. </tr>
  282. <tr>
  283. <td>{$Next_MAHNSTUFETxt}:</td>
  284. <td colspan="7">{$Next_MAHNSTUFEVal}</td>
  285. <td colspan="2" style="background-Color: #E8EEFF;">&nbsp;</td>
  286. </tr>
  287. <tr>
  288. <td><b>{$MahnenTxt}:</b></td>
  289. <td colspan="7"> <select class="pme-input--1" type="text" name="Mahnen" size="1" maxlength="1">
  290. <option value="N">Nein</option>
  291. <option value="J" {if $rows.Mahnen=="J"} selected {/if} >Ja</option>
  292. </select>
  293. </td>
  294. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  295. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  296. </tr>
  297. <tr>
  298. <td><b>{$Bemerkung_2Txt}:</b></td>
  299. <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>
  300. <td>{$AenderungsdatumTxt}:<br>{$UserTxt}:</td>
  301. <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>
  302. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  303. <td style="background-Color: #E8EEFF;">&nbsp;</td>
  304. </tr>
  305. <tr>
  306. <td>&nbsp;</td>
  307. <td>&nbsp;</td>
  308. <td>&nbsp;</td>
  309. <td>&nbsp;</td>
  310. <td>&nbsp;</td>
  311. <td>&nbsp;</td>
  312. <td>&nbsp;</td>
  313. <td>&nbsp;</td>
  314. <td colspan="2" style="background-Color: #E8EEFF;">&nbsp;</td>
  315. </tr>
  316. <tr>
  317. <td>&nbsp;</td>
  318. <td>&nbsp;</td>
  319. <td>&nbsp;</td>
  320. <td>&nbsp;</td>
  321. <td>&nbsp;</td>
  322. <td>&nbsp;</td>
  323. <td style="border-top: 1px solid #45458D;">{$WiedervorlageTxt}:</td>
  324. <td style="border-top: 1px solid #45458D;"><input class="pme-input--1" date="date" type="text" 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>
  325. <td style="background-Color: #E8EEFF; border-top: 1px solid #45458D;">{$O500_HW2BETR_OFFENTxt}</td>
  326. <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>
  327. </tr>
  328. <tr style="display: none;">
  329. <td>{$OPDATTxt}</td>
  330. <td>{$OPDATVal}</td>
  331. <td>{$FLDAT_oriTxt}:</td>
  332. <td>{$FLDAT_oriVal}</td>
  333. <td><input class="pme-input--1" type="text" name="Bearbeitet" value='J' size="1" maxlength="1"></td>
  334. <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>
  335. <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>
  336. <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>
  337. <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>
  338. <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>
  339. <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>
  340. </tr>
  341. </table>
  342. </div>
  343. {* using translate : {'add'|__} *}
  344. {* for value : $rows.keyname *}
  345. {/if}
  346. {if $columnCount > 0}
  347. {include file="listButtons.tpl"}
  348. {else}
  349. {include file="recordButtons.tpl"}
  350. {/if}
  351. {* summary *}
  352. {* pageFooter *}
  353. {$form_end}
  354. {include file="reportFooter.tpl"}