Commit Graph
16 Commits
Author SHA1 Message Date
SebastianEcomify 8a96462538 Improved: Convert CostService.xml minilang to groovy
(OFBIZ-11595)

Thanks: Sebastian Berg for implementation
2021-02-21 11:38:21 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
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
2016-06-10 14:04:30 +00:00
Nicolas Malin aa476cf1bd Convert CostComponentCalc and WorkEffortCostCalc CRUD service from simple to entity-auto (OFBIZ-5958). The file applications/accounting/script/org/ofbiz/accounting/cost/CostServices.xml and the directory applications/accounting/script/org/ofbiz/accounting/cost are now empty, so I remove it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651229 13f79535-47bb-0310-9956-ffa450edef68
2015-01-12 23:27:25 +00:00
Scott Gray 5c1289599a [OFBIZ-4297] Changed set operation to explicitly return a BigDecimal also changed the updateProductAverageCostOnReceiveInventory service definition so that quantityAccepted is a BigDecimal instead of String. For some reason EL expressions return a String even when performing an operation on numbers. Thanks to Stéphane Ducas for the bug report and suggested fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1134990 13f79535-47bb-0310-9956-ffa450edef68
2011-06-12 21:44:03 +00:00
Vikas Mayur d20b0eb9b7 Moved the accounting permission services to a separate file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930233 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 10:52:06 +00:00
Anil Patel e1b147e9eb Update to average cost calculation process. Patch from OFBIZ-2914. Thanks Ratnesh for implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812744 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 01:28:33 +00:00
Anil Patel 615362534c Use product average cost in COGS transactions. Thanks Sumit for patch. Thanks Vince and Eva for defining requirement and reviewing implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802764 13f79535-47bb-0310-9956-ffa450edef68
2009-08-10 12:36:53 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \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
2009-04-08 10:54:51 +00:00
Jacques Le Roux 8f0c9f4c40 A 1s set of changes in accounting
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
2009-03-19 11:19:14 +00:00
Jacques Le Roux 6c863c92ee A modified old forgotten patch from Rashko Rejmer "Implementation of a service to compute the product average cost" https://issues.apache.org/jira/browse/OFBIZ-1742 - OFBIZ-1742
I changed :
* bsh to groovy (with up to date code : no entity-expr for instance)
* used engine="entity-auto" instead of simple-method (not tested but should be ok)
* Had to introduce encode-output="false" for display type="currency" in ListInventoryAverageCosts form (I will post a comment about that in dev ML)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@747364 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24 13:04:31 +00:00
Adrian Crum 82b31e568c Accounting costs permissions work.
Recommend creating Manufacturing permission service SECA to create manufacturing-specific permissions for the accounting cost services.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600253 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 06:43:12 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacopo Cappellato 0151f032dd Conversion from MIT to ASL2.0 for the files of the accounting component.
Many thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422398 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 07:57:05 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00