ProductShipmentUomAbbreviation_LEN_in
ProductShipmentUomAbbreviation_WT_g
ProductShipmentUomAbbreviation_WT_kg
ProductShipmentUomAbbreviation_WT_lb
These labels should be written in similer pattern as other labels of "Uom" entity are written in CommonEntityLabels.xml, for example :
ProductShipmentUomAbbreviation_LEN_in will be written as
Uom.abbreviation.LEN_in
<entityName>.<fieldName>.<PrimaryKey>
Thanks Renuka for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801281 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9452)
This sets non-final static fields to final, avoids display of known null
values in the errors messages and removes unneccessary null checks on
known null variables.
Thanks Kyra Pritzel-Hentley for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801271 13f79535-47bb-0310-9956-ffa450edef68
Changing item quantity in cart was setting the flag isModifiedPrice true which is conflicting with updatePrice condition and hence price recalculation was not being triggered.
Thanks Aditi Patidar for reporting the issue and providing patch. Thanks Paul Foxworthy for reviewing the issue and providing the research details.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801269 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9451)
At two occurrences, an Error is logged which contains the variable
processorResult. At that point however processorResult is certain to be null.
Remove the variable from the log. Remove unreachable else condition in
processAuthResult(). authResult can only be true or false, no third condition
needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801185 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9451)
Use a StringBuilder to append a certain amount of '*'s to origMaskedNumber.
When using concatenation inside the loop, the String is converted to a new
StringBuilder, appended to, and then converted back to a String anyway.
Therefore the performance is improved by avoiding many StringBuilder
initializations.
ReturnHeaderResp in RefundGcPurchase() is unnecessarily checked for null value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801183 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9451)
Set BigDecimal ZERO to final to avoid changes by malicious code from the outside
or changes that happen by accident from another package.
ReturnHeaderResp in RefundGcPurchase() is unnecessarily checked for null value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801171 13f79535-47bb-0310-9956-ffa450edef68
does not use fallback locale.
(OFBIZ-9445)
If no alternate locale content for the requested locale is found, search for an
alternate locale content with the locale configured in general.properties at
locale.properties.fallback. If this one isn't found either we can still return
the original content.
Thanks Tobias Laufkötter for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800853 13f79535-47bb-0310-9956-ffa450edef68
does not use fallback locale.
(OFBIZ-9445)
If no alternate locale content for the requested locale is found, search for an
alternate locale content with the locale configured in general.properties at
locale.properties.fallback. If this one isn't found either we can still return
the original content.
Thanks Tobias Laufkötter for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800780 13f79535-47bb-0310-9956-ffa450edef68
finish the service conversion : getRateAmount, getRatesAmountsFromWorkEffortId, getRatesAmountsFromPartyId, getRatesAmountsFromEmplPositionTypeId and filterRateAmountList
I create a generic groovy function getRateAmoutForm to remove duplicate code and refactoring the filterRateAmount for simplicity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800245 13f79535-47bb-0310-9956-ffa450edef68
While checking there were no other cases like in OFBIZ-9432
(missing path to class), to be consistent I removed the trailing semicolons in
groovy scripts and made few formatting
I did not changes tests code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799867 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9429)
This changes the service definition of createGLAccount to use the pk
attributes as OUT instead of INOUT so that the glAccountId will be
generated by OFBiz instead of being provided to the service.
Thanks Sharan Foga for reporting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799793 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9425)
Service createShipment can create both sales and purchase shipment with
workeffort.
For sales shipment it creates SHIPMENT_OUTBOUND type work effort
For purchase shipment it creates SHIPMENT_INBOUND type work effort.
The maps used are shipWorkEffortMap to create outbound work effort and
arrivalWorkEffortMap to create inbound shipment.
Which work effort will be created decided by the condition whether parameters.
estimatedShipDate is coming or parameters.estimatedArrivalDate is coming.
With existing logic the workEffort.workEffortTypeId, workEffort.currentStatusId
and workEffort.workEffortPurposeTypeId is not persist into db as values set
into the wrong map.
Thanks: Wai for report and patch, Rishi Solanki for clear explanation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799767 13f79535-47bb-0310-9956-ffa450edef68
With service rate minilang conversion to groovy, I renamed deleteRateAmount and deletePartyRate to expireRateAmount and expirePartyRate for more coherence between the service process and the name. The previous service naming have been kept to set them as deprecated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799252 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9373)
After using plain text for the field [articleData], when I post the form,
I get the following error message:
The following required parameter is missing: [IN]
[createElectronicText.dataResourceId]]
jleroux: it was a bug introduced with r1765319 while refactoring to use
entity-auto
Thanks: Daniel Coric who find the reason and Yao who initially reported and
helped to find a solution
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799088 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9385)
This is an improvement only because no cases were reported. But obviously in
case of unlucky exception after the EntityListIterator creation and before it's
closed the EntityListIterator remains in memory.
It should be closed in EntityListIterator.finalize() but the less happens there
the better.
The solution is to use try-with-ressources when possible
This completes OFBIZ-9385, there are no other cases left.
There are few methods like FindServices.executeFind() or performFindParty
service which can't be improved because they return an EntityListIterator.
So methods using them must be carefully crafted to close the EntityListIterator.
Most where already documented (in the framework). I completed few in
applications at r1798495
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798566 13f79535-47bb-0310-9956-ffa450edef68
transaction in place
(OFBIZ-9286)
While working on OFBIZ-9385 "EntityListIterator closed but not in case of
exception" I forgot that you must begin the transaction before the
try-with-resources, this fixes last cases, lesson learned the hard way!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798353 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9385)
This is an improvement only because no cases were reported. But obviously in
case of unlucky exception after the EntityListIterator creation and before it's
closed the EntityListIterator remains in memory.
It should be closed in EntityListIterator.finalize() but the less happens there
the better.
The solution is to use try-with-ressources
The getProductSearchResults() method was public but only used in the class.
I made it private
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798300 13f79535-47bb-0310-9956-ffa450edef68
Replaces EntityListIterator.close() in finally by try-with-ressource
With, mmm..., some refactoring. For instance I don't like re-throwing an
exception
and I'm not alone
https://martinfowler.com/articles/replaceThrowWithNotification.html
In case of event I prefer when we use something like
request.setAttribute("_ERROR_MESSAGE_", errMsg);
like also suggests Martin Fowler
So I did that, of course it's tested, as similar changes done already
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797792 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9385)
This is an improvement only because no cases were reported. But obviously in
case of unlucky exception after the EntityListIterator creation and before it's
closed the EntityListIterator remains in memory.
It should be closed in EntityListIterator.finalize() but the less happens there
the better.
The solution is to use try-with-ressources
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797791 13f79535-47bb-0310-9956-ffa450edef68