advance payment in point of sale
Bug #684832 reported by
Aline (OpenERP)
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) |
Changed in openobject-addons: | |
milestone: | none → 6.0-rc2 |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Opinion |
Changed in openobject-addons: | |
milestone: | 6.0-rc2 → 6.0 |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
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.