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

Pranay Pandey commented on OFBIZ-2234:
--------------------------------------

Thanks Bharat for providing updated patch.
Now code looks good.

I tested the patch against three conditions and service triggered and worked 
well for cloning up supplier product record with updated unit price (Last 
price):

# On creation of purchase order If I change the unit price on cart page and 
recalculate cart, and proceed with order its serving the purpose of cloning the 
record.
# On edit Items for a purchase order with updated unit price.
# On receiving inventory against a purchase order with updated unit price.

But there are few database warnings(Database type warning GenericEntity.set) on 
console when I do receive inventory and create purchase order by changing Unit 
price of the product, this is not the case when I edit Purchase order Items.

Please Resolve these errors and upload the updated patch.



> When recording PO, Company automatically sets price as "last price" on 
> Supplier record
> --------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2234
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2234
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Deepesh Kapoor
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: ofbiz-2234.patch, ofbiz-2234.patch
>
>
> Modifying the existing system such that when the unit price of the item is 
> edited the new value automatically gets set as last price on supplier record.
> Implementation Notes : 
> Add service to expire (set availableThruDate) current applicable 
> SupplierProduct record, create new record that clones the old record, current 
> date as available from date
> SECA trigger on create,purchase and receive order.

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

Reply via email to