phpgroupware-cvs
[Top][All Lists]
Advanced

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

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


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

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

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

Log Message:
no message
=====================================================================
Index: property/inc/class.uipricebook.inc.php
diff -u property/inc/class.uipricebook.inc.php:1.1.1.1 
property/inc/class.uipricebook.inc.php:1.1.1.2
--- property/inc/class.uipricebook.inc.php:1.1.1.1      Fri Apr 23 13:14:10 2004
+++ property/inc/class.uipricebook.inc.php      Sun May 30 19:10:31 2004
@@ -49,9 +49,10 @@
                        $this->nextmatchs                       = 
CreateObject('phpgwapi.nextmatchs');
 
                        $this->bo                                       = 
CreateObject($this->currentapp.'.bopricebook',True);
-                       $this->bocommon                                 = 
CreateObject($this->currentapp.'.bocommon');
+                       $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            = '.pricebook';
@@ -725,7 +726,7 @@
                        $num_records    = count($pricebook_list);
 
 
-                       $vendor_data = 
$this->contacts->read_single_entry($vendor_id,array('org_name'=>'org_name'));
+                       $vendor_data = 
$this->contacts->read_single(array('actor_id'=>$vendor_id));
                        $activity = 
$this->bo->read_single_activity($activity_id);
 
                        $msgbox_data = $this->bocommon->msgbox_data($receipt);
@@ -748,7 +749,7 @@
                                'lang_vendor'                                   
=> lang('Vendor'),
                                'lang_activity'                                 
=> lang('Activity'),
 
-                               'value_vendor_name'                             
=> $vendor_data[0]['org_name'],
+                               'value_vendor_name'                             
=> $vendor_data['org_name'],
                                'value_activity_id'                             
=> $activity_id,
                                'value_activity_code'                   => 
$activity['num'],
                                'value_vendor_id'                               
=> $vendor_id,




reply via email to

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