Credits, Refunds...
------------------- Key: OFBIZ-1678 URL: https://issues.apache.org/jira/browse/OFBIZ-1678 Project: OFBiz Issue Type: Sub-task Reporter: Sumit Pandit -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12572310#action_12572310 ] Sumit Pandit commented on OFBIZ-1678: ------------------------------------- Followed process from http://docs.ofbiz.org/display/OFBENDUSER/Credits%2C+Refunds%2C+etc. > Credits, Refunds... > ------------------- > > Key: OFBIZ-1678 > URL: https://issues.apache.org/jira/browse/OFBIZ-1678 > Project: OFBiz > Issue Type: Sub-task > Reporter: Sumit Pandit > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577854#action_12577854 ] Pankaj Savita commented on OFBIZ-1678: -------------------------------------- In the patch uploaded, by mistake reader-name left "demo". We need to change it reader-name="seed" and try to run.. ant run-install > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12578145#action_12578145 ] Mridul Pathak commented on OFBIZ-1678: -------------------------------------- Pankaj, I think it would be a better option for us to create test data for a customer as well. We can call it a TestCustomer. This customer party can then be used for all the test cases for Order Component. This test data must go in the order component. Another point that I would like to add here is that, for any test data file, we should use reader-name="ext-test". And while running test cases use target "run-install-exttest" with ant. While using this target keep in mind that Demo data won't get saved to the DB, So avoid using any Demo Data for the test cases. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marco Risaliti updated OFBIZ-1678: ---------------------------------- Component/s: product Fix Version/s: SVN trunk Priority: Minor (was: Major) Affects Version/s: SVN trunk > Credits, Refunds... > ------------------- > > Key: OFBIZ-1678 > URL: https://issues.apache.org/jira/browse/OFBIZ-1678 > Project: OFBiz > Issue Type: Sub-task > Components: product > Affects Versions: SVN trunk > Reporter: Sumit Pandit > Priority: Minor > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-1678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harsha Chadhar updated OFBIZ-1678: ---------------------------------- Attachment: Refundorder_test.patch Test Case for a Return and Refund of Sales Order. > Credits, Refunds... > ------------------- > > Key: OFBIZ-1678 > URL: https://issues.apache.org/jira/browse/OFBIZ-1678 > Project: OFBiz > Issue Type: Sub-task > Components: product > Affects Versions: SVN trunk > Reporter: Sumit Pandit > Priority: Minor > Fix For: SVN trunk > > Attachments: Refundorder_test.patch, Refundorder_test.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |