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:
24e7a52
)
Verkaufspreis in select_item korrekt anzeigen
author
Jan Büren
<jan@kivitendo-premium.de>
Wed, 2 Dec 2015 08:12:29 +0000
(09:12 +0100)
committer
Jan Büren
<jan@kivitendo-premium.de>
Wed, 2 Dec 2015 08:12:29 +0000
(09:12 +0100)
behebt #111 Verkaufspreis wurde nur angezeigt, falls ein Preisfaktor
definiert war.
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
f42db46
..
26fb98e
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-507,7
+507,8
@@
sub select_item {
$::form->header;
my @item_list = map {
- $_->{display_sellprice} /= $_->{price_factor} if ($_->{price_factor});
+ # maybe there is a better backend function or way to calc
+ $_->{display_sellprice} = ($_->{price_factor}) ? $_->{sellprice} / $_->{price_factor} : $_->{sellprice};
$_;
} @{ $::form->{item_list} };