[vz-dev] Falsche Darstellung von Kanälen

Bernd Gewehr bernd at gewehr.net
Thu Sep 29 18:13:34 CEST 2016


> Am 24.09.2016 um 19:06 schrieb Andreas Goetz <cpuidle at gmail.com>:
> 
> Einfach wenn es irgendwo einen Wert gibt, analog für Kosten:
> 
> /**
>  * Post-update entity list after adding/ removing/ updating entities
>  *
>  * @todo move to Entity class
>  */
> vz.entities.updateTableColumnVisibility = function() {
> 	// hide costs if empty for all rows
> 	$('.cost').css({
> 		display: ($('tbody .cost').filter(function() {
> 								return (+$(this).data('cost') || 0) > 0;
> 						 }).get().length === 0) ? 'none' : ''
> 	});
> 	// hide total consumption if empty for all rows
> 	$('.total').css({
> 		display: ($('tbody .total').filter(function() {
> 								return (+$(this).data('total') || 0) > 0;
> 						 }).get().length === 0) ? 'none' : ''
> 	});
> };
> 
> Viele Grüße, Andreas

Hallo, 

bisher folgendes geprüft: in der properties Tabelle existiert kein Eintrag "initialconsumption".

Dementsprechend dürfte auch kein Wert total in der Tabelle existieren.

Es entstehen aber dennoch welche, deswegen wird die Spalte ja auch angezeigt.

Wo kommen die totals werte her?

Gruß Bernd
> 
>> On 24 Sep 2016, at 15:53, Bernd Gewehr <bernd at gewehr.net> wrote:
>> 
>> Hallo, Andreas,
>> 
>> ja, ist es.
>> 
>> Ich wollte mal versuchen, alle Daten zu löschen. Vielleicht steckt da der Teufel im Detail.
>> Ich fange jetzt wieder an, mich drum zu kümmern.
>> 
>> Was mir helfen könnte: Nach welcher Regel wird die Spalte "gesamt" eingeblendet?
>> 
>> Gruß Bernd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-dev/attachments/20160929/d0f4436d/attachment.html>


More information about the volkszaehler-dev mailing list