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

Pankaj Savita updated OFBIZ-1678:
---------------------------------

    Attachment: Refundorder_test.patch

Hi,

  The process that used in OFBiz to refund the order are :
I)
 1) Created Order
 2) Quick Ship Entire Order
 3) Create return & then goes to refund process from here
 4) Accept Return 

II)
 1) Created Order
 2) Quick Ship Entire Order
 3) Quick Refund Entire Order (service "quickReturnOrder" is invoked through 
request "quickRefundOrder")

I have prepared the seed data(in /order/data/OrderTestData.xml) for Order that 
is shipped, inorder to write a test case & call the service "quickReturnOrder". 
& also
Done entry in order/ofbiz-component.xml
<entity-resource type="data" reader-name="seed" loader="main" 
location="data/OrderTestData.xml"/>

Now, When we load it by.. ant run-install
It violates foreign key constraint "party_rle_party" 
   Key (party_id)=(DemoCustomer) is not present in table "party".

Party "DemoCustomer" is being created when ecommerce demo data loaded by file 
DemoOrderPeopleData.xml. & 
As the seed/demo data for order loaded before the ecommerce data, problem of 
foreign key constraint came.

On the other hand, The seed data for Order successfully loaded through Webtools 
& the test case is working fine.
What should I do to resolve this problem? Suggestions are most welcome :)

> Credits, Refunds...
> -------------------
>
>                 Key: OFBIZ-1678
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1678
>             Project: OFBiz
>          Issue Type: Sub-task
>            Reporter: Sumit Pandit
>         Attachments: Refundorder_test.patch
>
>


-- 
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