Commit Graph
156 Commits
Author SHA1 Message Date
Marco Risaliti a657adadf8 Move payment.properties to PaymentGatewayConfig entities (OFBIZ-2269)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763782 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 19:45:31 +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
Adam Heath 14b2ebaad9 Fix lines that *only* have whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@759264 13f79535-47bb-0310-9956-ffa450edef68
2009-03-27 17:02:38 +00:00
Adam Heath fa4be325a3 Fix purely empty whitespace lines, and remove trailing whitespace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757096 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21 23:47:33 +00:00
Jacques Le Roux 9974d414b4 }finally{ => } finally {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751014 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 18:11:39 +00:00
Jacques Le Roux f796e230d2 catch( => catch(
}else => } else

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751005 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:55:43 +00:00
Jacques Le Roux dfebb46e4b }else{ => } else {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751004 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:51:02 +00:00
Jacques Le Roux c9d918afa2 }catch => } catch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751003 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:50:08 +00:00
Jacques Le Roux ec8e04ad01 try{ => try {
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751002 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:49:18 +00:00
Jacques Le Roux 639a784790 while( => while (
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750998 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:38:03 +00:00
Jacques Le Roux fc6db9e886 if( => if (
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750997 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:36:09 +00:00
Jacques Le Roux 13a934f823 In spirit of Adam's r749341 and following http://java.sun.com/docs/codeconv/html/CodeConventions.doc7.html#489
The idea is also that a lot of code is duplicated and then changed (copy/paste). Hence having a rightly formatted code help to keep it rightly formatted
1st (simple) step : ){ => ) { (I checked all occurrences but of course other pairs of eyeballs are welcome)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@750993 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06 17:31:13 +00:00
Bruno Busco efadece8f4 VisualThemes for Ecommerce (https://issues.apache.org/jira/browse/OFBIZ-2106)
The ProductStore entity has now a visualThemeId that selects the VisualTheme to be used in the Ecommerce.
This can be set in the EditProductStore form selecting a theme between the themes that belong to the "ECOMMERCE" VisualThemeSet

To the following ProductStore fields has been applied the entity deprecation pattern:
<field name="oldStyleSheet" col-name="STYLE_SHEET" type="url"></field>
<field name="oldHeaderLogo" col-name="HEADER_LOGO" type="url"></field>
<field name="oldHeaderMiddleBackground" col-name="HEADER_MIDDLE_BACKGROUND" type="url"></field>
<field name="oldHeaderRightBackground" col-name="HEADER_RIGHT_BACKGROUND" type="url"></field>

The first part of the ecommerce header.ftl (the part defining the <HEAD> tag content) has been moved to a new headerHead.ftl file. This allows all the theme defined header.ftl to include this common part that is mainly inclusion of theme defined resources and should never change (code reuse).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746544 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 17:18:25 +00:00
Marco Risaliti 201290e8db A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746341 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 19:11:06 +00:00
Marco Risaliti 30bd7c76df A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745286 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 22:57:14 +00:00
Jacques Le Roux 246090c0a6 BigDecimal in POS (complete). Integration of ofbiz-1945.patch changes (with some modifications) but still not used since it miss some features:
* AutoSave (automatically save current transaction)
* Add a saved sale to the current sale
* Remove a savec sale
* Replace current sale by a saved sale and remove simultaneously the saved sale

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@745257 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 21:16:33 +00:00
Jacques Le Roux 7a259f221f Fixes done automatically by the Label Manager. I changed the wrong ones by hand, see https://issues.apache.org/jira/browse/OFBIZ-2070 - OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737585 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 21:41:15 +00:00
Jacques Le Roux 572b7683e0 All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Jacques Le Roux b680c6cd4a Some French labels fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735829 13f79535-47bb-0310-9956-ffa450edef68
2009-01-19 21:25:25 +00:00
Marco Risaliti 1a3edc02f8 A lot of cleaning into MyPage/MyPortal/Pos/ProjectMgr components and some italian translations (Part of OFBIZ-1780)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735131 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 21:03:44 +00:00
David E. Jones 874f02e9da Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
Jacques Le Roux d5f99b443a A modified patch from Erik Wegner "Patch for all language files (*Labels.xml) to correct language order, find duplicates or invalid entries" (https://issues.apache.org/jira/browse/OFBIZ-2073) - OFBIZ-2073
I removed some hunks, see https://issues.apache.org/jira/browse/OFBIZ-2073?focusedCommentId=12656651#action_12656651



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@726808 13f79535-47bb-0310-9956-ffa450edef68
2008-12-15 21:28:06 +00:00
Jacques Le Roux 72fe2a0d44 I finally prefer to have a demo taxAuthorityRateSeqId defined
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@722901 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 14:30:39 +00:00
Jacques Le Roux f3f8039a63 Useful to have VAT/GST/Sale Taxes working by default in POS
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@722836 13f79535-47bb-0310-9956-ffa450edef68
2008-12-03 10:34:22 +00:00
Adam Heath 7aab4e48e5 Uncomment just enough to get it to compile correctly, so that ant
doesn't try to continously compile it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@713908 13f79535-47bb-0310-9956-ffa450edef68
2008-11-14 02:17:04 +00:00
Jacques Le Roux 1ad9a9c96b A patch from Nicolas Malin "Refactoring product search by id" (https://issues.apache.org/jira/browse/OFBIZ-2027) - OFBIZ-2027
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@709726 13f79535-47bb-0310-9956-ffa450edef68
2008-11-01 17:19:32 +00:00
Jacques Le Roux ae114801a1 Add a "Reason comment" text field to allow the admin put a comment to better qualify the Paid in/out reason (put more details, etc.).
PosTerminalInternTx.reasonComment field stores the comment.
I also sorted Xuilabels.properties and Xuilabels_fr.properties contents

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@707914 13f79535-47bb-0310-9956-ffa450edef68
2008-10-25 22:54:41 +00:00
Marco Risaliti 630a24c1e5 PAYMENT SET REF. button is not working correctly because it sets now only the first payment of the cart (Issue OFBIZ-1998)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@704645 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 19:48:26 +00:00
David E. Jones 7b7c721624 Cleaned up some package names to use the specialpurpose package
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703963 13f79535-47bb-0310-9956-ffa450edef68
2008-10-13 08:20:18 +00:00
Jacques Le Roux 900e45c98b The POS part and i18n of " Add a new "paymentReasonId" on PosTerminalInternTx entity and store payment reason id during Pos Paid IN/OUT" (https://issues.apache.org/jira/browse/OFBIZ-1991) - OFBIZ-1991
I just wonder if we should keep reasonComment as in POS it's redundant. I keep it for now and ask in Jira issue since I don't know how Marco want to use it in WebPos

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703659 13f79535-47bb-0310-9956-ffa450edef68
2008-10-11 13:28:50 +00:00
Marco Risaliti 5d79692a89 Add a new "paymentReasonId" on PosTerminalInternTx entity and store payment reason id during Pos Paid IN/OUT (Issue OFBIZ-1991)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@703568 13f79535-47bb-0310-9956-ffa450edef68
2008-10-10 19:56:17 +00:00
Marco Risaliti 78633b3500 Add a new "terminalName" on PosTerminal entity and then show it on web pos login (Issue OFBIZ-1981)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@701675 13f79535-47bb-0310-9956-ffa450edef68
2008-10-04 17:19:07 +00:00
Jacques Le Roux 92dacb9091 Remove
taxCategory
    taxVatCode
    taxDutyCode
fields from Product entity and all things related. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@690360 13f79535-47bb-0310-9956-ffa450edef68
2008-08-29 18:29:57 +00:00
Jacques Le Roux e7905f2c8c Fix the anti-pattern
if (* != null && *.size() > 0) { 
where * is a variable name (String or Collection). Rewritten to
    if (UtilValidate.isNotEmpty(*)) {

Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {

And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Adam Heath e410552cc9 No longer *copy* the extra support files into the classes dir;
instead, just add them straight to the final jar.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath 2617681b51 Remove svn:executable on a bunch of stuff.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684389 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 00:53:43 +00:00
Jacques Le Roux 06bd215978 Link to Wiki page
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684192 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 08:08:10 +00:00
Adam Heath b6a1ae5e5e Another minor optimization; no longer need to specify classpathref in
all the build.xml files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@681935 13f79535-47bb-0310-9956-ffa450edef68
2008-08-02 03:41:46 +00:00
Jacques Le Roux f2a31a4390 Add a numbers line in keyboard and simplify/clean the code + some comments about XUI 800*600 hardcoded dialog size
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680147 13f79535-47bb-0310-9956-ffa450edef68
2008-07-27 16:40:33 +00:00
Scott Gray d37ce8cb21 * Added a new method to ContactMechWorker to make it easier to get a valid facility contact mech, changed the code in few places to use it
* A few more bsh -> groovy conversions
* Fixed a couple of bugs related to the return pdf template

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677885 13f79535-47bb-0310-9956-ffa450edef68
2008-07-18 12:18:51 +00:00
Jacques Le Roux 641ff10050 Update Copyright to 2008
A real replace in files feature was one of the reasons I use Eclipse 3.4 for near a year now (I even helped to test, a real must have :o)
Not sure previous commit was sent partially or not at all (I needed to update)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677685 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 18:56:25 +00:00
Jacques Le Roux 9d077e3843 Better French labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676698 13f79535-47bb-0310-9956-ffa450edef68
2008-07-14 19:32:29 +00:00
Jacques Le Roux 7d4897273c Sorted and formated, thanks to Bruno's Python script
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676625 13f79535-47bb-0310-9956-ffa450edef68
2008-07-14 15:39:45 +00:00
Jacques Le Roux a0b2e37aa2 Replace PosUiLabels*.properties files by PosUiLabels.xml
Merge done with a Java program I wrote using Saxon transformation done with this XSLT script http://www2.informatik.hu-berlin.de/~obecker/XSLT/#merge
I will amend the indentation later. Anybody an idea to easily do that ? (The Merging program used before is not available, Hans told me)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@676590 13f79535-47bb-0310-9956-ffa450edef68
2008-07-14 13:52:28 +00:00
Jacques Le Roux 5c4a11852b Should not have been in previous commit.
Not the 1st time, this file is a pain (dynamically modified) and I can't svn ignore it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675948 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 13:35:32 +00:00
Jacques Le Roux 939effb6e3 Complete Revision 672822 for specialpurpose
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675947 13f79535-47bb-0310-9956-ffa450edef68
2008-07-11 13:32:46 +00:00
Jacques Le Roux b7ee657e75 . Small change in English Labels
. Makes "PosUiLabels" public and static in PosTransaction class as suggested by Adrian (a best intra-component code practice IMHO)
. Enhance display of the dynamic item discount line on POS receipt (continue to appear only when needed but now on a new line with a description of the amount discounted)
. Add a static sale discount line in POS receipt

This closes "POS : Show discounts (item and sale) on receipt" (https://issues.apache.org/jira/browse/OFBIZ-1656) - OFBIZ-1656


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@675275 13f79535-47bb-0310-9956-ffa450edef68
2008-07-09 18:06:14 +00:00
Jacques Le Roux 724b8e7f8a Stick to usage : use resource in UtilProperties.getMessage in place of file name hardcoded (though this does not make a big difference)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674829 13f79535-47bb-0310-9956-ffa450edef68
2008-07-08 14:04:16 +00:00
Jacques Le Roux 1b71ecf920 To prevent any further misunderstanding, I have renamed the files pos.properties to PosUiLabels.properties. This was used in those java files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674810 13f79535-47bb-0310-9956-ffa450edef68
2008-07-08 13:10:07 +00:00
Jacques Le Roux 5a5105065b To prevent any further misunderstanding I have renamed the files pos.properties to PosUiLabels.properties.
Hans could you please run your properties->xml migration tool against the newly renamed PosUiLabels.properties files (and not XuiLabels.properties of course)?

Thanks


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@674809 13f79535-47bb-0310-9956-ffa450edef68
2008-07-08 13:08:45 +00:00