projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a832d0e
)
GoBD: credit/debit_amount formatieren
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 23 Nov 2015 16:50:01 +0000
(17:50 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Fri, 28 Oct 2016 15:11:20 +0000
(17:11 +0200)
SL/GoBD.pm
patch
|
blob
|
history
diff --git
a/SL/GoBD.pm
b/SL/GoBD.pm
index
40998a2
..
7fbc271
100644
(file)
--- a/
SL/GoBD.pm
+++ b/
SL/GoBD.pm
@@
-448,9
+448,6
@@
sub do_datev_csv_export {
$haben->{notes} //= '';
$haben->{notes} = SL::HTML::Util->strip($haben->{notes});
$haben->{notes} //= '';
$haben->{notes} = SL::HTML::Util->strip($haben->{notes});
- my $net_amount = defined $amount->{net_amount}
- ? $::form->format_amount($myconfig, abs($amount->{net_amount}), 5)
- : 0;
my $tax_amount = defined $amount->{net_amount}
? $::form->format_amount($myconfig, abs($amount->{amount}) - abs($amount->{net_amount}), 5)
: 0;
my $tax_amount = defined $amount->{net_amount}
? $::form->format_amount($myconfig, abs($amount->{amount}) - abs($amount->{net_amount}), 5)
: 0;
@@
-459,11
+456,11
@@
sub do_datev_csv_export {
amount => $::form->format_amount($myconfig, abs($amount->{amount}),5),
debit_accno => $soll->{accno},
debit_accname => $soll->{accname},
amount => $::form->format_amount($myconfig, abs($amount->{amount}),5),
debit_accno => $soll->{accno},
debit_accname => $soll->{accname},
- debit_amount =>
-$soll->{amount}
,
+ debit_amount =>
$::form->format_amount($myconfig, abs(-$soll->{amount}),5)
,
debit_tax => $soll->{tax_accno} ? $tax_amount : 0,
credit_accno => $haben->{accno},
credit_accname => $haben->{accname},
debit_tax => $soll->{tax_accno} ? $tax_amount : 0,
credit_accno => $haben->{accno},
credit_accname => $haben->{accname},
- credit_amount => $
haben->{amount}
,
+ credit_amount => $
::form->format_amount($myconfig, abs($haben->{amount}),5),
,
credit_tax => $haben->{tax_accno} ? $tax_amount : 0,
tax => $tax_amount,
notes => $haben->{notes},
credit_tax => $haben->{tax_accno} ? $tax_amount : 0,
tax => $tax_amount,
notes => $haben->{notes},