It is currently Sun Feb 12, 2012 7:24 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: report-openoffice: random debit,credit printing
PostPosted: Wed Mar 03, 2010 9:31 am 
Offline

Joined: Sat Sep 17, 2005 7:51 pm
Posts: 648
we had to adapt invoices and print all unreconciled invoices

o is the invoice

Code:
..
for each="l in o.partner_id.other_move_line_ids"
..l.debit , l.credit
/for
(o.partner_id.debit-o.partner_id.credit)
...


the unreconciled invoices (moves) are printed correctly, but the balance (debit - credit returns random results - mostly the value of the last
line, rarely the correct balance, sometimes first line debit - last line credit.
the partner financial account tab shoes the correct payables and receivables

any idea ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 03, 2010 11:04 am 
Offline

Joined: Wed Jul 09, 2008 6:31 pm
Posts: 441
1. What type (model) of object is "o"? Do you have loop on "objects" - something like:

for each="o in objects"

otherwise ...if you use "o" directly, still "printing" list of multiple objects, "o" will point to first object in a list.

2. What variable is not what you expect? (l.debit, l.credit or o.partner_id.debit-o.partner_id.credit)

Kaspars
-------------------------
http://kndati.lv


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 03, 2010 11:30 am 
Offline

Joined: Sat Sep 17, 2005 7:51 pm
Posts: 648
it seems to be a problem starting the report from Koo
GTK and WEB work fine


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 9:07 pm 
Offline

Joined: Sat Sep 17, 2005 7:51 pm
Posts: 648
how can I check which parameters / context are passed to openoffice report ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2010 10:57 pm 
Offline

Joined: Sat Sep 17, 2005 7:51 pm
Posts: 648
setting postgresql.conf
log_statement = 'all'
shows the statements
see problem description
https://bugs.launchpad.net/openobject-c ... bug/531212


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2010 10:43 am 
Offline

Joined: Wed Jul 09, 2008 6:31 pm
Posts: 441
It seems, that it is related purely to Koo client. Where some extra domain is being passed...


As we do not use Koo, I am afraid I will not be able to help in this.

Kaspars
------------------------
http://kndati.lv


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP