fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [9064] propery: pdf sender


From: Sigurd Nes
Subject: [Fmsystem-commits] [9064] propery: pdf sender
Date: Thu, 29 Mar 2012 07:26:00 +0000

Revision: 9064
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9064
Author:   sigurdne
Date:     2012-03-29 07:25:59 +0000 (Thu, 29 Mar 2012)
Log Message:
-----------
propery: pdf sender

Modified Paths:
--------------
    trunk/property/inc/class.uiwo_hour.inc.php

Modified: trunk/property/inc/class.uiwo_hour.inc.php
===================================================================
--- trunk/property/inc/class.uiwo_hour.inc.php  2012-03-29 07:23:20 UTC (rev 
9063)
+++ trunk/property/inc/class.uiwo_hour.inc.php  2012-03-29 07:25:59 UTC (rev 
9064)
@@ -1941,11 +1941,15 @@
 
                        $invoice_address = lang('invoice address') . 
":\n{$this->config->config_data['invoice_address']}";
 
+                       
$GLOBALS['phpgw']->preferences->set_account_id($common_data['workorder']['user_id'],
 true);
+
+                       $from_name =    
$GLOBALS['phpgw']->accounts->get($common_data['workorder']['user_id'])->__toString();
+
                        $from = lang('date') . ": {$date}\n";
                        $from .= lang('dimb') .": 
{$common_data['workorder']['ecodimb']}\n";
-                       $from .= lang('from') . ":\n   
{$GLOBALS['phpgw_info']['user']['fullname']}";
-                       $from .= "\n   
{$GLOBALS['phpgw_info']['user']['preferences']['property']['email']}";
-                       $from .= "\n   
{$GLOBALS['phpgw_info']['user']['preferences']['property']['cellphone']}";
+                       $from .= lang('from') . ":\n   {$from_name}";
+                       $from .= "\n   
{$GLOBALS['phpgw']->preferences->data['property']['email']}";
+                       $from .= "\n   
{$GLOBALS['phpgw']->preferences->data['property']['cellphone']}";
 
                        $data = array
                                (




reply via email to

[Prev in Thread] Current Thread [Next in Thread]