Commit Graph
94 Commits
Author SHA1 Message Date
Jacques Le Roux 3e509d0215 Improved: no functional change, only formatting
Better have the package after the ASL2 header, also small formatting
2021-11-20 19:01:12 +01:00
Nicolas Malin aa9caa1a2d Fixeded: Convert createInvoiceItemPayrol service from mini-lang to groovy DSL (OFBIZ-11503)
Correct previous commit with remove empty file InvoiceEvents.xml, reoriented the function createInvoiceItemPayrol from InvoiceServices.groovy to new file InvoiceEvents.groovy
2021-09-17 17:08:26 +02:00
Nicolas Malin 4112f1cb4b Improved: Convert createInvoiceItemPayrol service from mini-lang to groovy DSL (OFBIZ-11503)
Thanks to Nitish Mishra for started this issue
2021-09-17 15:19:24 +02:00
Nicolas Malin a8afcff113 Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)
reload the last commit faa59b325f reverted with improve the groovy syntax and remove the empty fiels PaymentServices.xml

Thanks: Sourabh Punyani
2021-09-16 11:01:35 +02:00
Nicolas Malin b2d1161582 Improved: Convert checkAndCreateBatchForValidPayments service from mini-lang to groovy DSL (OFBIZ-11497)
Thanks to sourabh jain I started a solution with your patch
2021-09-16 10:06:42 +02:00
Nicolas Malin 08f4995cc7 Improved: Convert createPaymentGroupAndMember service from mini-lang to groovy DSL (OFBIZ-11493)
Thanks to sourabh jain for the patch
2021-09-16 09:12:54 +02:00
Nicolas Malin 7230aa8046 Improved: Convert createMatchingPaymentApplication service from mini-lang to groovy DSL (OFBIZ-11500)
Thanks to Rohit Koushal to submit the patch
2021-09-15 17:34:58 +02:00
Nicolas Malin 052f347bf7 Improved: Converted the setPaymentStatus service from XML to groovy DSL. (OFBIZ-11482) 2021-09-15 15:46:55 +02:00
Nicolas Malin 73ec939db9 Fixed: Reformat PaymentServices.groovy
No functional change, review the code to down less it :
 * Use groovy syntax
 * Use DSL when is not use as it should
 * Set EntityQuery List or First on multiple line
 * use label and success(Map) DSL method
 * Remove redundant or unnecessary variable instanciation
 * Add missing variable type, for most ide analyser potential
2021-09-15 14:43:19 +02:00
Nicolas Malin 9c538612f5 Improved: Convert createPaymentAndPaymentGroupForInvoices service from mini-lang to groovy DSL (OFBIZ-11490)
Thanks to Sourabh Punyani for initiate the patch
2021-09-14 19:59:31 +02:00
Nicolas Malin 65e955be88 Fixed: No functional change, simplify a conditional 2021-09-14 09:07:34 +02:00
Priya Sharma 7f0c5a78e1 Improved: Convert createPaymentApplication service from mini-lang to groovy DSL (OFBIZ-11481)
Done the following:
- removed mini-lang version of the service, added groovy version and updated the service definition
2021-09-14 08:50:23 +02:00
Saurabh Dixit 8d5dae6b65 Improved: Converted createPaymentFromOrder service from mini-lang to groovy DSL. (OFBIZ-11499) 2021-09-13 13:50:43 +02:00
Nicolas Malin b8f67d2e70 Fixed: Quote and Invoice with null value on refresh base
(OFBIZ-12239)

After a fresh data base init with only seed, if you create your company without invoice or quote prefix, your sequence will be generate with 'null' string where the invoice or quote prefix should be have :

> null10001, null10002, ...
2021-05-14 17:54:19 +02:00
Jacques Le Roux bee1b11831 Fixed: Terms are not shown correctly on the Invoice overview (OFBIZ-12139)
When we have multiple Payment (Net Days) terms on the invoice say
20% in 15Days (FIN_PAY_NETDAYS_1)
80% in 30Days (FIN_PAY_NETDAYS_2)

The terms section shows incorrect term data as shown in the screenshot.

Thanks: Nameet Jain for report and fix, Jacopo for confirmation
2021-01-18 20:19:21 +01:00
Jacques Le Roux 4ff22b46dc Improved: Convert getInvoicePaymentInfoListByDueDateOffset service from mini-lang to groovy DSL (OFBIZ-11486)
Thanks: Devanshu Vyas for report, Nitish Mishra for the patch
2020-08-09 20:14:10 +02:00
Jacques Le Roux cc61673198 Improved: Convert cancelCheckRunPayments service from mini-lang to groovy DSL (OFBIZ-11494)
Thanks: Devanshu Vyas for report, Yogesh Naroliya for the patch
2020-08-09 20:07:51 +02:00
Pawan Verma 034e03abf4 Improved: Inconsistent String Comparisons(OFBIZ-9254)
There are some inconsistencies 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 for your contribution.
2020-07-30 17:01:54 +05:30
Jacques Le Roux 2b04118690 Revert "Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)"
This reverts commit faa59b325f.

It introduced 3 errors in testIntegration, in:
testGlPostingOnCancelCheckRun
testGlPostingsOnVoidPayment
testVoidPayment
2020-07-25 16:06:34 +02:00
Jacques Le Roux faa59b325f Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)
Thanks: Sourabh Punyani
2020-07-25 10:33:17 +02:00
Jacques Le Roux 7c4a117448 Improved: Convert getPaymentGroupReconciliationId service from mini-lang to groovy DSL (OFBIZ-11496)
Thanks: Devanshu Vyas for report and Rohit Koushal for the patch

Improved: Convert createPaymentAndApplication service from mini-lang to groovy DSL (OFBIZ-11484)
Thanks: Devanshu Vyas for report and Anushi Gupta for the patch

Sorry due to a bad handling there are 2 commits in one (squashed)
2020-07-09 14:18:05 +02:00
Priya Sharma 18b21c1e94 [Improved] Convert getInvoicePaymentInfoList service from mini-lang to groovy DSL (#148)
(OFBIZ-11485)

Done following:
- removed the mini-lang implementation of the service
- updated the service definition to point the groovy service
- added the groovy implementation of the service
2020-07-04 14:57:53 +05:30
Pawan Verma 6de4b73074 Improved: Convert getPayments service from mini-lang to groovy DSL(OFBIZ-11495)
Thanks: Devanshu for the report and Yogesh for the patch.
2020-07-01 16:13:33 +05:30
Pawan Verma 20ba868b7d Improved: Convert cancelPaymentBatch service from mini-lang to groovy DSL(OFBIZ-11489)
Thanks: Devanshu for report, Kirti for patch and Jacques for the review.
2020-07-01 15:48:49 +05:30
Jacques Le Roux 5880859c7c Implemented: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)
Thanks: Devanshu Vyas for report and Sourabh Punyani for implementation
2020-07-01 12:05:22 +02:00
Priya SharmaandPriya Sharma 5a144c0bed Improved: Use GroovyBaseScript's makeValue utility methods in each Groovy files (OFBIZ-11779)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-06-28 01:24:32 +05:30
Jacques Le Roux f421af33a3 Improved: Convert createFinAccoutnTransFromPayment service from mini-lang to groovy DSL (OFBIZ-11492)
Thanks: Devanshu Vyas  for report, Anushi Gupta for the patch
2020-06-27 12:06:46 +02:00
Priya SharmaandPriya Sharma 15aec7e8f7 WIP: [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug (OFBIZ-11762) (#185)
* [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug
- Replaced the debug.log methods with the respective groovy utility method
- Enhanced the GroovyBaseScript to entertain the fetch the current class name as the module name for logging
- Overloaded the logError method to entertain throwbale object for better logging
- Removed unused import statements and module variables.

(OFBIZ-11762)

* [Removed]: Extra line spaces. (OFBIZ-11762)

* [Revert]: Unwanted changes. (OFBIZ-11762)

* [Added] Same changes to these files. (OFBIZ-11762)

Co-authored-by: Priya Sharma <priya.sharma@example.com>
2020-06-06 10:17:23 +02:00
c8a7c7dd23 Fixed: Create Payment service throws an exception when receiving payment on order (OFBIZ-11754) (#166)
* [Fixed] Create Payment service throws exception when receiving payment on order
- Since the MODULE variable could not be found, the service was throwing error
- Instead used the groovy method directly to print the log instead, which has access to the module variable implicitly.
- Removed the unused import as Debug class is not longer needed here.

(OFBIZ-11754)

* [Improved] The content groovy services to avoid the error in case we try to log a detail, since the module variable is not found. (OFBIZ-11754)

* Update ContentServices.groovy

* [Improved] Added error logs instead of info logs for service excpetions logging. (OFBIZ-11754)

Co-authored-by: Priya Sharma <priya.sharma@example.com>
Co-authored-by: Suraj Khurana <64310724+surajkhurana@users.noreply.github.com>
2020-05-30 11:53:53 +02:00
Suraj Khurana 15bcc92dd1 Improved: Converted updatePayment service from mini-lang to groovy.
(OFBIZ-11480)
Thanks Devanshu Vyas for reporting and Priya Sharma for the patch.
2020-05-23 17:48:54 +05:30
Suraj Khurana 9e194b0e9a Improved: Converted createPaymentAndApplicationForParty service from mini-lang to groovy
(OFBIZ-11491)
Thanks Devanshu Vyas for reporting and Sourabh Punyani for providing the patch.
2020-05-23 15:57:21 +05:30
Suraj Khurana 21a8bfaef7 Improved: Converted massChangePaymentStatus service from mini-lang to groovy.
(OFBIZ-11498)
Thanks Devanshu Vyas for reporting and Rushikesh Mawal for initial patch.
2020-05-23 15:23:13 +05:30
Suraj Khurana c21683e30b Improved: Converted createPaymentContent, updatePaymentContent services from mini-lang to groovy. (#155)
(OFBIZ-11501)(OFBIZ-11502)
Thanks Devanshu Vyas for reporting and Sourabh Punyani for providing the patch.
2020-05-23 12:38:07 +05:30
Suraj Khurana 89016fa71e Improved: Converted getPaymentRunningTotal service from mini-lang to groovy DSL
(OFBIZ-11488)
Thanks Nitish Mishra for the patch and Devanshu Vyas for reporting and review.
2020-05-23 10:27:50 +05:30
Jacques Le Roux aef9382a9c Implemented: Convert createPayment service from mini-lang to groovy DSL
(OFBIZ-11479)

Better code with Groovy truth

Thanks: Pawan Verma
2020-04-09 14:27:16 +02:00
Jacques Le Roux b8848355d1 Implemented: Convert createPayment service from mini-lang to groovy DSL
(OFBIZ-11479)

jleroux: I have only changed the MODULE name (and uppercased it)

Thanks: Priya Sharma
2020-04-09 11:13:09 +02:00
Aditya Sharma 46e9638424 Fixed: redundant license text
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867745 13f79535-47bb-0310-9956-ffa450edef68
2019-09-30 06:41:03 +00:00
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