Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2f6a11fb

Von Bernd Bleßmann vor etwa 10 Jahren hinzugefügt

trailing whitespaces entfernt

Unterschiede anzeigen:

bin/mozilla/vk.pl
300 300
    # stored seperately).  However, for fxsellprice this method only works when
301 301
    # the tax is not included, because otherwise fxsellprice includes the tax
302 302
    # and there is no simple way to extract the tax rate of the article from
303
    # the big query. 
303
    # the big query.
304 304
    #
305 305
    # Using fxsellprice is potentially more accurate (certainly for tax
306 306
    # included), because we can use the same method as is used while the
......
315 315
    # sellprice_total_including_tax = qty * fxsellprice * (1-discount) /  price_factor * exchangerate
316 316
    # $ar->{sellprice_total_including_tax} =  $form->round_amount( $ar->{qty} * ( $ar->{fxsellprice} * ( 1 - $ar->{discount} ) ) / $ar->{price_factor}, $form->{"decimalplaces"});
317 317

  
318
    $ar->{sellprice}       = $ar->{sellprice}  / $ar->{price_factor} / $basefactor; 
318
    $ar->{sellprice}       = $ar->{sellprice}  / $ar->{price_factor} / $basefactor;
319 319
    $ar->{sellprice_total} = $form->round_amount( $ar->{qty} * $ar->{sellprice} / $ar->{price_factor} , $form->{"decimalplaces"});
320 320

  
321 321
    $ar->{lastcost}        = $ar->{lastcost}   / $ar->{price_factor} / $basefactor;

Auch abrufbar als: Unified diff