From: Moritz Bunkus Date: Thu, 22 Jan 2015 14:40:32 +0000 (+0100) Subject: FlattenToForm: in Rechnungen Positions-reqdate als reqdate & deliverydate_oe bereitst... X-Git-Tag: release-3.2.0beta~43^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=de7609414010f5dfa6c47091633a6319d0106c48;p=kivitendo-erp.git FlattenToForm: in Rechnungen Positions-reqdate als reqdate & deliverydate_oe bereitstellen So macht es IS.pm nämlich auch. --- diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index 1e6ab9bc6..0b2c5e93e 100644 --- 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_', '');