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:
9a076af
)
FlattenToForm: in Rechnungen Positions-reqdate als reqdate & deliverydate_oe bereitst...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 22 Jan 2015 14:40:32 +0000
(15:40 +0100)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 22 Jan 2015 14:41:59 +0000
(15:41 +0100)
So macht es IS.pm nämlich auch.
SL/DB/Helper/FlattenToForm.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Helper/FlattenToForm.pm
b/SL/DB/Helper/FlattenToForm.pm
index
1e6ab9b
..
0b2c5e9
100644
(file)
--- a/
SL/DB/Helper/FlattenToForm.pm
+++ b/
SL/DB/Helper/FlattenToForm.pm
@@
-70,6
+70,11
@@
sub flatten_to_form {
_copy($item->project, $form, 'project', "_${idx}", 0, qw(number description)) if _has($item, 'project_id');
_copy_custom_variables($item, $form, 'ic_cvar_', "_${idx}");
+
+ if (ref($self) eq 'SL::DB::Invoice') {
+ $form->{"deliverydate_oe_${idx}"} = $item->deliverydate->to_lxoffice;
+ $form->{"reqdate_${idx}"} = $item->deliverydate->to_lxoffice;
+ }
}
_copy_custom_variables($self, $form, 'vc_cvar_', '');