Commit e8f7100d authored by Thierry's avatar Thierry

bug fix in buildInvoiceList in case of destination_section has no default_address


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@580 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe6ebbac
...@@ -419,9 +419,13 @@ une liste de mouvements...""" ...@@ -419,9 +419,13 @@ une liste de mouvements..."""
invoice.setProperty(key, order.getProperty(key)) invoice.setProperty(key, order.getProperty(key))
# Define VAT recoverability # Define VAT recoverability
if invoice.getDestinationSectionValue().getDefaultAddress().getRegion() in ('Europe/Nord/France',None,'') : if invoice.getDestinationSectionValue().getDefaultAddress() is not None :
vat_ratio = 0.196 if invoice.getDestinationSectionValue().getDefaultAddress().getRegion() in ('Europe/Nord/France',None,'') :
vat_recoverable = 1 vat_ratio = 0.196
vat_recoverable = 1
else :
vat_ratio = 0
vat_recoverable = 0
else : else :
vat_ratio = 0 vat_ratio = 0
vat_recoverable = 0 vat_recoverable = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment