Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f46f6480

Von Philip Reetz vor fast 18 Jahren hinzugefügt

  • ID f46f64806e39e562d4e3577bac98e07c298754a4
  • Vorgänger f9504bdd
  • Nachfolger a7403105

Formatierungen in der Kontenliste, Summensaldenliste und AR und AP Aging geaendert, wenn
Nullwerte

Unterschiede anzeigen:

bin/mozilla/ca.pl
413 413
    # construct link to source
414 414
    $href =
415 415
      "<a href=$ca->{module}.pl?path=$form->{path}&action=edit&id=$ca->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ca->{reference}</a>";
416

  
416
    my $debit = ($ca->{debit} != 0) ? $form->format_amount(\%myconfig, $ca->{debit}, 2, "&nbsp;") : "&nbsp;";
417 417
    $column_data{debit} =
418
      "<td align=right>"
419
      . $form->format_amount(\%myconfig, $ca->{debit}, 2, "&nbsp;") . "</td>";
418
      "<td align=right>$debit</td>";
419
    my $credit = ($ca->{credit} != 0) ? $form->format_amount(\%myconfig, $ca->{credit}, 2, "&nbsp;") : "&nbsp;";
420 420
    $column_data{credit} =
421
      "<td align=right>"
422
      . $form->format_amount(\%myconfig, $ca->{credit}, 2, "&nbsp;") . "</td>";
421
      "<td align=right>$credit</td>";
423 422

  
424 423
    $form->{balance} += $ca->{amount};
425 424
    $column_data{balance} =
bin/mozilla/rp.pl
1392 1392

  
1393 1393
    $ml = ($ref->{category} =~ /(A|C|E)/) ? -1 : 1;
1394 1394

  
1395
    $debit  = $form->format_amount(\%myconfig, $ref->{debit},  2, "&nbsp;");
1396
    $credit = $form->format_amount(\%myconfig, $ref->{credit}, 2, "&nbsp;");
1395
    $debit  = ($ref->{debit} != 0) ? $form->format_amount(\%myconfig, $ref->{debit},  2, "&nbsp;") : "&nbsp;";
1396
    $credit = ($ref->{credit} != 0) ? $form->format_amount(\%myconfig, $ref->{credit}, 2, "&nbsp;") : "&nbsp;";
1397 1397
    $begbalance =
1398 1398
      $form->format_amount(\%myconfig, $ref->{balance} * $ml, 2, "&nbsp;");
1399 1399
    $endbalance =
......
1672 1672
      $i++;
1673 1673

  
1674 1674
      if ($subtotal) {
1675
        $c0subtotal =
1676
          $form->format_amount(\%myconfig, $c0subtotal, 2, "&nbsp");
1677
        $c30subtotal =
1678
          $form->format_amount(\%myconfig, $c30subtotal, 2, "&nbsp");
1679
        $c60subtotal =
1680
          $form->format_amount(\%myconfig, $c60subtotal, 2, "&nbsp");
1681
        $c90subtotal =
1682
          $form->format_amount(\%myconfig, $c90subtotal, 2, "&nbsp");
1675
        $c0subtotal = ($c0subtotal != 0) ? 
1676
          $form->format_amount(\%myconfig, $c0subtotal, 2, "&nbsp") : "";
1677
        $c30subtotal = ($c30subtotal != 0) ?
1678
          $form->format_amount(\%myconfig, $c30subtotal, 2, "&nbsp") : "";
1679
        $c60subtotal = ($c60subtotal != 0) ?
1680
          $form->format_amount(\%myconfig, $c60subtotal, 2, "&nbsp") : "";
1681
        $c90subtotal = ($c90subtotal != 0) ?
1682
          $form->format_amount(\%myconfig, $c90subtotal, 2, "&nbsp") : "";
1683 1683
      }
1684 1684

  
1685 1685
      $column_data{ct}        = qq|<th>&nbsp;</th>|;
......
1735 1735
    $c60total += $ref->{c60};
1736 1736
    $c90total += $ref->{c90};
1737 1737

  
1738
    $ref->{c0}  = $form->format_amount(\%myconfig, $ref->{c0},  2, "&nbsp;");
1739
    $ref->{c30} = $form->format_amount(\%myconfig, $ref->{c30}, 2, "&nbsp;");
1740
    $ref->{c60} = $form->format_amount(\%myconfig, $ref->{c60}, 2, "&nbsp;");
1741
    $ref->{c90} = $form->format_amount(\%myconfig, $ref->{c90}, 2, "&nbsp;");
1738
    $ref->{c0}  = ($ref->{c0} != 0) ? $form->format_amount(\%myconfig, $ref->{c0},  2, "&nbsp;") : "";
1739
    $ref->{c30} = ($ref->{c30} != 0) ? $form->format_amount(\%myconfig, $ref->{c30}, 2, "&nbsp;") : "";
1740
    $ref->{c60} = ($ref->{c60} != 0) ?  $form->format_amount(\%myconfig, $ref->{c60}, 2, "&nbsp;") : "";
1741
    $ref->{c90} = ($ref->{c90} != 0) ?  $form->format_amount(\%myconfig, $ref->{c90}, 2, "&nbsp;") : "";
1742 1742

  
1743 1743
    $href =
1744 1744
      qq|$ref->{module}.pl?path=$form->{path}&action=edit&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=|

Auch abrufbar als: Unified diff