Merge lp:~openerp-dev/openobject-addons/6.1-opw-581461-skh into lp:openobject-addons/6.1

Proposed by Somesh Khare
Status: Approved
Approved by: Vinay Rana (OpenERP)
Approved revision: 7057
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-581461-skh
Merge into: lp:openobject-addons/6.1
Diff against target: 29 lines (+9/-8)
1 file modified
point_of_sale/point_of_sale.py (+9/-8)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-581461-skh
Reviewer Review Type Date Requested Status
Vinay Rana (OpenERP) (community) Approve
Naresh(OpenERP) Pending
Review via email: mp+132866@code.launchpad.net

Description of the change

Hello Sir,

[FIX]POS: Multi payments journal are not recorded as required.

In the Point of Sale environment when you make payment through multi Journal the Payment shows on the view eg: If you create sale order with any producy with the price 100$ and try to pay this in Sale Journal as 50 and Cash Journal as 50. You will see the journal on the POS view. But in POS Backend when you open the Order the payment tab have the entry for the 1st journal with the amount 100, where it should have the entry for the selected journal.

Steps:
1. Create POS order with any product.
2. Try to make payment with multiple journals.
3. Validate the Order.
4. Open "PoS Backend/Reporting/All Sales Orders" and the Order see the payment tab.

This branch fixes this issue. Please share your view on it.

Thanks & Regards,
Somesh Khare

To post a comment you must log in.
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

The Propose patch fixes the issue.

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

Hello,

This bug was qualified as Not reproducible on 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

7057. By Somesh Khare

[FIX]POS: Multi payments journal are not recorded as required (Case: Ref 581461)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'point_of_sale/point_of_sale.py'
--- point_of_sale/point_of_sale.py 2012-02-13 16:12:01 +0000
+++ point_of_sale/point_of_sale.py 2012-11-05 10:55:26 +0000
@@ -61,16 +61,17 @@
61 # the module behavior is the same when using the front-end or the back-end61 # the module behavior is the same when using the front-end or the back-end
62 statement_ids = order.pop('statement_ids')62 statement_ids = order.pop('statement_ids')
63 order_id = self.create(cr, uid, order, context)63 order_id = self.create(cr, uid, order, context)
64 list.append(order_id)
65 # call add_payment; refer to wizard/pos_payment for data structure64 # call add_payment; refer to wizard/pos_payment for data structure
66 # add_payment launches the 'paid' signal to advance the workflow to the 'paid' state65 # add_payment launches the 'paid' signal to advance the workflow to the 'paid' state
67 data = {66 for payments in statement_ids:
68 'journal': statement_ids[0][2]['journal_id'],67 payment = payments[2]
69 'amount': order['amount_paid'],68 order_obj.add_payment(cr, uid, order_id, data = {
70 'payment_name': order['name'],69 'journal': payment['journal_id'],
71 'payment_date': statement_ids[0][2]['name'],70 'amount': payment['amount'],
72 }71 'payment_name': payment['name'],
73 order_obj.add_payment(cr, uid, order_id, data, context=context)72 'payment_date': payment['name'],
73 }, context=context)
74 list.append(order_id)
74 return list75 return list
7576
76 def unlink(self, cr, uid, ids, context=None):77 def unlink(self, cr, uid, ids, context=None):