[tryton-debian-vcs] tryton-modules-account-invoice branch upstream-3.0 updated. upstream/3.0.2-1-g3e14535

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Mon May 12 16:07:08 UTC 2014


The following commit has been merged in the upstream-3.0 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-account-invoice.git;a=commitdiff;h=upstream/3.0.2-1-g3e14535

commit 3e14535c3b3267925d6f6ea190bbde0bc9132c32
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon May 12 16:47:23 2014 +0200

    Adding upstream version 3.0.3.

diff --git a/CHANGELOG b/CHANGELOG
index 45083f3..6221cd9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.3 - 2014-05-06
+* Bug fixes (see mercurial logs for details)
+
 Version 3.0.2 - 2014-03-22
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index ef65c39..25882f8 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_account_invoice
-Version: 3.0.2
+Version: 3.0.3
 Summary: Tryton module for invoicing
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/invoice.py b/invoice.py
index ce05309..485b586 100644
--- a/invoice.py
+++ b/invoice.py
@@ -917,7 +917,8 @@ class Invoice(Workflow, ModelSQL, ModelView):
         total_currency = Decimal('0.0')
         for line in move_lines:
             total += line['debit'] - line['credit']
-            total_currency += line['amount_second_currency']
+            total_currency += line['amount_second_currency'].copy_sign(
+                line['debit'] - line['credit'])
 
         term_lines = self.payment_term.compute(total, self.company.currency,
             self.invoice_date)
diff --git a/tryton.cfg b/tryton.cfg
index b2775b6..dc9cdef 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.0.2
+version=3.0.3
 depends:
     account
     account_product
diff --git a/trytond_account_invoice.egg-info/PKG-INFO b/trytond_account_invoice.egg-info/PKG-INFO
index b0908fd..bb94d49 100644
--- a/trytond_account_invoice.egg-info/PKG-INFO
+++ b/trytond_account_invoice.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-account-invoice
-Version: 3.0.2
+Version: 3.0.3
 Summary: Tryton module for invoicing
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-account-invoice



More information about the tryton-debian-vcs mailing list