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:
2f2bdb8
)
Kundenrabatte bei select_item/item_selected beachten
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 9 Jan 2012 13:01:34 +0000
(14:01 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 9 Jan 2012 13:01:34 +0000
(14:01 +0100)
Fix zu Bug 1762.
bin/mozilla/io.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/io.pl
b/bin/mozilla/io.pl
index
b42ddde
..
f73c179
100644
(file)
--- a/
bin/mozilla/io.pl
+++ b/
bin/mozilla/io.pl
@@
-543,6
+543,11
@@
sub item_selected {
$form->{"sellprice_$i"} =
$form->round_amount($form->{"sellprice_$i"}, $decimalplaces);
}
+
+ # tradediscount
+ if ($::form->{tradediscount}) {
+ $::form->{"sellprice_$i"} *= 1 - $::form->{tradediscount};
+ }
}
map { $form->{$_} = $form->parse_amount(\%myconfig, $form->{$_}) }