From de7609414010f5dfa6c47091633a6319d0106c48 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 22 Jan 2015 15:40:32 +0100 Subject: [PATCH] FlattenToForm: in Rechnungen Positions-reqdate als reqdate & deliverydate_oe bereitstellen MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit So macht es IS.pm nämlich auch. --- SL/DB/Helper/FlattenToForm.pm | 5 +++++ 1 file changed, 5 insertions(+) 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_', ''); -- 2.20.1