Commit Graph
57 Commits
Author SHA1 Message Date
Mathieu Lirzin 9b68a55d64 Improved: Compile groovy integration tests
(OFBIZ-11165)

Since there is no need for dynamic reload for integration tests,
it is better to compile Groovy tests.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1865786 13f79535-47bb-0310-9956-ffa450edef68
2019-08-23 18:00:01 +00:00
Pawan Verma 47dae50622 Fixed: Issue of agreement overview does not show names of parties.
(OFBIZ-10900)
Thanks Pierre Smits for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1861849 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 11:48:52 +00:00
Mridul Pathak b61dacdf59 Improved: Unit test case for service - getPayments.
(OFBIZ-9092)

Thanks Deepak Nigam for reporting and providing initial patch and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1861829 13f79535-47bb-0310-9956-ffa450edef68
2019-06-22 09:57:53 +00:00
Jacques Le Roux 08f0b84462 Improved: no functional change, adds missing license headers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860902 13f79535-47bb-0310-9956-ffa450edef68
2019-06-09 13:08:08 +00:00
Jacques Le Roux 28e119027c Improved: Use Groovy Truth instead of UtilValidate Class in Groovy
(OFBIZ-11064)

As we all know, Groovy is a powerful language with great built-in functions. 
Groovy Truth[1] is one of them, which is not used properly in our code base. 
We have used UtilValidate Class to validate arguments for Empty or NotEmpty, 
which can easily be done in groovy with built-in functionality[1].
 
Current Code: if (UtilValidate.isNotEmpty(locations)) { ... }
Groovy Built-in Code: if (locations) { ... }
 
[1] - http://groovy-lang.org/semantics.html#Groovy-Truth
 
We need to careful for some points while we change this:
Like:
maxRetry = 0
if (!maxRetry)
{  // Not set, use a default  maxRetry = -1 }

Because groovy evaluates zero to be false, it wouldn't be possible to set
maxRetry to zero.  So it's best not to use groovy truth for null-checks on
numbers in some cases. 
 
Thanks: Pawan Verma

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1860051 13f79535-47bb-0310-9956-ffa450edef68
2019-05-26 10:36:16 +00:00
Suraj Khurana 84f795d2e0 Improved: Unit test case for service - quickSendPayment.
(OFBIZ-9086)
Thanks Deepak Nigam for reporting the ticket and Anushi Gupta for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858283 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 15:34:37 +00:00
Suraj Khurana 46140993a1 Improved: Unit test case for service - setPaymentStatus.
(OFBIZ-9084)
Thanks Deepak Nigam for reporting and Anushi Gupta for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858267 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 12:02:22 +00:00
Suraj Khurana 3993d23bf8 Improved: Unit test case for service - createInvoiceContent.
(OFBIZ-8932)
Thanks Deepak Nigam for reporting and Vivek Singh Bisen for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858260 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 09:49:00 +00:00
Suraj Khurana d6fc9b2359 Added: Unit test case for service - createAcctgTrans.
(OFBIZ-1463)
Thanks Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855077 13f79535-47bb-0310-9956-ffa450edef68
2019-03-09 05:07:52 +00:00
Suraj Khurana 612165f982 Fixed: Corrected typo in last commit.
(OFBIZ-9115)
Thanks Michael Brohl for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851179 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 15:55:29 +00:00
Suraj Khurana be6b60a8f6 Added:Unit test case for service - updatePaymentGatewayConfig.
(OFBIZ-9115)
Thanks Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851154 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 08:39:11 +00:00
Suraj Khurana 5283691156 Added:Unit test case for service - createPayment.
(OFBIZ-9083)
Thanks Deepak Nigam for reporting and Yogesh Naroliya for providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1851148 13f79535-47bb-0310-9956-ffa450edef68
2019-01-12 08:14:18 +00:00
Deepak Dixit 42d0e01cbc Improved: Convert createBudget service to entity-auto
(OFBIZ-10715)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1849024 13f79535-47bb-0310-9956-ffa450edef68
2018-12-16 12:21:52 +00:00
Nicolas Malin acfe87067e Improved: Convert InvoiceServices.xml mini lang to groovy
(OFBIZ-9986)
Convert services getNextInvoiceId, invoiceSequenceEnforced and invoiceSequenceRestart from minilang to groovy.
This is a subtask of OFBIZ-9350 Deprecate Mini Lang

Thanks to Leila Mekika for this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839778 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 17:29:55 +00:00
Deepak Dixit a4da06cb56 Fixed: Not able to delete PartyRate
(OFBIZ-10483)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835964 13f79535-47bb-0310-9956-ffa450edef68
2018-07-15 10:47:55 +00:00
Akash Jain b792635558 Fixed: Not able to expire the rate amount and an error is displayed in Workeffort (OFBIZ-10114)
Thanks, Rubia Elza Joshep and Chandrashekhar Dhakad for your contibution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835887 13f79535-47bb-0310-9956-ffa450edef68
2018-07-14 09:02:51 +00:00
Nicolas Malin 55c64af90d Improved: Resolve shipping address from Invoice
(OFBIZ-10249)
In some country (like european) you need to indicate on your sales invoice where you ship the finish good product related.
To help this case, I added a new worker function (InvoiceWorker.getShippingAddress) to found information from an invoice and improve the generic EditInvoice.groovy and the invoice ftl template to display it as example.
To homogenize postal address displaying with order I use the subscreen PartyScreens.xml#postalAddressPdfFormatter on the invoice ftl template

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1835028 13f79535-47bb-0310-9956-ffa450edef68
2018-07-03 21:58:32 +00:00
Nicolas Malin b48d0cadc5 revert revision 1830301 that contains mix improvement, i will recommit them correclty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1830302 13f79535-47bb-0310-9956-ffa450edef68
2018-04-27 07:26:33 +00:00
Nicolas Malin 2695743cae Fixed: ConfigXMLReader - Events are not executed in the order defined
(OFBIZ-10369)
The events contained in the controller configuration for first-visit, pre-post processor and before-after login are executed in arbitrary order rather than the defined order.
If we define an event configuration as follow:

    <after-login>
        <event name=keepCartUpdated type=java path=org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents invoke=keepCartUpdated/>
        <event name=restoreAutoSaveList type=java path=org.apache.ofbiz.order.shoppinglist.ShoppingListEvents invoke=restoreAutoSaveList/>
        <event name=saveCartToAutoSaveList type=java path=org.apache.ofbiz.order.shoppinglist.ShoppingListEvents invoke=saveCartToAutoSaveList/>
    </after-login>

We wait that OFBIz run keepCartUpdated, restoreAutoSaveList and after saveCartToAutoSaveList event but the HashMap who organise them return arbitrary order and can return saveCartToAutoSaveList, keepCartUpdated and restoreAutoSaveList. Convert the HashMap to LinkedHashMap help to keep the loaded order.

Thanks to Vikas Mayur for solve this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1830301 13f79535-47bb-0310-9956-ffa450edef68
2018-04-27 07:21:47 +00:00
Deepak Dixit 7e19de9966 Improved: Replace all delegator findByAnd and findOne method calling by EntityQuery methods (OFBIZ-10029)
Applied slightly modified patch, rearrange import properly, 
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818003 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 12:03:17 +00:00
Deepak Dixit 63258e90f8 Reverted r#1817989, workign fine locally, reverted for now will check and commit again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817998 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 10:42:32 +00:00
Deepak Dixit d1f85a7e5d Improved: Replace all delegator findByAnd and findOne method calling by EntityQuery methods (OFBIZ-10029)
Applied slightly modified patch, rearrange import properly, 
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817989 13f79535-47bb-0310-9956-ffa450edef68
2017-12-13 09:21:33 +00:00
Nicolas Malin 526d09eb47 Improved: Migrate BudgetServiceTest from minilang to groovy
With the issue "Convert BudgetServices.xml mini lang to groovy" (OFBIZ-9985)
and issue "Implement Groovy test in testtools" (OFBIZ-9996)
I converted the related test AutoAcctgBudgetTests from minilang to groovy.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816645 13f79535-47bb-0310-9956-ffa450edef68
2017-11-29 19:18:51 +00:00
Nicolas Malin 904c3d1fd9 Improved: Convert BudgetServices.xml mini lang to groovy (OFBIZ-9985)
Just migrate BudgetServices.xml to groovy file version related to OFBIZ-9350 Deprecate Mini Lang
Thanks to Leila Mekika for resolve this issue

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1816482 13f79535-47bb-0310-9956-ffa450edef68
2017-11-27 18:04:08 +00:00
Akash Jain b18fdf7f7d Fixed: Issue while removing RateAmount Record, applied patch from jira issue (OFBIZ-9904)
Thanks, Parakh Maheshwari and Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1813608 13f79535-47bb-0310-9956-ffa450edef68
2017-10-28 11:11:19 +00:00
Jacques Le Roux 15deb25aae No functional change, fixes wrong ASL2 headers I introduced recently
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812235 13f79535-47bb-0310-9956-ffa450edef68
2017-10-15 21:02:52 +00:00
Jacques Le Roux 2382cd9cbd No functional change, these files were missing the ASL2 header
I stop here, please help at https://ci.apache.org/projects/ofbiz/rat-output.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1812225 13f79535-47bb-0310-9956-ffa450edef68
2017-10-15 17:40:59 +00:00
Jacques Le Roux a115d37998 Fixes a test issue introduced with r1802668
See https://ci.apache.org/builders/ofbiz-trunk-framework-plugins?numbuilds=30

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1803406 13f79535-47bb-0310-9956-ffa450edef68
2017-07-30 08:36:35 +00:00
Nicolas Malin c8fd7699e4 Fixed: remove uneeded makeValidContext call with Groovy DSL improvement on run service at revision 1802798
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802811 13f79535-47bb-0310-9956-ffa450edef68
2017-07-24 13:07:52 +00:00
Deepak Dixit acbf92baff Improved: Used ModelService.IN_PARAM instead of hard coded "IN" in groovy file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802753 13f79535-47bb-0310-9956-ffa450edef68
2017-07-24 06:13:11 +00:00
Deepak Dixit cd94155947 Fixed: Fixed typo done at r#1802668, Corrected service name from filteredRatesList to filterRateAmountList
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802752 13f79535-47bb-0310-9956-ffa450edef68
2017-07-24 06:01:41 +00:00
Nicolas Malin 0c9a81f118 Improved: With new groovy DSL for query one, simplify groovy rate amount services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802712 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 22:42:56 +00:00
Nicolas Malin d74177348b Fixed: For service getRateAmount align the level variable on 'rateTypeId' by default and correct name workEffort to workEffortId for more coherence with other.
This escape a potential failure on groovy instanciation if the service found a rateList without dedicate service, Thanks Scott for this remark

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802670 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 10:37:56 +00:00
Nicolas Malin 0e96e6daad Fixed: For service getRateAmount don't use parameters map to propage variable to ensure the isolation,
Thans Scott for this remark

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802668 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 10:26:15 +00:00
Nicolas Malin 8b96173d79 Fixed: For service getRateAmount move the periodTypeId default value from groovy to service definition,
Thans Scott for this remark

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802666 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 09:46:47 +00:00
Nicolas Malin 3cce62448a Fixed: Remove unnecessary UtilValidate.is(Not)Empty used in RateAmount groovy service,
Thans Scott for this remark

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1802665 13f79535-47bb-0310-9956-ffa450edef68
2017-07-22 09:42:08 +00:00
Deepak Dixit 244d7505fa Fixed: Moved groovy file GetPartyNameForDate.groovy form WEB-INF/actions to groovyScripts folder added in r#1751109
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801362 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 09:56:44 +00:00
Arun Patidar 35b93c82a1 Added missing file those of part of 1801320, also updated the path in screens. (OFBIZ-6774)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801359 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 09:28:35 +00:00
Deepak Dixit dbf9efc127 Fixed: The copyAgreement service fails (OFBIZ-9143)
Thanks Jacques and Renuka for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801357 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 09:10:14 +00:00
Deepak Dixit 006bb6ac0e Improved: Code improvement, Used ModelService.IN_PARAM instead of hard coded string, Also update the string comparison.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801356 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 09:07:57 +00:00
Deepak Dixit a3f7437a09 Improved: Remove cancelAgreement service and added expireAgreement entity-auto service. (OFBIZ-9480)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801355 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 08:57:20 +00:00
Deepak Dixit d53f44e420 Fixed typo,
Thanks Renuka for reporting this issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801353 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 08:45:05 +00:00
Arun Patidar abbece0f9f Improved: Convert AgreementServices.xml mini-lang to groovyDSL. (OFBIZ-9460)
Thanks Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801342 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 23:45:10 +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
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
Gil Portenseigne f2fac1a18f Fixed: Convert AcctgAdminServices.xml mini-lang to groovyDSL (OFBIZ-9372)
Related to task OFBIZ-9350 Deprecate Mini Lang, convert services createPartyAcctgPreference, getPartyAccountingPreferences, setAcctgCompany, updateFXConversion and getFXConversion from mini-lang to groovyDSL
Commited slightly modified patch from Leila, implementing Jacques and Deepak recommendations.

Thanks to Jacques and Deepak for the review, Leila for the provided patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796731 13f79535-47bb-0310-9956-ffa450edef68
2017-05-30 07:14:27 +00:00
Nicolas Malin 0185345b7a Fixed: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
related to task OFBIZ-9350 Deprecate Mini Lang, convert service updateRateAmount, deleteRateAmount updatePartyRate and deletePartyRate from mini-ang to groovyDSL
Thanks to Deepak for the review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796428 13f79535-47bb-0310-9956-ffa450edef68
2017-05-27 16:23:31 +00:00
Deepak Dixit d5bcaaedf8 Improved: Inconsistent String Comparisons, Applied application groovy patch from jira issue. (OFBIZ-9254)
I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.

Thanks Devanshu Vyas for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1795341 13f79535-47bb-0310-9956-ffa450edef68
2017-05-16 17:16:05 +00:00
Jacques Le Roux 1ac56553bd Fixed: report GL Account Trial Balance
(OFBIZ-9216)


Go to Accouting --> Organization GL Settings -->Accounting button – >> 
reports --> GL Account Trial Balance
this report the give me an error 

Thanks: Moatasim Al Masri for report, Pierre Smits for patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783202 13f79535-47bb-0310-9956-ffa450edef68
2017-02-16 13:32:00 +00:00
Arun Patidar 2bfc816e9b Improved: Removed semicolon from all Groovy files of all components.
(OFBIZ-8652)

Thanks: Rohit Koushal, Jacques Le Roux and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767764 13f79535-47bb-0310-9956-ffa450edef68
2016-11-02 19:09:13 +00:00