report_fm_rem_naga.tpl 18 KB

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