report_purchase_order is not generating

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: Re ports AP

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>You might want to check your mbstring settings, and your .htaccess  
>file for egroupware.
>Ours has mbstring.func_overload 0 for PHP, .htaccess has  
>mbstring.func_overload 7

Below my egroupware.conf file (is short)

egroupware.conf

And the part of php.ini related to mbstring
[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
; mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_encoding = Off



and a screenshot of egroupware setup

setup_dev.png

I'm trying to use the default configuration of egroupware.
Where should I change the settings to make them equal to yours?

Thanks and regards

Re: Re ports AP

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 26-May-09, at 6:40 AM, PCS-Lists wrote:

>
>> You might want to check your mbstring settings, and your .htaccess
>> file for egroupware.
>> Ours has mbstring.func_overload 0 for PHP, .htaccess has
>> mbstring.func_overload 7
>
> Below my egroupware.conf file (is short)
>
> http://www.nabble.com/file/p23722201/egroupware.conf egroupware.conf
>
> And the part of php.ini related to mbstring
> ...
> ; mbstring.func_overload = 0
> ...
> I'm trying to use the default configuration of egroupware.
> Where should I change the settings to make them equal to yours?

Looks close enough to me, but this exceeds my knowledge.
If your egroupware.conf is being respected, and that's the same  
as .htaccess, it _should_ work.
I have no other suggestions for this issue.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Re ports AP

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Looks close enough to me, but this exceeds my knowledge.
>If your egroupware.conf is being respected, and that's the same  
>as .htaccess, it _should_ work.
>I have no other suggestions for this issue.


Where .htaccess must to be and what content it should to have?

Re: Re ports AP

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 27-May-09, at 11:20 AM, PCS-Lists wrote:

>
>> Looks close enough to me, but this exceeds my knowledge.
>> If your egroupware.conf is being respected, and that's the same
>> as .htaccess, it _should_ work.
>> I have no other suggestions for this issue.
>
>
> Where .htaccess must to be and what content it should to have?

http://lmgtfy.com/?q=egroupware+.htaccess

4 of the top 10 have example .htaccess files.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Re ports AP

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> Looks close enough to me, but this exceeds my knowledge.
>> If your egroupware.conf is being respected, and that's the same
>> as .htaccess, it _should_ work.
>> I have no other suggestions for this issue.

Do you mind to send your config files for that I can compare with my? I will ask for help of egroupware developers about this question.

Thanks and regards.

Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 1-Jun-09, at 5:34 AM, PCS-Lists wrote:

> Do you mind to send your config files for that I can compare with my?

.htaccess:
php_value memory_limit 128M
php_value max_execution_time 60
php_flag register_globals Off
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
# settings for the file upload, you might increase them further
php_value upload_max_filesize 16M
# session handling: now the check for expired sessions is done on  
every 10th session creation
php_flag session.use_trans_sid Off
php_value session.gc_probability 1
php_value session.gc_divisor 10
# multibyte extension: needed for utf-8
php_value mbstring.func_overload 7

PHP info:
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 6135 6135
expose_php On On
extension_dir /usr/lib/php5/20060613+lfs /usr/lib/php5/20060613+lfs
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc Off On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 60 30
max_input_nesting_level 64 64
max_input_time 60 60
memory_limit 128M 128M
open_basedir no value no value
output_buffering no value no value
output_handler no value no value
post_max_size 8M 8M
precision 12 12
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
suhosin.log.phpscript 0 0
suhosin.log.phpscript.is_safe Off Off
suhosin.log.phpscript.name no value no value
suhosin.log.sapi no value no value
suhosin.log.script no value no value
suhosin.log.script.name no value no value
suhosin.log.syslog no value no value
suhosin.log.syslog.facility no value no value
suhosin.log.syslog.priority no value no value
suhosin.log.use-x-forwarded-for Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 16M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

bcmath
BCMath support enabled

bz2
BZip2 Support Enabled
Stream Wrapper support compress.bz2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.5, 10-Dec-2007

calendar
Calendar support enabled

ctype
ctype functions enabled

curl
cURL support enabled
cURL Information libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/
1.14 libssh2/1.0

date
date/time support enabled
"Olson" Timezone Database Version 0.system
Timezone Database internal
Default timezone System/Localtime

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dba
DBA support enabled
Supported handlers cdb cdb_make db4 inifile flatfile

dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.7.3
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.173.2.5.2.27 2008/12/31 11:17:37  
sebastian Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF

filter
Input Validation and Filtering enabled
Revision $Revision: 1.52.2.45 $

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value

ftp
FTP support enabled

gd
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

gettext
GetText Support enabled

gmp
gmp support enabled
GMP version 4.2.4

gnupg
gnupg support enabled
GPGme Version 1.1.8
Extension Version 1.3.1

hash
hash support enabled
Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128  
ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3  
tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32  
crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3  
haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5  
haval160,5 haval192,5 haval224,5 haval256,5

iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.9

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

json
json support enabled
json version 1.2.1

libxml
libXML support active
libXML Version 2.7.3
libXML streams enabled

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 4.4.4
Multibyte regex (oniguruma) backtrack check On

mbstring extension makes use of "streamable kanji code filter and  
converter", which is distributed under the GNU Lesser General Public  
License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

mime_magic
mime_magic support invalid magic file, disabled

Directive Local Value Master Value
mime_magic.debug Off Off
mime_magic.magicfile /usr/share/file/magic.mime /usr/share/file/
magic.mime

mysql
MySQL Support enabled
Active Persistent Links 3
Active Links 4
Client API version 5.0.51a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient_r

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

mysqli
MysqlI Support enabled
Client API library version 5.0.51a
Client API header version 5.0.81
MYSQLI_SOCKET /var/run/mysqld/mysqld.sock

Directive Local Value Master Value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8g 19 Oct 2007

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 7.8 2008-09-05

Directive Local Value Master Value
pcre.backtrack_limit 100000 100000
pcre.recursion_limit 100000 100000

PDO
PDO support enabled
PDO drivers mysql

pdo_mysql
PDO Driver for MySQL, client library version 5.0.51a

posix
Revision $Revision: 1.70.2.3.2.22 $

Reflection
Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33.2.55 2008/12/31 11:17:42  
sebastian Exp $

session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 10 100
session.gc_maxlifetime 14400 1440
session.gc_probability 1 0
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name sessionid PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/lib/php5 /var/lib/php5
session.serialize_handler php php
session.use_cookies Off On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

shmop
shmop support enabled

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.22.2.46 $
Schema support enabled

soap
Soap Client enabled
Soap Server enabled

Directive Local Value Master Value
soap.wsdl_cache 1 1
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_limit 5 5
soap.wsdl_cache_ttl 86400 86400

sockets
Sockets Support enabled

SPL
SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator,  
SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject,  
BadFunctionCallException, BadMethodCallException, CachingIterator,  
DirectoryIterator, DomainException, EmptyIterator, FilterIterator,  
InfiniteIterator, InvalidArgumentException, IteratorIterator,  
LengthException, LimitIterator, LogicException, NoRewindIterator,  
OutOfBoundsException, OutOfRangeException, OverflowException,  
ParentIterator, RangeException, RecursiveArrayIterator,  
RecursiveCachingIterator, RecursiveDirectoryIterator,  
RecursiveFilterIterator, RecursiveIteratorIterator,  
RecursiveRegexIterator, RegexIterator, RuntimeException,  
SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage,  
SplTempFileObject, UnderflowException, UnexpectedValueException

standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset=
a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent no value no value

sysvmsg
sysvmsg support enabled
Revision $Revision: 1.20.2.3.2.8 $

tokenizer
Tokenizer Support enabled

wddx
WDDX Support enabled
WDDX Session Serializer enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.7.3

xmlreader
XMLReader enabled

xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com

xmlwriter
XMLWriter enabled

zip
Zip enabled
Extension Version $Id: php_zip.c,v 1.1.2.49 2009/02/05 19:53:22  
pajoye Exp $
Zip version 1.8.11
Libzip version 0.9.0

zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.1
Linked Version 1.2.3.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value


Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't understood why on your .htaccess
php_value mbstring.func_overload 7

and on php.ini
mbstring.func_overload 0

Can you explain me?
Anyway, I made the change and our configuration are equal.
Then I tested to generate report_purchase_order and I got this:
An error happend: item before 'tel_work' is neither an object nor an array. Its type is NULL.
uncomenting debug_array it appears:

Array
(
    [order] => Array
        (
            [0] => Array
                (
                    [order_id] => 11
                    [our_reference] => 000197472000186-2009
                    [their_reference] =>
                    [comment] =>

                    [order_date] => 29/04/2009
                    [requested_delivery_date] => 05/05/2009 10:19
                    [subtotal] => 85,00
                    [total] => 85,00
                    [taxes] => Array
                        (
                        )

                    [terms] => 30 dias
                    [bill] => Array
                        (
                            [id] => 1400
                            [tid] => n
                            [owner] => -100
                            [private] => 0
                            [cat_id] =>
                            [n_family] =>
                            [n_given] =>
                            [n_middle] =>
                            [n_prefix] =>
                            [n_suffix] =>
                            [n_fn] =>
                            [n_fileas] => SKM - Mauá:  
                            [bday] =>
                            [org_name] => SKM - Mauá
                            [org_unit] =>
                            [title] =>
                            [role] =>
                            [assistent] =>
                            [room] =>
                            [adr_one_street] => Praça Mauá, 13- 8º andar - Centro
                            [adr_one_street2] =>
                            [adr_one_locality] => Rio de Janeiro
                            [adr_one_region] => RJ
                            [adr_one_postalcode] =>
                            [adr_one_countryname] => BRASIL
                            [label] =>
                            [adr_two_street] =>
                            [adr_two_street2] =>
                            [adr_two_locality] =>
                            [adr_two_region] =>
                            [adr_two_postalcode] =>
                            [adr_two_countryname] =>
                            [tel_work] => 2518-1507
                            [tel_cell] =>
                            [tel_fax] =>
                            [tel_assistent] =>
                            [tel_car] =>
                            [tel_pager] =>
                            [tel_home] =>
                            [tel_fax_home] =>
                            [tel_cell_private] =>
                            [tel_other] =>
                            [tel_prefer] =>
                            [email] =>
                            [email_home] =>
                            [url] =>
                            [url_home] =>
                            [freebusy_uri] =>
                            [calendar_uri] =>
                            [note] =>
                            [tz] => 0
                            [geo] =>
                            [pubkey] =>
                            [created] => 1231439673
                            [creator] => 500
                            [modified] => 1231439754
                            [modifier] => 500
                            [jpegphoto] =>
                            [account_id] =>
                            [etag] => 0
                            [uid] => addressbook-1400-af86d82c3a6c6deee556c1eac3226441
                            [photo] =>
                            [fileas_type] => org_name: n_given n_family
                        )

                    [ship] => Array
                        (
                            [id] => 1400
                            [tid] => n
                            [owner] => -100
                            [private] => 0
                            [cat_id] =>
                            [n_family] =>
                            [n_given] =>
                            [n_middle] =>
                            [n_prefix] =>
                            [n_suffix] =>
                            [n_fn] =>
                            [n_fileas] => SKM - Mauá:  
                            [bday] =>
                            [org_name] => SKM - Mauá
                            [org_unit] =>
                            [title] =>
                            [role] =>
                            [assistent] =>
                            [room] =>
                            [adr_one_street] => Praça Mauá, 13- 8º andar - Centro
                            [adr_one_street2] =>
                            [adr_one_locality] => Rio de Janeiro
                            [adr_one_region] => RJ
                            [adr_one_postalcode] =>
                            [adr_one_countryname] => BRASIL
                            [label] =>
                            [adr_two_street] =>
                            [adr_two_street2] =>
                            [adr_two_locality] =>
                            [adr_two_region] =>
                            [adr_two_postalcode] =>
                            [adr_two_countryname] =>
                            [tel_work] => 2518-1507
                            [tel_cell] =>
                            [tel_fax] =>
                            [tel_assistent] =>
                            [tel_car] =>
                            [tel_pager] =>
                            [tel_home] =>
                            [tel_fax_home] =>
                            [tel_cell_private] =>
                            [tel_other] =>
                            [tel_prefer] =>
                            [email] =>
                            [email_home] =>
                            [url] =>
                            [url_home] =>
                            [freebusy_uri] =>
                            [calendar_uri] =>
                            [note] =>
                            [tz] => 0
                            [geo] =>
                            [pubkey] =>
                            [created] => 1231439673
                            [creator] => 500
                            [modified] => 1231439754
                            [modifier] => 500
                            [jpegphoto] =>
                            [account_id] =>
                            [etag] => 0
                            [uid] => addressbook-1400-af86d82c3a6c6deee556c1eac3226441
                            [photo] =>
                            [fileas_type] => org_name: n_given n_family
                        )

                    [our_contact] =>
                    [their_contact] => Array
                        (
                            [id] => 1405
                            [tid] => n
                            [owner] => -100
                            [private] => 0
                            [cat_id] => 92
                            [n_family] =>
                            [n_given] => Meg / Roberto
                            [n_middle] =>
                            [n_prefix] =>
                            [n_suffix] =>
                            [n_fn] => Meg / Roberto
                            [n_fileas] => Sort-Rio Comércio Representações Ltda: Meg / Roberto
                            [bday] =>
                            [org_name] => Sort-Rio Comércio Representações Ltda
                            [org_unit] =>
                            [title] =>
                            [role] => Materiais Moeller
                            [assistent] =>
                            [room] =>
                            [adr_one_street] => Rua Andrade Figueira,  Nº 648 - LJ.
                            [adr_one_street2] =>
                            [adr_one_locality] => Madureira - Rio de janeiro
                            [adr_one_region] => 21360-230
                            [adr_one_postalcode] =>
                            [adr_one_countryname] => BRASIL
                            [label] =>
                            [adr_two_street] =>
                            [adr_two_street2] =>
                            [adr_two_locality] =>
                            [adr_two_region] =>
                            [adr_two_postalcode] =>
                            [adr_two_countryname] =>
                            [tel_work] => 3369-7575 / 3350-1454 / 33814773
                            [tel_cell] =>
                            [tel_fax] =>
                            [tel_assistent] =>
                            [tel_car] =>
                            [tel_pager] =>
                            [tel_home] =>
                            [tel_fax_home] =>
                            [tel_cell_private] =>
                            [tel_other] =>
                            [tel_prefer] =>
                            [email] => meg@sortrio.com.br
                            [email_home] =>
                            [url] => sortrio@sortrio.com.br
                            [url_home] => sortrio@veloxmail.com.br
                            [freebusy_uri] =>
                            [calendar_uri] =>
                            [note] =>
                            [tz] => 0
                            [geo] =>
                            [pubkey] =>
                            [created] => 1232027087
                            [creator] => 574
                            [modified] => 1239627651
                            [modifier] => 574
                            [jpegphoto] =>
                            [account_id] =>
                            [etag] => 3
                            [uid] => addressbook-1405-af86d82c3a6c6deee556c1eac3226441
                            [photo] =>
                            [fileas_type] => org_name: n_given n_family
                        )

                    [pay] => Array
                        (
                            [id] => 1405
                            [tid] => n
                            [owner] => -100
                            [private] => 0
                            [cat_id] => 92
                            [n_family] =>
                            [n_given] => Meg / Roberto
                            [n_middle] =>
                            [n_prefix] =>
                            [n_suffix] =>
                            [n_fn] => Meg / Roberto
                            [n_fileas] => Sort-Rio Comércio Representações Ltda: Meg / Roberto
                            [bday] =>
                            [org_name] => Sort-Rio Comércio Representações Ltda
                            [org_unit] =>
                            [title] =>
                            [role] => Materiais Moeller
                            [assistent] =>
                            [room] =>
                            [adr_one_street] => Rua Andrade Figueira,  Nº 648 - LJ.
                            [adr_one_street2] =>
                            [adr_one_locality] => Madureira - Rio de janeiro
                            [adr_one_region] => 21360-230
                            [adr_one_postalcode] =>
                            [adr_one_countryname] => BRASIL
                            [label] =>
                            [adr_two_street] =>
                            [adr_two_street2] =>
                            [adr_two_locality] =>
                            [adr_two_region] =>
                            [adr_two_postalcode] =>
                            [adr_two_countryname] =>
                            [tel_work] => 3369-7575 / 3350-1454 / 33814773
                            [tel_cell] =>
                            [tel_fax] =>
                            [tel_assistent] =>
                            [tel_car] =>
                            [tel_pager] =>
                            [tel_home] =>
                            [tel_fax_home] =>
                            [tel_cell_private] =>
                            [tel_other] =>
                            [tel_prefer] =>
                            [email] => meg@sortrio.com.br
                            [email_home] =>
                            [url] => sortrio@sortrio.com.br
                            [url_home] => sortrio@veloxmail.com.br
                            [freebusy_uri] =>
                            [calendar_uri] =>
                            [note] =>
                            [tz] => 0
                            [geo] =>
                            [pubkey] =>
                            [created] => 1232027087
                            [creator] => 574
                            [modified] => 1239627651
                            [modifier] => 574
                            [jpegphoto] =>
                            [account_id] =>
                            [etag] => 3
                            [uid] => addressbook-1405-af86d82c3a6c6deee556c1eac3226441
                            [photo] =>
                            [fileas_type] => org_name: n_given n_family
                        )

                )

        )

    [11_taxes] => Array
        (
        )

    [11_line] => Array
        (
            [0] => Array
                (
                    [line_number] => 0
                    [stock_id] =>
                    [supplier_stock_code] => 001
                    [our_stock_code] =>
                    [description] => Produto 1
                    [quantity_ordered] => 5
                    [unit_price] => 17,00
                    [ship_location] =>
                    [link] => Array
                        (
                            [0] => Array
                                (
                                    [app] => perp_ap
                                    [id] => ORDER-11
                                )

                        )

                    [item_code] => 001
                    [received_date] =>
                    [invoiced_date] =>
                    [gl_account] =>
                    [quantity_invoiced] =>
                    [quantity_received] =>
                    [completed] =>
                    [status] => Array
                        (
                            [0] =>
                            [1] => Array
                                (
                                    [0] => 11
                                    [order_id] => 11
                                    [1] => 001
                                    [supplier_stock_code] => 001
                                    [2] => SHIPMENT
                                    [type] => SHIPMENT
                                    [3] => 000197472000186-2-20
                                    [our_reference_number] => 000197472000186-2-20
                                    [4] => 2
                                    [reference_id] => 2
                                    [5] => 11
                                    [related_id] => 11
                                    [6] => 5
                                    [quantity] => 5
                                    [history_name] => Shipment
                                    [reference] => Array
                                        (
                                            [app] => perp_ap
                                            [id] => SHIPMENT-2
                                            [title] => 000197472000186-2-20
                                        )

                                )

                            [2] => Array
                                (
                                    [0] => 11
                                    [order_id] => 11
                                    [1] => 001
                                    [supplier_stock_code] => 001
                                    [2] => RECEIVED
                                    [type] => RECEIVED
                                    [3] => 2009-05-08 08:57:31
                                    [our_reference_number] => 2009-05-08 08:57:31
                                    [4] => 1
                                    [reference_id] => 1
                                    [5] => 11
                                    [related_id] => 11
                                    [6] => 5
                                    [quantity] => 5
                                    [history_name] => Received
                                    [reference] => Array
                                        (
                                            [app] => perp_ap
                                            [id] => RECEIVED-1
                                            [title] => 2009-05-08 08:57:31
                                        )

                                )

                        )

                    [line_no] => 0
                    [extended_cost] => 85.00
                    [formatted_extended_cost] => 85,00
                    [our_unit_of_measure] => Array
                        (
                            [7] => Cada
                        )

                    [line_price] => 85,00
                )

        )

    [11_0_detail] => Array
        (
        )

    [images] => Array
        (
            [0] => Array
                (
                    [name] => company_logo
                    [path] =>
                    [width] =>
                    [height] =>
                )

        )

)



Trying to generate a report of another purchase order, a similar happened, but with an "iten before 'n_fileas' "

Do you have some idea of explain?

Thanks once more!

Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 1-Jun-09, at 9:06 AM, PCS-Lists wrote:

>
> I don't understood why on your .htaccess
> php_value mbstring.func_overload 7
>
> and on php.ini
> mbstring.func_overload 0
>
> Can you explain me?

No, I cannot.  I did not set up this system, I do not know the  
reasoning behind the configuration.
I do not know if this is the reason why it works for me and not for you.
I do know that it works on this system.


> Anyway, I made the change and our configuration are equal.
> Then I tested to generate report_purchase_order and I got this:
> An error happend: item before 'tel_work' is neither an object nor an  
> array.
> Its type is NULL....
>                    [our_contact] =>
>                    [their_contact] => Array
>                        (
>                            [id] => 1405...
> Trying to generate a report of another purchase order, a similar  
> happened,
> but with an "iten before 'n_fileas' "
>
> Do you have some idea of explain?

I'd guess missing your 'our_contact' address.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>I'd guess missing your 'our_contact' address.

There is an 'our_contact' address set for the purchase order, but when I try to change it for another contact in the list and save, the field returns to the anterior contact. How the list of possible 'our_contatcts' is built and how can I change it?

Another doubt: when I select a supplier in perp_ap>>reports>>report_purchase_order, all the purchase order appears in the field below, and not only the purchase orders of the selected supplier. Is it normal?


Thanks

Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 1-Jun-09, at 12:06 PM, PCS-Lists wrote:

>
>> I'd guess missing your 'our_contact' address.
>
> How the list of possible 'our_contatcts' is built and
> how can I change it?

It uses the addressbook entries of your user accounts.

> Another doubt: when I select a supplier in
> perp_ap>>reports>>report_purchase_order, all the purchase order  
> appears in
> the field below, and not only the purchase orders of the selected  
> supplier.
> Is it normal?


That is not the desired behaviour.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>It uses the addressbook entries of your user accounts.

Ok, but the changes are not saved. Anyway, there is a contact selected and that error still happens.
What can we do?

>> Another doubt: when I select a supplier in
>> perp_ap>>reports>>report_purchase_order, all the purchase order  
>> appears in
>> the field below...

>That is not the desired behaviour.

It happens with all installations that I tested. My perp is svn rev. 3535

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Ok, but the changes are not saved. Anyway, there is a contact selected and that error still happens.

Is there a place where the "our_contact" is set by default? Because don't mind wich contact I select, when I save the purchase order it always returns to the same.

Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 12-Jun-09, at 8:15 AM, PCS-Lists wrote:

>
>> Ok, but the changes are not saved. Anyway, there is a contact  
>> selected and
> that error still happens.
>
> Is there a place where the "our_contact" is set by default? Because  
> don't
> mind wich contact I select, when I save the purchase order it always  
> returns
> to the same.

Our contact should default to the user who creates the PO.
There is a default for Bill To, set in Admin -> AP -> Site  
Configuration.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>Our contact should default to the user who creates the PO.
>There is a default for Bill To, set in Admin -> AP -> Site  
>Configuration.

The our contact that appears (and is inalterable) is not the user that created the PO.
Moreover, is there a relation between bill to and our contact? I already changed default bill to, but it not made any difference for the "our_contact" behaviour.

Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 12-Jun-09, at 9:57 AM, PCS-Lists wrote:

>
>> Our contact should default to the user who creates the PO.
>> There is a default for Bill To, set in Admin -> AP -> Site
>> Configuration.
>
> The our contact that appears (and is inalterable) is not the user that
> created the PO.

That points to the problem.
Where do you store your contacts?  SQL or LDAP?  Shouldn't make a  
difference, but it might.
Check out perp_api/inc/class.ui_perp_order.inc.php around line 539,  
and see what it's coming up with for who is in your list of contact  
people.

> Moreover, is there a relation between bill to and our contact?

No relation.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>That points to the problem.
>Where do you store your contacts?  SQL or LDAP?  Shouldn't make a  
>difference, but it might.
>Check out perp_api/inc/class.ui_perp_order.inc.php around line 539,  
>and see what it's coming up with for who is in your list of contact  
>people.

protected function get_selectbox_options(Order &$order) {
                        $options = array();
                $our_contacts = ExecMethod2('addressbook.addressbook_bo.search', '', true, '', '', false, '', '', false, array('owner' => 0));
                        foreach($our_contacts as $contact) {
                                $options['our_contact_person'][$contact['id']] = egw_link::title('addressbook', $contact['id']);
                        }





Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 12-Jun-09, at 12:08 PM, PCS-Lists wrote:

>> Check out perp_api/inc/class.ui_perp_order.inc.php around line 539,
>> and see what it's coming up with for who is in your list of contact
>> people.
>
> protected function get_selectbox_options(Order &$order) {
>                        $options = array();
>                $our_contacts =
> ExecMethod2('addressbook.addressbook_bo.search', '', true, '', '',  
> false,
> '', '', false, array('owner' => 0));...

Um... You know I have access to the code, right?  I wrote it.

You need to find out what is IN $our_contacts.  _debug_array() or  
var_dump() will help.
Your homework for the weekend is to find out what is in $our_contacts,  
and see how it is related to, and different from, what you expect.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>You need to find out what is IN $our_contacts.  _debug_array() or  
>var_dump() will help.
>Your homework for the weekend is to find out what is in $our_contacts,  
>and see how it is related to, and different from, what you expect.

Nathan,

forgive me for last answer, barriers of language!
I included var_dump($data) on perp_ap/inc/report/class.purchase_order.inc.php (line 99) and it returns a file where ["our_contact"]=>  NULL
but there is an our contact selected for the PO. What happen is that I can't change the our contact selected for none PO, because after I change it and save, it returns to the same anterior contact and both _debug_array() and var_dump() shows [our_contact]=> NULL (or blank).

This is the screenshot of PO: PO.jpeg
The Our Contact it always "ABC ELETRO"

Is it the answer for your last question? Does it help?

Forgive me once more. Thanks and regards.

Re: Special characters in reports

by Nathan Gray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 16-Jun-09, at 6:51 AM, PCS-Lists wrote:

>
>> You need to find out what is IN $our_contacts.  _debug_array() or
>> var_dump() will help.
>> Your homework for the weekend is to find out what is in  
>> $our_contacts,
>> and see how it is related to, and different from, what you expect.
>
> Nathan,
>
> forgive me for last answer, barriers of language!
> I included var_dump($data) on
> perp_ap/inc/report/class.purchase_order.inc.php (line 99) and it  
> returns a
> file where ["our_contact"]=>  NULL

I'm assuming that ABC Electro Electronic  Ltd. is not an employee of  
PCS.
Please do
var_dump($options['our_contact_person']);
in perp_api/inc/class.ui_perp_order.inc.php, around line 539 and tell  
me about that list.
It's supposed to be a list of people at your organisation.  If it is  
not, you need to figure out what you're doing differently.  Do you  
store contacts in LDAP?  Do you give a user account to every company?

> but there is an our contact selected for the PO. ...
> var_dump() shows [our_contact]=> NULL (or blank).

This indicates that you're probably not getting _any_ contact saved,  
which could cause errors later on.

Nathan Gray
nathan at goarctic dot com


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Perp-developers mailing list
Perp-developers@...
https://lists.sourceforge.net/lists/listinfo/perp-developers

Re: Special characters in reports

by PCS-Lists :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>I'm assuming that ABC Electro Electronic  Ltd. is not an employee of  
>PCS.

To say the true, the contact is: "ABC Electro Electronic  Ltd. - Name_of_person" but I erased this name on screenshot, only for privacy. This is really a contact of an employee.

>Please do
>var_dump($options['our_contact_person']);
>in perp_api/inc/class.ui_perp_order.inc.php, around line 539 and tell  
>me about that list.
>It's supposed to be a list of people at your organisation.  If it is  
>not, you need to figure out what you're doing differently.  

in perp_ap>>purchase_orders>> when clicking in a purchase order it shows a list that starts with
array(110) { ["username"]=>  string(47) "ABC ELETRO ELETRONIC LTD: name of contact"
and contains all my users contacts. I observed that the first contact (string(47) above) is the same that appears (and I can't change) in all my purchase orders.

>Do you store contacts in LDAP?

I already stored contacts in LDAP in the past so is possible that still there are some entries, but now the contacts are in MYSQL.

>Do you give a user account to every company?

No.
< Prev | 1 - 2 | Next >