Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 030c2086

Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt

  • ID 030c208648ddd8137d8fab33bb8b2eb87f5c080f
  • Vorgänger fc1e3973
  • Nachfolger 39b80fd2

Belege runden, und Rundungsdifferenzen auf Extrakonten buchen.

Unterschiede anzeigen:

SL/OE.pm
690 690
  my $tax = 0;
691 691
  map { $tax += $form->round_amount($taxaccounts{$_}, 2) } keys %taxaccounts;
692 692

  
693
  $amount = $form->round_amount($netamount + $tax, 2);
693
  $amount = $form->round_amount($netamount + $tax, 2, 1);
694 694
  $netamount = $form->round_amount($netamount, 2);
695 695

  
696 696
  if ($form->{currency} eq $form->{defaultcurrency}) {
......
956 956
                     (SELECT c.accno FROM chart c WHERE d.income_accno_id    = c.id) AS income_accno,
957 957
                     (SELECT c.accno FROM chart c WHERE d.expense_accno_id   = c.id) AS expense_accno,
958 958
                     (SELECT c.accno FROM chart c WHERE d.fxgain_accno_id    = c.id) AS fxgain_accno,
959
                     (SELECT c.accno FROM chart c WHERE d.fxloss_accno_id    = c.id) AS fxloss_accno
959
                     (SELECT c.accno FROM chart c WHERE d.fxloss_accno_id    = c.id) AS fxloss_accno,
960
                     (SELECT c.accno FROM chart c WHERE d.rndgain_accno_id   = c.id) AS rndgain_accno,
961
                     (SELECT c.accno FROM chart c WHERE d.rndloss_accno_id   = c.id) AS rndloss_accno
960 962
              $query_add
961 963
              FROM defaults d|;
962 964
  my $ref = selectfirst_hashref_query($form, $dbh, $query);

Auch abrufbar als: Unified diff