<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>Am 24.09.2016 um 19:06 schrieb Andreas Goetz <<a href="mailto:cpuidle@gmail.com">cpuidle@gmail.com</a>>:<br><br></div><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=utf-8"><div class="">Einfach wenn es irgendwo einen Wert gibt, analog für Kosten:</div><div class=""><br class=""></div><div class="">/**</div><div class=""> * Post-update entity list after adding/ removing/ updating entities</div><div class=""> *</div><div class=""> * @todo move to Entity class</div><div class=""> */</div><div class="">vz.entities.updateTableColumnVisibility = function() {</div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span>// hide costs if empty for all rows</div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span>$('.cost').css({</div><div class=""><span class="Apple-tab-span" style="white-space:pre">          </span>display: ($('tbody .cost').filter(function() {</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                                                            </span>return (+$(this).data('cost') || 0) > 0;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                                               </span> }).get().length === 0) ? 'none' : ''</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>});</div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span>// hide total consumption if empty for all rows</div><div class=""><span class="Apple-tab-span" style="white-space:pre">   </span>$('.total').css({</div><div class=""><span class="Apple-tab-span" style="white-space:pre">         </span>display: ($('tbody .total').filter(function() {</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                                                           </span>return (+$(this).data('total') || 0) > 0;</div><div class=""><span class="Apple-tab-span" style="white-space:pre">                                              </span> }).get().length === 0) ? 'none' : ''</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>});</div><div class="">};</div><div class=""><br class=""></div><div class="">Viele Grüße, Andreas</div></blockquote><div><br></div>Hallo, <br><div><br></div>bisher folgendes geprüft: in der properties Tabelle existiert kein Eintrag "initialconsumption".<div><br></div><div>Dementsprechend dürfte auch kein Wert total in der Tabelle existieren.</div><div><br></div><div>Es entstehen aber dennoch welche, deswegen wird die Spalte ja auch angezeigt.</div><div><br></div><div>Wo kommen die totals werte her?</div><div><br></div><div>Gruß Bernd<br><blockquote type="cite"><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 24 Sep 2016, at 15:53, Bernd Gewehr <<a href="mailto:bernd@gewehr.net" class="">bernd@gewehr.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class=""><div style="direction: inherit;" class="">Hallo, Andreas,</div><div style="direction: inherit;" class=""><br class=""></div><div style="direction: inherit;" class="">ja, ist es.</div><div style="direction: inherit;" class=""><br class=""></div><div style="direction: inherit;" class="">Ich wollte mal versuchen, alle Daten zu löschen. Vielleicht steckt da der Teufel im Detail.</div><p style="direction: inherit;" class="">Ich fange jetzt wieder an, mich drum zu kümmern.</p><p style="direction: inherit;" class="">Was mir helfen könnte: Nach welcher Regel wird die Spalte "gesamt" eingeblendet?</p><p style="direction: inherit;" class="">Gruß Bernd</p></div></div></div></blockquote></div></blockquote></div></body></html>