advance payment in point of sale

Bug #684832 reported by Aline (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Medium
OpenERP R&D Addons Team 3

Bug Description

in point of sale (trunk)

if the "advance payment" check box is selected, when you make the total payment, the advance should be deducted from the total amount

example :

1) I sell 1 pc at 250
2) i make an advance of 150 (clicking make payment)
3) i make the final payment (clicking twice make payment)
-> the amount should be 100 because the customer has already paid 150 => total amount is well 250

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
qdp (OpenERP) (qdp)
Changed in openobject-addons:
milestone: none → 6.0-rc2
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello Aline,

I have tested it with latest revision.

First, in make payment wizard, amount field is calculated by (total - paid). Right ?

Currently what happens is when you ticked advance from 'make payment' wizard, It will ask you for product (type: service) which is required. There is on change method on this product(advance) that will calculate amount by subtracting list price of that product(advance) from current amount and after that, by clicking on make payment button, it will create an order line for that product with negative quantity. Then it will calculate total of order according to order lines. It will also update paid field. You can check it by putting it in view file.

Now when you clicked on make payment wizard again, it will show you amount (current total - current paid).

So according to me, it shows right value in amount. What should be the right flow? Your suggestions please ......

Thanks.

Changed in openobject-addons:
status: In Progress → Opinion
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello Aline,

Would you please test it with latest Addons3 branch ?

I am closing the bug. If you still get any problem, you can reopen it.

Thanks.

Changed in openobject-addons:
status: Opinion → Invalid
Revision history for this message
Aline (OpenERP) (apr-tinyerp) wrote :

hello,

data displayed on the screen are ok (produtc 1800, advance 150, total amount 1650). but once i click make payment, the amount is wrong (450)

Changed in openobject-addons:
status: Invalid → Confirmed
Changed in openobject-addons:
milestone: 6.0-rc2 → 6.0
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Meera Trambadia (OpenERP) (mtr-openerp) wrote :

Hello Aline,

I tested in the following way:-

I created a pos whose product=CPU1, qty=24, total=1800.
Then I click on the 'Make Payment' button,I get amount=1800.Then I clcik on the 'Advance' checkbox,
choose the product "Advance" and now the amount becomes 1650.Then I click on the 'Make Payment' button of wizard.And the state becomes 'Paid'.

I created a pos whose product=CPU1, qty=24, total=1800.
Then I click on the 'Make Payment' button,I get amount=1800.
Then I clcik on the 'Advance' checkbox,choose the product "Advance" and now the amount becomes 1650.
Now I made amount=0.Then I click on the 'Make Payment' button of wizard.Then again I click on the 'Make Payment' button and I get amount=1650

I created a pos whose product=CPU1, qty=24, total=1800.
Then I click on the 'Make Payment' button,I get amount=1800.
Then I clcik on the 'Advance' checkbox,choose the product "Advance" and now the amount becomes 1650.
Now I made amount=150.Then I click on the 'Make Payment' button of wizard.Then again I click on the 'Make Payment' button and I get amount=1500

I hope this will help.If you still find a problem then you can attach a screenshot of your pos and the 'Payment' tab of pos.

Thanks
mtr

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

Amount on the make payment wizard is based on Total amount - Paid amount
If you don't enter any amount (amount=0) at the time of advance payment it will create payment lines with 0 amount.
So i agree with mtr, can you please provide some more information of your problem?

Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote :

I am closing the bug, if you have still problem you can reopen the bug with more detail.

Changed in openobject-addons:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.