report_fm_aha_naga_.tpl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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>{$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_reklTxt}</td>
  27. <td>{$filter_reklVal}</td>
  28. <td>{$filter_WiedervorlTxt}</td>
  29. <td>{$filter_WiedervorlVal}</td>
  30. <td><input type=button onClick="clearCache();" class="pme-filter" value="{$Reset}"></td>
  31. </tr><tr>
  32. <td>{$filter_datefromTxt}</td><td>{$filter_datefromVal}</td><td>{$filter_dateuntilTxt}</td><td>{$filter_dateuntilVal}</td>
  33. <td>{$filter_Mahnen_entTxt}</td>
  34. <td>{$filter_Mahnen_entVal}</td>
  35. </tr>
  36. </table>
  37. </form>
  38. {/if}
  39. {*Edited*}
  40. </div>
  41. {* variable *}
  42. {* {$REPORT_COUNT} *}
  43. {* field *}
  44. {* Betrieb, Stufe2, FAGNR, FTYPE, KNDNR, KNAME, Stufe5, REDAT, O500_HW2BUCHGBETR, FLDAT, 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 *}
  45. {* group *}
  46. {* ALL:SUM.O500_HW2BETR_OFFEN; *}
  47. {* pageHeader *}
  48. {* <p>{$Total}: {$REPORT_COUNT}</p> *}
  49. {$form_begin}
  50. {*Edited*}
  51. <!--<hr>-->
  52. {*Edited*}
  53. <div id="report_content" class="report_content">
  54. {if $columnCount > 0}
  55. {php}
  56. global $phpme;
  57. while ($phpme->assign_rows()) {
  58. {/php}
  59. {* columnHeader *}
  60. {if $rows_count == 1}
  61. <div id="report_content_header" class="report_content_header">
  62. <table id="report_content_header_table" class="report_content_header_table">
  63. <tr><td width="2%">&nbsp;</td>
  64. <td width="3%">{$BetriebTxt2}</td>
  65. <td width="3%">{$Stufe2Txt2}</td>
  66. <td width="12%">{$KNAMETxt2}</td>
  67. <td width="6%">{$Stufe5Txt2}</td>
  68. <td width="5%">{$REDATTxt2}</td>
  69. <td width="6%">{$O500_HW2BUCHGBETRTxt2}</td>
  70. <td style="text-align: center;" width="6%">{$FLDATTxt2}</td>
  71. <td width="7%">{$O500_MAHNSTUFETxt2}</td>
  72. <td width="5%">{$O500_HW2BETR_OFFENTxt2}</td>
  73. <td width="14%">{$BemerkungTxt2}</td>
  74. <td width="6%">{$WiedervorlageTxt2}</td>
  75. <td width="14%">{$Bemerkung_2Txt2}</td>
  76. <td style="text-align: left;" width="3%">{$BearbeitetTxt2}</td>
  77. <td width="6%">{$MahnenTxt2}</td>
  78. </tr>
  79. </table>
  80. {if strlen($sortInfo) > 0}
  81. {$sortInfo}
  82. {/if}
  83. </div>
  84. <div id="report_content_table" class="report_content_table">
  85. <table id="report_content_table_table" class="report_content_table_table">
  86. {/if}
  87. {* groupHeader *}
  88. {* $rows *}
  89. {if $rows_count == 1}
  90. {assign var="ALLGroup" value=$rows.ALL}
  91. {* ALL:COUNT; *}
  92. {counter name="ALLGroup_counter" start=0 print=false
  93. assign="ALLGroup_counter"}
  94. {* ALL:SUM.O500_HW2BETR_OFFEN; *}
  95. {assign var="ALLGroup_SUMer" value=0}
  96. {/if}
  97. {if $ALLGroup_counter == 0}
  98. {assign var="ALLGroup" value=$rows.ALL}
  99. {/if}
  100. {* ALL:COUNT; *}
  101. {counter name="ALLGroup_counter" print=false}
  102. {* ALL:SUM.O500_HW2BETR_OFFEN; *}
  103. {assign var="ALLGroup_SUMer"
  104. value="`$ALLGroup_SUMer+$rows.O500_HW2BETR_OFFEN`"}
  105. {if $ALLGroup != $rows_next.ALL}
  106. {* ALL:COUNT; *}
  107. {assign var="ALLGroup_COUNT" value=$ALLGroup_counter}
  108. {counter name="ALLGroup_counter" start=0 print=false
  109. assign="ALLGroup_counter"}
  110. {/if}
  111. {* detail *}
  112. {if $rows.FAGNR|count_characters == 6 && $rows.O500_BELEGNR1|cat:$rows.OPDAT eq $thisrec}
  113. <tr bgcolor=#99CCFF>
  114. {elseif $rows.FAGNR|count_characters == 7 && $rows.FAGNR|cat:$rows.O500_BELEGNR1|cat:$rows.OPDAT eq $thisrec}
  115. <tr bgcolor=#99CCFF>
  116. {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') }
  117. <tr bgcolor=#99CCFF> {*E8EEFF*}
  118. {elseif $rows_count % 2 == 0}
  119. <tr bgcolor=#E8EEFF>
  120. {else}
  121. <tr>
  122. {/if}
  123. <td nowrap width="2%">
  124. {$rows.link_change}
  125. </td>
  126. <td width="3%">{$rows.Betrieb}</td>
  127. <td width="3%">{$rows.Stufe2}</td>
  128. <td width="12%">{$rows.KNAME}</td>
  129. <td width="6%">{$rows.Stufe5}</td>
  130. <td style="text-align: right;"width="5%">{$rows.REDAT|date_format:'%d.%m.%Y'}</td>
  131. <td style="text-align: right;"width="6%">{$rows.O500_HW2BUCHGBETR|number_format:2:",":"."}</td>
  132. <td style="text-align: center;" width="6%">{$rows.FLDAT|date_format:'%d.%m.%Y'}</td>
  133. <td width="7%">{$rows.O500_MAHNSTUFE}</td>
  134. <td style="text-align: right;"width="5%">{$rows.O500_HW2BETR_OFFEN|number_format:2:",":"."}</td>
  135. <td width="14%">{$rows.Bemerkung}</td>
  136. <td width="6%">{if $rows.Wiedervorlage != '0000-00-00'}{$rows.Wiedervorlage|date_format:'%d.%m.%Y'}{/if}</td>
  137. <td width="14%">{$rows.Bemerkung_2}</td>
  138. <td style="text-align: left;" width="3%">{$rows.Bearbeitet}</td>
  139. <td width="6%">{$rows.Mahnen}</td>
  140. </tr>
  141. {* groupFooter *}
  142. {* columnFooter *}
  143. {if ! $rows_next}
  144. </table>
  145. </div>
  146. </div>
  147. <div id="report_gesamt_berechnung" class="report_gesamt_berechung">
  148. <tr><td colspan={$columnCount}>
  149. {$grandTotal}
  150. {$O500_HW2BETR_OFFENTxt} = {$ALLGroup_SUM|number_format:2:",":"."}
  151. </td></tr>
  152. </div>
  153. {/if}
  154. {php}
  155. }
  156. {/php}
  157. {if $rows_count == 0}
  158. <h1>Keine Datensätze ausgewählt.</h1>
  159. {/if}
  160. {else}
  161. {section name=html loop=$form_hidden}
  162. {$form_hidden[html]}
  163. {/section}
  164. <table class="report_content_formular_table" cellspacing="0px">
  165. <tr style="background-Color: #E8EEFF;">
  166. <td>{$BetriebTxt}:</td>
  167. <td>{$BetriebVal}</td>
  168. <td>{$FTYPETxt}:</td>
  169. <td>{$FTYPEVal}</td>
  170. <td>{$Faell_TageTxt}</td>
  171. <td><input class="pme-input--1" type="text" disabled name="Faell_Tage" value="{$rows.Faell_Tage}" size="10" maxlength="10"></td>
  172. <td>{$FLDATTxt}:</td>
  173. <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>
  174. <td>{$ZA_1Txt}:</td>
  175. <td>{$ZA_1Val}</td>
  176. </tr>
  177. <tr style="background-Color: #E8EEFF;">
  178. <td>{$Stufe2Txt}:</td>
  179. <td>{$Stufe2Val}</td>
  180. <td>{$FAGNRTxt}:</td>
  181. <td>{$FAGNRVal}</td>
  182. <td>{$REDATTxt}:</td>
  183. <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>
  184. <td>{$WochenTxt}:</td>
  185. <td>{$WochenVal}</td>
  186. <td>{$ZA_2Txt}:</td>
  187. <td>{$ZA_2Val}</td>
  188. </tr>
  189. <tr style="background-Color: #E8EEFF;">
  190. <td>{$Stufe5Txt}:</td>
  191. <td>{$Stufe5Val}</td>
  192. <td>{$O500_HW2BUCHGBETRTxt}:</td>
  193. <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>
  194. <td>&nbsp;</td>
  195. <td>&nbsp;</td>
  196. <td>&nbsp;</td>
  197. <td>&nbsp;</td>
  198. <td>{$ZA_3Txt}:</td>
  199. <td>{$ZA_3Val}</td>
  200. </tr>
  201. <tr style="background-Color: #E8EEFF;">
  202. <td>{$KNDNRTxt}:</td>
  203. <td>{$KNDNRVal}</td>
  204. <td>{$KNAMETxt}:</td>
  205. <td colspan="3">{$KNAMEVal}</td>
  206. <td>{$LKNAMETxt}:</td>
  207. <td>{$LKNAMEVal}</td>
  208. <td>&nbsp;</td>
  209. <td>&nbsp;</td>
  210. </tr>
  211. <tr style="background-Color: #E8EEFF;">
  212. <td>{$O500_BELEGNR1Txt}</td>
  213. <td>{$O500_BELEGNR1Val}</td>
  214. <td>{$KstraTxt}</td>
  215. <td colspan="3">{$KstraVal}</td>
  216. <td>{$LKSTRATxt}</td>
  217. <td>{$LKSTRAVal}</td>
  218. <td>&nbsp;</td>
  219. <td>&nbsp;</td>
  220. </tr>
  221. <tr style="background-Color: #E8EEFF;">
  222. <td>&nbsp;</td>
  223. <td>&nbsp;</td>
  224. <td>{$KdplzTxt}</td>
  225. <td colspan="3">{$KdplzVal}</td>
  226. <td width="6%">{$LKDPLZTxt}</td>
  227. <td>{$LKDPLZVal}</td>
  228. <td>&nbsp;</td>
  229. <td>&nbsp;</td>
  230. </tr>
  231. <tr style="background-Color: #E8EEFF;">
  232. <td><b>{$ReklamationTxt}</b></td>
  233. <td><SELECT class="pme-input--1" type="text" name="Reklamation" size="1" maxlength="1">
  234. <option value='N'>Nein</option>
  235. <option value='J' {if $rows.Reklamation=="J"} selected {/if} >Ja</option>
  236. </SELECT>
  237. </td>
  238. <td>{$KdortTxt}</td>
  239. <td colspan="3">{$KdortVal}</td>
  240. <td width="6%">{$LKDORTTxt}</td>
  241. <td>{$LKDORTVal}</td>
  242. <td>&nbsp;</td>
  243. <td>&nbsp;</td>
  244. </tr>
  245. <tr style="background-Color: #E8EEFF;">
  246. <td>&nbsp;</td>
  247. <td>&nbsp;</td>
  248. <td>{$KtelfTxt}</td>
  249. <td colspan="3">{$KtelfVal}</td>
  250. <td>{$LKTELFTxt}</td>
  251. <td>{$LKTELFVal}</td>
  252. <td colspan="2">Auslief. aus NA</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;">{$geplAuslief_NATxt}</td>
  260. <td style="background-Color: #E8EEFF;">{$geplAuslief_NAVal}</td>
  261. </tr>
  262. <tr>
  263. <td>{$BemerkungTxt}:</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;">{$Auslief_NATxt}</td>
  268. <td style="background-Color: #E8EEFF;">{$Auslief_NAVal}</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;">Auslief. aus GA</td>
  274. </tr>
  275. <tr>
  276. <td>{$MahnenTxt}:</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;">{$geplAuslief_GATxt}</td>
  283. <td style="background-Color: #E8EEFF;">{$geplAuslief_GAVal}</td>
  284. </tr>
  285. <tr>
  286. <td>{$Bemerkung_2Txt}:</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;">{$Auslief_GATxt}</td>
  291. <td style="background-Color: #E8EEFF;">{$Auslief_GAVal}</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;">{$WiedervorlageTxt}:</td>
  312. <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>
  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"}