Open ERP Forum
   IndexIndex   SearchSearch     RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   RSSRSS   Mailing ListMailing List   Log inLog in 

report-openoffice: random debit,credit printing
 
Post new topic   Reply to topic    Open Object Forum Index -> Reporting development
View previous topic :: View next topic  
Author Message
ferdinand



Joined: 17 Sep 2005
Posts: 636

PostPosted: Wed Mar 03, 2010 9:31 am    Post subject: report-openoffice: random debit,credit printing Reply with quote

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 ?
Back to top
View user's profile Send private message
sraps



Joined: 09 Jul 2008
Posts: 313

PostPosted: Wed Mar 03, 2010 11:04 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ferdinand



Joined: 17 Sep 2005
Posts: 636

PostPosted: Wed Mar 03, 2010 11:30 am    Post subject: Reply with quote

it seems to be a problem starting the report from Koo
GTK and WEB work fine
Back to top
View user's profile Send private message
ferdinand



Joined: 17 Sep 2005
Posts: 636

PostPosted: Mon Mar 08, 2010 9:07 pm    Post subject: Reply with quote

how can I check which parameters / context are passed to openoffice report ?
Back to top
View user's profile Send private message
ferdinand



Joined: 17 Sep 2005
Posts: 636

PostPosted: Mon Mar 08, 2010 10:57 pm    Post subject: Reply with quote

setting postgresql.conf
log_statement = 'all'
shows the statements
see problem description
https://bugs.launchpad.net/openobject-client-kde/+bug/531212
Back to top
View user's profile Send private message
sraps



Joined: 09 Jul 2008
Posts: 313

PostPosted: Tue Mar 09, 2010 10:43 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open Object Forum Index -> Reporting development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum