(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
(OFBIZ-8785)(OFBIZ-8786)(OFBIZ-8790)(OFBIZ-8791)(OFBIZ-8805)(OFBIZ-8834)(OFBIZ-8835)(OFBIZ-8836)(OFBIZ-8837)(OFBIZ-8839)(OFBIZ-8881)(OFBIZ-8888)(OFBIZ-8892)(OFBIZ-8894)(OFBIZ-8916)(OFBIZ-8923)(OFBIZ-8928)
Thanks: Rahul Singh, Rohit Koushal, Amit Gadalay and Rishi Solanki for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768163 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8167) (OFBIZ-8168) (OFBIZ-8169) (OFBIZ-8170) (OFBIZ-8171) (OFBIZ-8208)(OFBIZ-8246)(OFBIZ-8247)(OFBIZ-8259)(OFBIZ-8269)
Thanks: Amit Gadaley for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761231 13f79535-47bb-0310-9956-ffa450edef68
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)
I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix
I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to
"The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".
This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
auto create mode in service definition handles passing fromDate as empty, the implementation provides nowTimeStamp to fromDate.
Thanks Awdesh for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@797009 13f79535-47bb-0310-9956-ffa450edef68
(Modified notes from Jacopo on dev list)
a) if ProductStore.autoApproveInvoice = Y then the invoice will be automatically moved to the ready status, this will trigger the capturePaymentsByInvoice service
and everything will work as now.
b) if ProductStore.autoApproveInvoice = N then the invoice will stay in the in-process status and payments will not be captured.
Redesigned the ECA rules as
updateShipment --> PICKED: trigger createInvoicesFromShipment (invoice in status IN PROCESS is created)
ProductStore.autoApproveInvoice = Y: calls setInvoiceStatus to move the invoice status to READY. setInvoiceStatus trigger capturePaymentsByInvoice.
updateShipment --> PACKED: trigger createInvoicesFromShipment and setInvoicesToReadyFromShipment. The former creates invoice(s) for missing ones and the latter moves the
status of invoice to READY using setInvoiceStatus service. The setInvoiceStatus trigger capturePaymentsByInvoice.
Patch applied from OFBIZ-2740 (https://issues.apache.org/jira/browse/OFBIZ-2740)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@795809 13f79535-47bb-0310-9956-ffa450edef68
Following thing is covered in this patch:
– Added running total functionality for selected invoices.
Thanks Arpit, Rishi for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792222 13f79535-47bb-0310-9956-ffa450edef68
Patch from Akash Jain (reviewed and tested by Pranay Pandey), Part of OFBIZ-2329 (https://issues.apache.org/jira/browse/OFBIZ-2329).
Note: I have done little modifications to the new labels part of this patch.
This issue completes the functionality of the Verify Pick feature added recently. I would like to port these changes to release09.04 later today
if I do not see any objections.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@767394 13f79535-47bb-0310-9956-ffa450edef68
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.
If anyone has a better solution, please feel free to revert this commit and change it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)
Of course this effort to remove trailing spaces has no functional implications.
Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {
So these changes are also in this commit, should not be a problem anyway.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.
using <service name=(.*)engine="simple"(.*)location="org/ofbiz => <service name=$1engine="simple"$2location="component://{componentName}/script/org/ofbiz
with {componentName} done by hand
Also for bsh and groovy (services_test in copmmon). There is no longer any location="org/ofbiz in OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755977 13f79535-47bb-0310-9956-ffa450edef68
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.
I used <service name=(.*)engine="simple"(.*)\R(.*)location="org/ofbiz => <service name=$1engine="simple"$2\R$3location="component://accounting/script/org/ofbiz
More to follow... (component by component)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755925 13f79535-47bb-0310-9956-ffa450edef68