Skip to content

Commit

Permalink
Skonto-Automatik bei Banktransaktionen: IC ist netto Konto | Fehler w…
Browse files Browse the repository at this point in the history
…erfen
  • Loading branch information
kivijan committed Jan 19, 2024
1 parent 405d828 commit f337e7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions SL/DB/Helper/Payment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ sub _skonto_charts_and_tax_correction {
my (@skonto_charts, $inv_calc, $total_skonto_rounded);

$inv_calc = $self->get_tax_and_amount_by_tax_chart_id();
die t8('Cannot calculate Amount and Tax for this booking correctly, please check chart settings') unless $inv_calc;

# foreach tax.chart_id || $entry->{ta..id}
while (my ($tax_chart_id, $entry) = each %{ $inv_calc } ) {
Expand Down
2 changes: 1 addition & 1 deletion SL/DB/Helper/SalesPurchaseInvoice.pm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sub get_tax_and_amount_by_tax_chart_id {
next if $transaction->chart_link =~ m/(^${ARAP}$|paid)/;
next unless $transaction->chart_link;
my $tax_or_netamount = $transaction->chart_link =~ m/tax/ ? 'tax'
: $transaction->chart_link =~ m/(${ARAP}_amount|IC_cogs)/ ? 'netamount'
: $transaction->chart_link =~ m/(${ARAP}_amount|IC_cogs|IC)/ ? 'netamount'
: undef;
if ($tax_or_netamount eq 'netamount') {
$tax_and_amount_by_tax_id->{ $transaction->tax->chart_id }->{$tax_or_netamount} ||= 0;
Expand Down
1 change: 1 addition & 0 deletions locale/de/all
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ $self->{texts} = {
'Cannot Post AP transaction with tax included!' => 'Kann diesen kreditorischen Beleg nicht mit "Steuer im Preis inbegriffen" verbuchen!',
'Cannot add Booking, reason: #1 DB: #2 ' => 'Kann die Buchung nicht hinzufügen, Grund: #1 DB: #2',
'Cannot allocate parts.' => 'Es sind nicht genügend Artikel vorhanden',
'Cannot calculate Amount and Tax for this booking correctly, please check chart settings' => 'Kann nicht den Skonto-Betrag Brutto und netto kalkulieren. Bitte prüfen Sie die entsprechenden Kontenkonfigurationen für diesen Beleg',
'Cannot change transaction in a closed period!' => 'In einem bereits abgeschlossenen Zeitraum kann keine Buchung verändert werden!',
'Cannot check correct WebDAV folder' => 'Kann nicht den richtigen WebDAV Pfad überprüfen',
'Cannot convert date.' => 'Kann das Datum nicht verarbeiten',
Expand Down

0 comments on commit f337e7b

Please sign in to comment.