Merge lp:~openerp-dev/openobject-addons/6.1-opw-574543-pso into lp:openobject-addons/6.1

Proposed by Priyesh (OpenERP)
Status: Approved
Approved by: Vinay Rana (OpenERP)
Approved revision: 6801
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-574543-pso
Merge into: lp:openobject-addons/6.1
Diff against target: 47 lines (+5/-4)
1 file modified
account_voucher/account_voucher.py (+5/-4)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-574543-pso
Reviewer Review Type Date Requested Status
Vinay Rana (OpenERP) (community) Approve
Xavier ALT Pending
Review via email: mp+104692@code.launchpad.net

Description of the change

Hello,

Fixed issues:
1. Refund time, Need to Add negative sign, Guideline already improved with tool tip on Paid Amount Field on Voucher Form.
2. Difference amount coming with wrong value.

Kindly review it.

Thanks,
Priyesh

To post a comment you must log in.
6783. By Xavier ALT

[FIX] stock: fix partial picking testing on non-existant 'new' stock.move state

6784. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6785. By Antony Lesuisse (OpenERP)

[FIX] point_of_sale typo only load pos enabled products

6786. By Antony Lesuisse (OpenERP)

[MERGE] 6.1-opw-573508-ado point_of_sale multiple rows for categories

6787. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6788. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6789. By nel

[MERGE]

6790. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6791. By Olivier Laurent (Open ERP)

[FIX] reverted __openerp__.py: the commented line was already commented before so it was wrongly uncommented

6792. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6793. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6794. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6795. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6796. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6797. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6798. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6799. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

6800. By Olivier Laurent (Open ERP)

[FIX] account: reports: drop view before replacing them

6801. By Priyesh (OpenERP)

[IMP] account_voucher: Improved write off and accounting entries on refund payment and added tooltip on amount(case:574543)

Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

As per the refund voucher payment closing part we need to add negative sign with the payment amount for making proper payment entry and reconcile the refund invoice. In this patch the tooltip will guide the end user for adding '-' sign with payment amount.

The writeoff amount calculation also needs to improve in this particular situation so the provided patch will also take care for this.

review: Approve
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Confirmed on Trunk (means still existing and reproducible). A Merge Proposal for trunk was created to fix it. Here is the link to follow the MP on Launchpad https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-opw-574543-port-mma/+merge/133024 and be informed once it's been merged in trunk: ... If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6801. By Priyesh (OpenERP)

[IMP] account_voucher: Improved write off and accounting entries on refund payment and added tooltip on amount(case:574543)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_voucher/account_voucher.py'
2--- account_voucher/account_voucher.py 2012-03-30 11:07:16 +0000
3+++ account_voucher/account_voucher.py 2012-05-16 10:26:20 +0000
4@@ -192,7 +192,7 @@
5 debit += l['amount']
6 for l in line_cr_ids:
7 credit += l['amount']
8- return abs(amount - abs(credit - debit))
9+ return abs(abs(amount) - abs(credit - debit))
10
11 def onchange_line_ids(self, cr, uid, ids, line_dr_ids, line_cr_ids, amount, voucher_currency, context=None):
12 context = context or {}
13@@ -221,7 +221,7 @@
14 for l in voucher.line_cr_ids:
15 credit += l.amount
16 currency = voucher.currency_id or voucher.company_id.currency_id
17- res[voucher.id] = currency_obj.round(cr, uid, currency, abs(voucher.amount - abs(credit - debit)))
18+ res[voucher.id] = currency_obj.round(cr, uid, currency, abs(abs(voucher.amount) - abs(credit - debit)))
19 return res
20
21 def _paid_amount_in_company_currency(self, cr, uid, ids, name, args, context=None):
22@@ -276,7 +276,7 @@
23 \n* The \'Pro-forma\' when voucher is in Pro-forma state,voucher does not have an voucher number. \
24 \n* The \'Posted\' state is used when user create voucher,a voucher number is generated and voucher entries are created in account \
25 \n* The \'Cancelled\' state is used when user cancel voucher.'),
26- 'amount': fields.float('Total', digits_compute=dp.get_precision('Account'), required=True, readonly=True, states={'draft':[('readonly',False)]}),
27+ 'amount': fields.float('Total', digits_compute=dp.get_precision('Account'), required=True, readonly=True, states={'draft':[('readonly',False)]}, help="During refund payment, add negative amount."),
28 'tax_amount':fields.float('Tax Amount', digits_compute=dp.get_precision('Account'), readonly=True, states={'draft':[('readonly',False)]}),
29 'reference': fields.char('Ref #', size=64, readonly=True, states={'draft':[('readonly',False)]}, help="Transaction reference number."),
30 'number': fields.char('Number', size=32, readonly=True,),
31@@ -676,6 +676,7 @@
32 amount = min(amount_unreconciled, abs(total_credit))
33 rs['amount'] = amount
34 total_credit -= amount
35+ rs['amount'] = abs(rs['amount'])
36
37 if rs['amount_unreconciled'] == rs['amount']:
38 rs['reconcile'] = True
39@@ -1453,7 +1454,7 @@
40 def _check_amount(self, cr, uid, ids, context=None):
41 for obj in self.browse(cr, uid, ids, context=context):
42 if obj.voucher_id:
43- diff = abs(obj.amount) - obj.voucher_id.amount
44+ diff = abs(obj.amount) - abs(obj.voucher_id.amount)
45 if not self.pool.get('res.currency').is_zero(cr, uid, obj.statement_id.currency, diff):
46 return False
47 return True