[jira] Created: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

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

[jira] Created: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
Adjust Purchase Order Items if received quantity is higher.
-----------------------------------------------------------

                 Key: OFBIZ-2249
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
             Project: OFBiz
          Issue Type: Improvement
          Components: order, product
    Affects Versions: SVN trunk
            Reporter: Pranay Pandey
             Fix For: SVN trunk


While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)

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

Pratik Khera updated OFBIZ-2249:
--------------------------------

    Attachment: OFBIZ-2249

Following are the steps to test this patch.

1.Create a Purchase Order and Approve it from Order View Page..
2.Now click on "Quick Receive Purchase Order" button.
3.While Receiving  Inventory, change the quantity received.
4.Click "Receive Inventory " button.
5.Observe the changes in these entities:
 a.OrderItem.
 b.ItemIssuance.
 On order detail page you will observe the changes,  


> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688299#action_12688299 ]

Pranay Pandey commented on OFBIZ-2249:
--------------------------------------

Pratik thanks for the patch for this issue.

This patch needs improvements. Please read:

http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices

> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pratik Khera updated OFBIZ-2249:
--------------------------------

    Attachment: OFBIZ-2249.patch

Thanks Pranay, for your suggestions.There are some formatting issues in this patch which is not according to the best practices of OFBIZ,now i have done the required changes in it as per your suggestions.

> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Vikas Mayur reassigned OFBIZ-2249:
----------------------------------

    Assignee: Vikas Mayur

> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Assignee: Vikas Mayur
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688646#action_12688646 ]

Pranay Pandey commented on OFBIZ-2249:
--------------------------------------

Thanks Pratik, There few more things which should be improved in your patch to make code simpler:
* Use entity one without mapping field explicitly because auto-field-map will do the job.
* No need to set fields for orderId and orderItemSeqId as those can directly be accessed where needed from parameters.
* No need to iterate the list you are fetching for itemIssuance, first-from-list can be used.
* OrderId and OrderSeqId will be required attribute for the service, so optionality for them should be false and no need to have facilityId as a In attribute in the service def.
Please do the needful changes and upload the updated patch. Also please keep the name of the patch same as the last one.


> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Assignee: Vikas Mayur
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249, OFBIZ-2249.patch, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pratik Khera updated OFBIZ-2249:
--------------------------------

    Attachment: OFBIZ-2249.patch

Updated the previous patch.

> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Assignee: Vikas Mayur
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249, OFBIZ-2249.patch, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Pratik Khera updated OFBIZ-2249:
--------------------------------

    Attachment:     (was: OFBIZ-2249)

> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Assignee: Vikas Mayur
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249.patch, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Vikas Mayur resolved OFBIZ-2249.
--------------------------------

    Resolution: Fixed

Thanks Pratik and Pranay!

Patch is in trunk rev. 757749 with slight changes.


> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Assignee: Vikas Mayur
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249.patch, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-2249) Adjust Purchase Order Items if received quantity is higher.

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

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

Jacques Le Roux closed OFBIZ-2249.
----------------------------------


> Adjust Purchase Order Items if received quantity is higher.
> -----------------------------------------------------------
>
>                 Key: OFBIZ-2249
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2249
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order, product
>    Affects Versions: SVN trunk
>            Reporter: Pranay Pandey
>            Assignee: Vikas Mayur
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-2249.patch, OFBIZ-2249.patch
>
>
> While receiving inventory against a purchase order if received quantity is higher than the quantity on purchase order then adjust PO item. Also if a shipment was created the shipment item must be updated too.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.