Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c0cc8bb2

Von Rolf Fluehmann vor fast 8 Jahren hinzugefügt

  • ID c0cc8bb220b76219934bee9ac5dd5e8e971ddc65
  • Vorgänger fbbfd3ce
  • Nachfolger 030d9691

added roundings on prints

Unterschiede anzeigen:

SL/OE.pm
1576 1576
    $form->{subtotal_nofmt} = $form->{ordtotal};
1577 1577
  }
1578 1578

  
1579
  $form->{ordtotal} = ($form->{taxincluded}) ? $form->{ordtotal} : $form->{ordtotal} + $tax;
1579
  my $grossamount = ($form->{taxincluded}) ? $form->{ordtotal} : $form->{ordtotal} + $tax;
1580
  $form->{ordtotal} = $form->round_amount( $grossamount, 2, 1);
1581
  $form->{rounding} = $form->round_amount(
1582
    $form->{ordtotal} - $form->round_amount($grossamount, 2),
1583
    2
1584
  );
1580 1585

  
1581 1586
  # format amounts
1587
  $form->{rounding} = $form->format_amount($myconfig, $form->{rounding}, 2);
1582 1588
  $form->{quototal} = $form->{ordtotal} = $form->format_amount($myconfig, $form->{ordtotal}, 2);
1583 1589

  
1584 1590
  $form->set_payment_options($myconfig, $form->{$form->{type} =~ /_quotation/ ? 'quodate' : 'orddate'}, $form->{type});

Auch abrufbar als: Unified diff