bzr revid: fp@tinyerp.com-20090119103557-itajribr7h1dgu33
This commit is contained in:
Fabien Pinckaers 2009-01-19 11:35:57 +01:00
parent 50e5495fe2
commit d464448ced
3 changed files with 7 additions and 3 deletions

View File

@ -8,7 +8,7 @@
<field name="inherit_id" ref="account.view_partner_property_form"/>
<field name="arch" type="xml">
<field name="property_account_position" position="after">
<label string="VAT :" align="1.0"/>
<label string="VAT: " align="1.0"/>
<group colspan="1" col="2">
<field name="vat" nolabel="1" on_change="vat_change(vat)" select="2"/>
<field name="vat_subjected" nolabel="1"/>

Binary file not shown.

View File

@ -138,6 +138,7 @@ def sumCreditor_start_stop(cr,uid,account_from_in,account_to_in,date_start,date_
resultAccount =cr.execute(queryAccount)
rows =cr.fetchall()
query = None
for row in rows:
query="""
select sum(debit),sum(credit)
@ -151,8 +152,11 @@ def sumCreditor_start_stop(cr,uid,account_from_in,account_to_in,date_start,date_
and account_period.date_start >='""" + date_start + """'
and account_period.date_stop <= '""" + date_stop + """'
"""
result=cr.execute(query)
row2 =cr.fetchone()
if query:
result=cr.execute(query)
row2 =cr.fetchone()
else:
row2 = (0.0,0.0)
try:
if row2[1] - row2[0] > 0:
sumCreditor = sumCreditor + (row2[1] - row2[0])