Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed3bf4aa

Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt

  • ID ed3bf4aa8386faa386bd80c32d713e05a609152b
  • Vorgänger 113533ea
  • Nachfolger 3f3b6fec

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