[jira] [Updated] (OFBIZ-5621) Amount in cash is smaller than total due in webpos

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (OFBIZ-5621) Amount in cash is smaller than total due in webpos

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-5621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Divesh Dutta updated OFBIZ-5621:
--------------------------------
    Attachment: OFBIZ-5621.patch

Here is the patch to fix this issue. Current code was clearing last added cash payments and adding new cash payment.  So as mentioned in this issue , calculations were breaking.

Now before clearing cash payment we get old cash payment and add it to new amount. After that we clear old payments from cart and add (old cash amount + new cash amount) into the cart. This fixes the issue.

> Amount in cash is smaller than total due in webpos
> --------------------------------------------------
>
>                 Key: OFBIZ-5621
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5621
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/webpos
>    Affects Versions: Trunk
>            Reporter: Hoan Dang Van
>         Attachments: OFBIZ-5621.patch
>
>
> When I buy a product that has price is 50$, (Now, total due is 50$, total already in cash is 0$), I paid 30$ (Now, total due is 20$, total already in cash is 30$).
> But when I second paid 20$, total due is 30$ and it is cycle. So, i can't checkout my shopping session



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)