Commit Graph
9 Commits
Author SHA1 Message Date
Akash Jain 121634f8f3 Improved: Unit test case for service - createProductConfigOption (OFBIZ-9090)
Thanks, Pradhan Yash Sharma for your contribution
2020-08-22 23:21:57 +05:30
Pawan Verma ff53e54a4e Improved: Groovy DSL test case for service addProductCategoryToCategory and getProductCategoryAndLimitedMembers (#111)
* Improved: Groovy DSL test case for service addProductCategoryToCategory and getProductCategoryAndLimitedMembers
(OFBIZ-9088)

Thanks: Pradhan Yash Sharma for report and initial patch and Suraj and Jacques for the review.
2020-05-06 11:33:44 +05:30
Rishi Solanki cfef87d6f1 Improved: Remove empty field values from xml data files so that it will not override existing data with empty values. Removed all empty data fields from data files.
(OFBIZ-10282)
Thanks to Arun Patidar for reporting and review.
Thanks to Suraj Khurana for providing patch for the improvement.
Thanks to Jacques for discussion and finalizing the work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1830545 13f79535-47bb-0310-9956-ffa450edef68
2018-04-30 10:52:55 +00:00
Deepak Dixit acbeffc9df Improved: Added unit test case for following product related services
- createProduct, updateProduct
- duplicateProduct
- quickAddVariant
- deleteProductKeywords
- discontinueProductSales
- createProductReview
- updateProductReview
- findProductById
- createProductPrice, updateProductPrice, deleteProductPrice
- createProductCategory
(OFBIZ-8412)(OFBIZ-8506)(OFBIZ-8571)(OFBIZ-8654)(OFBIZ-8572)(OFBIZ-8573)(OFBIZ-8574)
(OFBIZ-8656)(OFBIZ-8575)(OFBIZ-8576)(OFBIZ-8577)(OFBIZ-8578)(OFBIZ-8655)

Thanks Akash Jain and Yash Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767977 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 21:16:42 +00:00
Mridul Pathak b5ca6bddfb [OFBIZ-7904] Remove system generated fields from data files of Product component. Thanks Suraj Khurana for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1755299 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 12:01:52 +00:00
Erwan de Ferrieres 33307ddd39 missing ASL2 license headers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230981 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 10:33:22 +00:00
Jacques Le Roux 60161e2d26 A patch from Paul Foxworthy "Order not completed when filled from more than one InventoryItem" https://issues.apache.org/jira/browse/OFBIZ-4386
There is a nasty bug in IssuanceServices in the situation where the order is filled from more than one InventoryItem. When the order is created, there are OrderItemShipGrpInvRes reservations created for all the inventory items needed to fill the order.
In the simple method issueOrderItemShipGrpInvResToShipment in IssuanceServices, at line 173 (https://fisheye6.atlassian.com/browse/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/issuance/IssuanceServices.xml?hb=true#to173), there is an assumption that if the OrderShipment already exists, we are some sort of adjustment, and we should adjust the OrderShipment quantity by the difference between the old OrderShipment quantity and the new one. This all works fine in the situation where there is only one InventoryItem needed to fill the order. However, if there are two or more InventoryItems, the simple method is called twice, and an incorrect quantity is calculated.

The crux of the problem is that OrderShipment doesn't care about InventoryItems, so there will be only one OrderShipment row for a given product. In contrast, ItemIssuance does care about InventoryItems, so there will be more than one if the product is supplied from more than one InventoryItem. The ItemIssuance code doesn't take account of this distinction.

I have provided two patches. One is a new unit test that exemplifies the bug. If you just apply this patch to trunk, the unit test will fail with an OrderShipment quantity of 4 when it ought to be 6.

The other patch is my fix for IssuanceServices, which now looks for a relevant ItemIssuance to decide if we are adjusting quantities, or creating a new ItemIssuance (and possibly a new OrderShipment).

jleroux: only the test part (not backported)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1185188 13f79535-47bb-0310-9956-ffa450edef68
2011-10-17 14:07:41 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Vikas Mayur 6c333706b6 Since test data files were kept under testdef/data folder so moving the file to correct location.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907437 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 15:57:38 +00:00