Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9c668ab9

Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt

  • ID 9c668ab9a0ab84634a7f6861939b9ee8ca427d3e
  • Vorgänger f1c50089
  • Nachfolger b73ca44e

Anzahlungs-Rg.: Workaround f. fxselprice/PTC beim Ermitteln der Steuern

Unterschiede anzeigen:

SL/IS.pm
578 578
  $form->{$_} = $form->format_amount($myconfig, $form->{$_}, 2) for @separate_totals;
579 579

  
580 580
  foreach my $invoice_for_advance_payment (@{$self->_get_invoices_for_advance_payment($form->{convert_from_ar_ids} || $form->{id})}) {
581
    # Collect VAT of invoices for advance payment.
582
    # Set sellprices to fxsellprices for items, because
583
    # the PriceTaxCalculator sets fxsellprice from sellprice before calculating.
584
    $_->sellprice($_->fxsellprice) for @{$invoice_for_advance_payment->items};
581 585
    my %pat       = $invoice_for_advance_payment->calculate_prices_and_taxes;
582 586
    my $taxamount = sum0 values %{ $pat{taxes_by_tax_id} };
583 587

  

Auch abrufbar als: Unified diff