If you clear the last packed item from from a shipment with two items and then complete the pack, you get the exception below:
Exception thrown while creating the "newEntity" ....ShipmentPackageContent ... Key ... is not present in table shipment_package
This is happening because org.ofbiz.shipment.packing.PackingSession.clearLine() around line 600 is decrementing packageSeq from 1 to zero. This causes createPackages() to not generate any ShipmentPackages because of the for statement on packageSeq and therefore the subsequent exception.
I fixed this by just commenting out the block starting with "if(line.packageSeq ==". I did not submit a patch because I do not fully understand the logic and do not have time now to learn it now.
Hopefully the author will be better equipped to deal with it properly.
Skip
jleroux: the path's author (https://issues.apache.org/jira/browse/OFBIZ-2163) Karim Rahimpur did not answer. But by analogy with clearAllLines I decided that packageSeq should not be less than 1!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524950 13f79535-47bb-0310-9956-ffa450edef68
Just for seek of tidiness, I attached another patch that removes redundant code in FindProductBom.groovy, without changing its behavior.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524769 13f79535-47bb-0310-9956-ffa450edef68
* Deprecates methods in Delegator interface and class
* Deprecates cache clear related variable and methods in EntitySaxReader class
* Deprecates cache clear related variables in minilang related delegator classes
* In simple-method schema annotations, marks do-cache-clear attribute as deprecated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524704 13f79535-47bb-0310-9956-ffa450edef68
When having more than 20 BoM's in Manufacturing the overview doesn't paginate.
jleroux; I'm not quite sure why an orderBy was necessary but it works and is a simple enough solution. I refactored things a bit and kept find instead of proposed findList. So this just add an orderBy to the find
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524676 13f79535-47bb-0310-9956-ffa450edef68
Leon:
Thanks for resolve this bug. But it introduce a small flaw: all cancelled items is filtered out from order item list.
The filter condition before this patch is : ("Y".equals(orderItem.get("isPromo")) && "ITEM_CANCELLED".equals(orderItem.get("statusId"))); – means filter out the item that is promo "AND" cancelled.
That of patch is : ! ((item.isPromo == null || item.isPromo == 'N') && !(item.statusId.equals('ITEM_CANCELLED'))) – means filter outer the item that is promo "OR" cancelled.
Theses two is not equivalent. After this patch, all cancelled items are filter out, no matter it's promo or not.
jleroux:
What we had before the change:
get cancelled promo items
remove them from the list of items
So we got all items but cancelled promo items
What we have now:
Get non-promo items AND non-cancelled items (or as said Scott "get all non-promo items that aren't cancelled")
What you suggest:
Get non-promo items OR non-cancelled items (if re-phrase what you suggest: get all non-promo items and add to them all the non-cancelled ones, so including the non-cancelled promo ones)
Your sentence "After this patch, all cancelled items are filter out, no matter it's promo or not." is almost right. Because we not only miss the cancelled non-promo but also the promo not cancelled
To re-prhase myself: Currently we miss the promo items which are not cancelled and the non-promo items which are cancelled
Pfew... the exclusive reasoning is here quite easier than the inclusive one!
I removed the useless parentheses around the cancelled proposition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524361 13f79535-47bb-0310-9956-ffa450edef68
The quickInitDataWarehouse BI button used these dates (set in BI main screen)
<set field="fromDate" value="2008-01-01 00:00:00.0" type="Timestamp"/>
<set field="thruDate" value="2010-01-01 00:00:00.0" type="Timestamp"/>
This generated 1000+ records. I set 10 years ahead (from sept. 2013) in a new bi.properties file used by the BI main screen. So it generates only 3000+ records (and others related in BI DB) which is still reasonable. A message, placed at the top of the Order Reports page, informs users that for 4 Birt reports s/he needs 1st to run the data warehouse init using the BI button. Also this message clarifies the range, to be certain that in 10 years people will still easily know what to change...
I have also replaced a lot of labels and added English and French translations (by-product: some labels cleaning in CommonUiLabels.xml)
I did not do the same for the accounting paymentReport and ViewFacilityInventoryHistoryReport facility Birt reports which only need translation.
I noticed that there are no ways to get to ViewFacilityInventoryHistoryReport from UI though!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521589 13f79535-47bb-0310-9956-ffa450edef68
framework/build.xml
applications/build.xml
specialpurpose/build.xml
are only used to define the filelist properties (as before) with the list of components to be built.
The main build file simply refers to these lists to build/doc/clean OFBiz; as before, if applications' or specialpurpose's build.xml files are absent, the folders are ignored.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520744 13f79535-47bb-0310-9956-ffa450edef68
* removed redundant targets (e.g. clean-xtras)
* removed unused targets and settings
* moved runtime related targets from framework to main build file
* moved the search index runtime folder from runtime/data/indexes to runtime/indexes to prevent the removal of indexes when clean-data is executed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520510 13f79535-47bb-0310-9956-ffa450edef68