Set the correct nextItemSeq of shopping cart. It the "next" item sequence id, not the miximal item sequence id.
The problem occured after OFBIZ-4485 patch was applied (see the third change: make order item sequence id more compact and truely "sequential").
Also with and empty order (order without any valid items or all order items cancelled), then the problem will also occur if all the order items have been cancelled and the new order item is appended after that.
In the code level, if the nextItemSeq is set to the sequence id of last order item but not the true "next" one, then in ShoppingCart.makeOrderItems method, the problem will occur if the cart does not contain any exist order items (all cart items's orderItemSeqId are null):
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1188042 13f79535-47bb-0310-9956-ffa450edef68
The patch is related to following issues:
1. after append a new item to created or approved order, the externalId data of original items are lost
2. after append a new item to created or approved order, the itemDesiredDeliveryDate value is wronly set to shipBeforeDate field
3. make order item sequence id more compact and truely "sequential"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1187944 13f79535-47bb-0310-9956-ffa450edef68
Following warnings were noticed in the log while approving the purchase order that was created automatically for drop ship product.
[ OrderServices.java:2389:WARN ] Tried to setOrderStatus with the same statusId [ ORDER_APPROVED ] for order with ID
[ServiceEcaCondition.java:156:WARN ] From Field (orderTypeId) is not found in context for changeOrderStatus, defaulting to null.
The first warning suggest that there is order status is changed again. Shouldn't have happened. The order header should be updated before updating the order items.
The second warning happens because some time, changeOrderStatus returns without adding orderTypeId to success result. Since there are secas rules based upon this field, the field should be mandatory and not optional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1187933 13f79535-47bb-0310-9956-ffa450edef68
"Promo condition - Shipping method gets lost."
Steps to replicate -
1. Create a promo rule having condition with Shipping Total in LHS, an(y) operator, some value in RHS and some value in "Select Shipping Method". Click create.
2. Try updating RHS value, notice value for "Select Shipping Method" get lost.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1187528 13f79535-47bb-0310-9956-ffa450edef68
"CommonUiLabels resource is missing from EmailOrderScreens.xml#OrderConfirmNotice"
Due to this various labels are not expanded in the email.
Added <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1187515 13f79535-47bb-0310-9956-ffa450edef68
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
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: I commit patch by patch to be able to backport the fix, here only the fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1185179 13f79535-47bb-0310-9956-ffa450edef68
Removing product association from catalog product assoc page, result page shows error message.
"Association not found: Product Id=, Product Id To=, Association Type Id=, From Date="
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1183651 13f79535-47bb-0310-9956-ffa450edef68
Introduces also 2 new labels that will be used soon with commit for WIP OFBIZ-3913 (External Devices by Nicolas)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1183423 13f79535-47bb-0310-9956-ffa450edef68
We have observed the same issue in past and provided a patch for the same. For more details please refer the commit r995384.
Fixing bug of reading node name. When we read first child element of the response of any third party integration for example ups etc, node name can't be read using "node.getLocalName()". So changing node.getLocalName() --> node.getNodeName().
This time before I revert my changes I will wait for Bilgin's comment to understand the exact problem with SOAP call due to which he did this changes. Bilgin please post your comment on this as soon as you get a chance.
http://svn.apache.org/viewvc?view=revision&revision=894359
Thanks Kiran, Sascha for the contribution. We were also observing this issue since quite long so for now it is better to put the code in trunk and releasebranch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1183314 13f79535-47bb-0310-9956-ffa450edef68
Just found by chance while looking for consistency in JsLanguageFileMappingCreator class after refactoring
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182858 13f79535-47bb-0310-9956-ffa450edef68
Anyway this whole page seems broken or at least hard to understand how to use. BTW in R9.04 user role creation does not work because of lack of security, seems that nobody is worried about it so far, I let it like that...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182827 13f79535-47bb-0310-9956-ffa450edef68
In r1178199, I missed to use the default DateTime file (jquery.ui.datepicker-en.js) being still with the idea that it was handled internally.
I have also refactored/simplified JsLanguageFileMappingCreator class and put comments to better explain how all that works
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182731 13f79535-47bb-0310-9956-ffa450edef68
It was cutting the 1st part in case of composed names (like "Tiny Gizmo").
Actually this is a compromise because it's impossible to correctly handle all cases w/out a deep (maybe impossible) refactoring on searchFields in Lookups screens definition.
So now for few lookups, tooltips descriptions will possibly contain more/redundant information than before (like "admin THE ADMINISTRATOR" in Order Creation, instead of only "THE ADMINISTRATOR" before) but by and large the behaviour will be better (ie descriptions will contain more complete information). This is obvious for products lookups for instance, but not only....
I have tried to generalize using the same logic in lookupDescriptionLoaded (in adding a showDescription parameter), but gave up as it was making things more blurred than before
I don't backport: more an improvement than a real bug
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182596 13f79535-47bb-0310-9956-ffa450edef68
It was simply a matter of replacing & by & in PickMoveStock.ftl.
I also improved by checking if the product was already selected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182259 13f79535-47bb-0310-9956-ffa450edef68
Need to replace
/images/jquery/plugins/datetimepicker-0.9.6/jquery-ui-timepicker-addon.css
with:
/images/jquery/plugins/datetimepicker/jquery-ui-timepicker-addon-0.9.6.css
Note the reference is in two places.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1180398 13f79535-47bb-0310-9956-ffa450edef68