phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc/class.uiXport.inc.php, 1.1.1.2


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.uiXport.inc.php, 1.1.1.2
Date: Sun, 30 May 2004 21:10:31 +0200

Update of /property/inc
Modified Files:
        Branch: 
          class.uiXport.inc.php

date: 2004/05/30 19:10:31;  author: sigurdne;  state: Exp;  lines: +6 -5

Log Message:
no message
=====================================================================
Index: property/inc/class.uiXport.inc.php
diff -u property/inc/class.uiXport.inc.php:1.1.1.1 
property/inc/class.uiXport.inc.php:1.1.1.2
--- property/inc/class.uiXport.inc.php:1.1.1.1  Fri Apr 23 13:14:10 2004
+++ property/inc/class.uiXport.inc.php  Sun May 30 19:10:31 2004
@@ -41,7 +41,8 @@
                        $this->invoice  = 
CreateObject($this->currentapp.'.boinvoice');
                        $this->bocommon  = 
CreateObject($this->currentapp.'.bocommon');
                        $this->menu                                     = 
CreateObject($this->currentapp.'.menu');
-                       $this->contacts         = 
CreateObject('phpgwapi.contacts');
+                       $this->contacts                         = 
CreateObject($this->currentapp.'.soactor');
+                       $this->contacts->role           = 'vendor';
 
                        $this->acl2                             = 
CreateObject($this->currentapp.'.acl2');
                        $this->acl2_location            = '.invoice';
@@ -304,7 +305,7 @@
 
 
                                'lang_vendor'                                   
=> lang('Vendor'),
-                               'addressbook_link'                              
=> 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uilookup.addressbook'),
+                               'addressbook_link'                              
=> 
$GLOBALS['phpgw']->link('/index.php','menuaction='.$this->currentapp.'.uilookup.vendor'),
 
                                'lang_invoice_date_statustext'  => lang('Enter 
the invoice date'),
                                'lang_num_days_statustext'              => 
lang('Enter the payment date or the payment delay'),
@@ -445,7 +446,7 @@
 
                        );
 
-                       $vendor                                         = 
$this->contacts->read_single_entry($table[1]['spvend_code'],array('org_name'=>'org_name'));
+                       $vendor = 
$this->contacts->read_single(array('actor_id'=>$table[1]['spvend_code']));
 
                        $data = array
                        (
@@ -455,7 +456,7 @@
                                'lang_bilagsnr'                                 
=> lang('bilagsnr'),
                                'bilagsnr'                                      
        => $table[1]['bilagsnr'],
                                'lang_vendor'                                   
=> lang('Vendor'),
-                               'vendor_name'                                   
=> $vendor[0]['org_name'],
+                               'vendor_name'                                   
=> $vendor['org_name'],
                                'spvend_code'                                   
=> $table[1]['spvend_code'],
                                'lang_fakturadato'                              
=> lang('invoice date'),
                                'fakturadato'                                   
=> $table[1]['fakturadato'],




reply via email to

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