Commit Graph
14503 Commits
Author SHA1 Message Date
Divesh Dutta 83bf3906a2 Fixed:Accounting quantity transfer should not be zero while transferring inventory from one facility to another (OFBIZ-9464)
Thanks Vaibhav Jain for reporting this issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801300 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 16:06:04 +00:00
Deepak Dixit 14f9c7331d Improved: Following uiLabels should move from ProductUiLabels.xml to CommonEntityLabels.xml. (OFBIZ-9408)
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
2017-07-08 11:36:50 +00:00
Arun Patidar 69c7d479bc Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801280 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 11:33:19 +00:00
Deepak Dixit 8895181ce5 Fixed: add gift certificate in purchase order cause exception (OFBIZ-9438)
Apply slightly modified patch from jira issue.
Thanks Wai and Pallavi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801274 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:59:18 +00:00
Arun Patidar 4da1003bae Improved:On create order, the page shows orderview screen, but Url does not change. It shows processorder. (OFBIZ-9462)
Thanks Renuka Srishti for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801273 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:53:55 +00:00
Arun Patidar 8904e47e2d Improved:Require check on Create Work Effort Screen (OFBIZ-7496)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801272 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:34:25 +00:00
Michael Brohl faef156b61 Improved: Fixing defects reported by code analysis tools.
(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
2017-07-08 10:03:22 +00:00
Pranay Pandey fa66d69fab Fixed: Product specific quantity condition price rule application when quantity is changed in cart (OFBIZ-7263)
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
2017-07-08 09:25:06 +00:00
Arun Patidar 8763342f1e Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801268 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 09:15:03 +00:00
Deepak Dixit 982356f563 Improved: Remove hard-coded instances of "IN" with ModelService.IN_PARAM (OFBIZ-9434)
Thanks Devanshu and Pawan for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801266 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 08:35:32 +00:00
Arun Patidar 7ec0bcce8d Required check missing for Routing Task Name on Add Routing Task page. (OFBIZ-9456).
Thanks Aditya Sharma for reporting and providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801263 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 08:18:44 +00:00
Arun Patidar 882d41c249 Fixed: Required check missing for supplier product id and last price on Add Product Supplier page (OFBIZ-9455).
Thanks Aditya Sharma for reporting and providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801262 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 06:35:57 +00:00
Michael Brohl 4c0528de2f Improved: Checking service results errors using ServiceUtil.isError instead of
null checking the error message.

I think this class needs further refactoring, I only checked the code modified 
the last changes from OFBIZ-9451. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801208 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 20:14:20 +00:00
Michael Brohl ec825aac5d Improved: Fixing defects reported by FindBugs.
(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
2017-07-07 15:39:54 +00:00
Michael Brohl b339e26bc3 Improved: Fixing defects reported by FindBugs.
(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
2017-07-07 15:33:39 +00:00
Michael Brohl 4068e1c1fc Improved: Fixing defects reported by FindBugs.
(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
2017-07-07 14:44:21 +00:00
Michael Brohl ca98fe417b Improved: Fixing defects reported by FindBugs.
(OFBIZ-9451)

Implement Serializable for class BillingAccountComparator.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801168 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 14:09:50 +00:00
Michael Brohl f965059347 Fixed: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
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
2017-07-05 09:42:23 +00:00
Michael Brohl 5333451e04 Reverted: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
does not use fallback locale.
(OFBIZ-9445)

r1800780 introduced a bug which breaks the functionality. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800832 13f79535-47bb-0310-9956-ffa450edef68
2017-07-04 22:11:55 +00:00
Michael Brohl 6639ffa89d Fixed: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
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
2017-07-04 12:56:38 +00:00
Michael Brohl 8b3b0ecf41 Improved: Several file names do not adhere to conventions applied to same files
in other components.
(OFBIZ-9338)

Thanks Pierre Smits for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800303 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 16:39:27 +00:00
Jacques Le Roux 7dd842cf3e Improved: Typo in value of SfaAddSalesForecastDetail uiLabel
(OFBIZ-9424)

It should be Forecast not Forcast 

Thanks: Aditya Sharma for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800250 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 08:41:18 +00:00
Nicolas Malin 987feeb2a8 Improved: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
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
2017-06-29 07:46:02 +00:00
Jacques Le Roux db272d8ff4 No functional change,
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
2017-06-26 09:55:10 +00:00
Michael Brohl 59ed752fe4 Fixed: Cannot create a new GL Account
(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
2017-06-25 10:37:48 +00:00
Taher A. Alkhateeb 5275aaf233 Fixed: renamed help file that is missing an underscore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799779 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 20:19:32 +00:00
Jacques Le Roux ccebb2833e Fixed: CreateShipment code logic error
(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
2017-06-24 12:00:25 +00:00
Deepak Dixit a928d3db63 Improved: Added lookup for contentId field and also added required-field true for pathAlias on EditWebSitePathAlias screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799735 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 07:34:19 +00:00
Deepak Dixit 4d48388818 Fixed: The following required parameter is missing: [IN] [removeWebSitePathAlias.fromDate].(OFBIZ-9426)
Thanks Daniel Coric for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799687 13f79535-47bb-0310-9956-ffa450edef68
2017-06-23 17:35:44 +00:00
Jacques Le Roux f6bd4d460a Improved: Accounting Manager \ Fixed Assets, press button [NEW FIXED ASSET],
but action button is [Update], not [Save]
(OFBIZ-9422)

Thanks: Do Nhu Vy for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799327 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 09:33:51 +00:00
Nicolas Malin a1b7e5a23d Improved: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
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
2017-06-19 18:27:14 +00:00
Jacques Le Roux fcfef0f359 Fixed: Wiki restructure issues
(OFBIZ-9416)

Removes few files inadvertently committed with r1799242 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799243 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 17:46:09 +00:00
Jacques Le Roux ab36d3297e Fixed: Wiki restructure issues
(OFBIZ-9416)

Replaces a bunch of deprecated links or shortcuts

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799242 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 17:38:38 +00:00
Deepak Dixit 6f39c2d18d Improved: Update Currency Uom data (OFBIZ-9413)
While adding numericCode to currency UOM, I found that we need to update some old currency UOM, as uomId has been updated.
https://www.currency-iso.org/en/home/tables/table-a1.html
https://www.currency-iso.org/en/home/amendments.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799183 13f79535-47bb-0310-9956-ffa450edef68
2017-06-19 11:47:58 +00:00
Jacques Le Roux 371ebe2913 Fixed: Create new blog article entry error.
(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
2017-06-18 14:32:36 +00:00
Jacques Le Roux 195171a37c Fixed: RequestHandlerException on request link of Quote Price page
(OFBIZ-9384)

To reproduce get to 
https://localhost:8443/ordermgr/control/ManageQuotePrices?quoteId=CQ0001
Click on link under View Request. It gives a RequestHandlerException.

jleroux: I simply changed the link from inter-app to simple (inter-app works 
also but is not right)

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798808 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:52:43 +00:00
Jacques Le Roux ac67cc7ad3 Fixed: RequestHandlerException on request link of Quote Profit page
(OFBIZ-9386)

To reproduce get to 
https://localhost:8443/ordermgr/control/ViewQuoteProfit?quoteId=CQ0001
Click on link under View Request. It gives a RequestHandlerException.

jleroux: I simply changed the link from inter-app to simple (inter-app works 
also but is not right)

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798803 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:39:17 +00:00
Jacques Le Roux e2b9b26cb4 Fixed: simple methods not terminating on error condition
(OFBIZ-9407)

jleroux: adding a <check-errors/> is quite right

Thanks: Wai 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798682 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 13:47:25 +00:00
Jacques Le Roux ff549a43aa No functional change
Just removes trailing blanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798681 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 13:46:17 +00:00
Jacques Le Roux 93dc619f0a No functional changes.
Replaces EntityListIterator.close() in finally by try-with-ressource

I think I have done all these kinds of changes. This is tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798571 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 09:48:49 +00:00
Jacques Le Roux 2929627451 Improved: EntityListIterator closed but not in case of exception
(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
2017-06-13 08:29:28 +00:00
Jacques Le Roux aa644a0975 No functional change
Completes the JavaDoc of few methods which return an EntityListIterator

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798563 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 08:16:28 +00:00
Jacques Le Roux df46ff51de No functional change
Improves the documentation of few methods which return an EntityListIterator

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798495 13f79535-47bb-0310-9956-ffa450edef68
2017-06-12 17:20:36 +00:00
Jacques Le Roux 19d6c74fce No functional change, this is better than r1798060
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798388 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 17:30:26 +00:00
Jacques Le Roux ce3fcec143 No functional change, fix an ugly bug put in with r1798335 due to an
abandoned refactoring

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798358 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 12:19:19 +00:00
Jacques Le Roux f0b87bd3e0 Fixed: ERROR: Cannot do a find that returns an EntityListIterator with no
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
2017-06-11 10:12:32 +00:00
Jacques Le Roux dfbacd84c2 No functional change, removes an useless EntityListIterator initialisation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798335 13f79535-47bb-0310-9956-ffa450edef68
2017-06-10 19:42:08 +00:00
Jacques Le Roux 41d19f3d1c Improved: EntityListIterator closed but not in case of exception
(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
2017-06-10 09:12:05 +00:00
Jacques Le Roux 17af201267 No functional changes.
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
2017-06-06 14:58:11 +00:00
Jacques Le Roux e408aee01c Improved: EntityListIterator closed but not in case of exception
(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
2017-06-06 14:35:33 +00:00