Divyesh Makwana(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-901089-mdi into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #901089 in OpenERP Addons: "Advanced payment+customer credit, wrong open
balance"
https://bugs.launchpad.net/openobject-addons/+bug/901089
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-901089-mdi/+merge/88675
Hello Sir,
I have fix the issue: https://bugs.launchpad.net/openobject-addons/+bug/901089
"Advanced payment+customer credit, wrong open balance".
Thanks and Regards,
Divyesh Makwana(MDI)
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-901089-mdi/+merge/88675
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-901089-mdi.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py 2012-01-04 09:21:00 +0000
+++ account_voucher/account_voucher.py 2012-01-16 12:40:41 +0000
@@ -593,10 +593,6 @@
account_move_lines = move_line_pool.browse(cr, uid, ids, context=context)
for line in account_move_lines:
- if line.credit and line.reconcile_partial_id and ttype == 'receipt':
- continue
- if line.debit and line.reconcile_partial_id and ttype == 'payment':
- continue
if invoice_id:
if line.invoice.id == invoice_id:
#if the invoice linked to the voucher line is equal to the invoice_id in context
@@ -622,10 +618,6 @@
#voucher line creation
for line in account_move_lines:
- if line.credit and line.reconcile_partial_id and ttype == 'receipt':
- continue
- if line.debit and line.reconcile_partial_id and ttype == 'payment':
- continue
if line.currency_id and currency_id==line.currency_id.id:
amount_original = abs(line.amount_currency)
amount_unreconciled = abs(line.amount_residual_currency)
@@ -1051,7 +1043,7 @@
voucher_currency = voucher_brw.currency_id and voucher_brw.currency_id.id or voucher_brw.journal_id.company_id.currency_id.id
# We want to set it on the account move line as soon as the original line had a foreign currency
if line.move_line_id.currency_id and line.move_line_id.currency_id.id != company_currency:
- # we compute the amount in that foreign currency.
+ # we compute the amount in that foreign currency.
if line.move_line_id.currency_id.id == current_currency:
# if the voucher and the voucher line share the same currency, there is no computation to do
sign = (move_line['debit'] - move_line['credit']) < 0 and -1 or 1
@@ -1270,7 +1262,7 @@
def _currency_id(self, cr, uid, ids, name, args, context=None):
'''
- This function returns the currency id of a voucher line. It's either the currency of the
+ This function returns the currency id of a voucher line. It's either the currency of the
associated move line (if any) or the currency of the voucher or the company currency.
'''
res = {}
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp