Commit Graph
3455 Commits
Author SHA1 Message Date
Jacques Le Roux 8221fd7899 New feature : in the POS adds the possibility to create a client profile (for now : name, email, phone#, card id for promo), email is also used to create an user login with card id as pwd (login/pwd couple follows changes).
The card id is stored in the Person.memberId field. It's used as a promo code. So if the same id is defined as a promocode, any promotion using this promo code will be added to the cart when you select a client from the Client Profile screen. Else a message will pop when selecting the client.
The idea is to generate promo codes and to use them as card id when creating the physical card.

The Client Profile screen (from Promo button in promo panel) allow you to search for all client (all fields empty) or to focus on a client (at least one field files). For now the search use a stric equals but I plan to allow also contains (ie %like%)
You may edit the client profile and as explained above select a client to apply promotions related to his/her card id.
I plan to add a status bar at bottom of the POS screen to see promocodes used (you may still enter arbitrary promo code with the Promo Code button) or even maybe rather the related promotions (but I doubt there will enough place).
The promo code is used as long as the cart is open.

There are also some generics enhancement in PosTransaction not all related to this new feature.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823475 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 09:24:54 +00:00
Bruno Busco 5a89692be7 Changed <container style="screenlet"> pattern to <screenlet...>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823416 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 06:04:13 +00:00
Adam Heath 7f94829d66 Don't use the internal CacheLine value iterator, instead iterating
over the keys, fetching the value, and then removing when it matches.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823319 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 20:49:17 +00:00
Adam Heath f4ce5e6276 Remove unneeded CacheLine import.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823317 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 20:48:43 +00:00
Adam Heath 05f7b61a95 Generics markup for service method signatures.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823313 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 20:39:32 +00:00
Adam Heath d9b4865da7 Misssed a few createCache calls, bother.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823299 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 19:51:50 +00:00
Adam Heath 2275cb5b78 Don't create CacheLineTable each time setPropertiesParam is called.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823298 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 19:49:57 +00:00
Adam Heath 3162462a72 Remove protected method, that isn't used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823289 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 19:38:29 +00:00
Bruno Busco a9635f3d73 Added missing "screenlet-body" tag
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823237 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 17:30:56 +00:00
Jacques Le Roux 8583100478 Fix a recursive bug
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823175 13f79535-47bb-0310-9956-ffa450edef68
2009-10-08 13:43:11 +00:00
Bruno Busco 7c0b046d43 Changed <container style="screenlet"> pattern to <screenlet...>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822940 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 22:24:52 +00:00
Bruno Busco a2d935caa7 Fixed markup to the right screenlet pattern (all screenlet content should be contained in a screenlet-body tag)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822939 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 22:23:16 +00:00
Jacques Le Roux 592440841b No functional changes only in documentation : replace some value-name per value-field plus remove some wrong dashes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822659 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 10:54:11 +00:00
Hans Bakker 682a5ab55b add a new chapter for testtools in the apache technical document
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822639 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 10:03:29 +00:00
Anil Patel ae2521e332 Removed extra container around labels in FindScreenDecorator. Applied style to label. This will eliminate extra div around text and also renders h1, h2 tags instead of using div with style=h1 (h2).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822581 13f79535-47bb-0310-9956-ffa450edef68
2009-10-07 04:22:19 +00:00
Jacques Le Roux 73c3ef546d Anymore BSH scripts but Groovy (while struggling with something that seems related to cache in POS, still investigating, really weird...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822532 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 23:10:12 +00:00
Scott Gray ca09f69b94 Fix an inconsistency in GenericEntity's get methods when the key doesn't exist, get(String) throws an exception but get(Object) just logs a warning. Changed so that both methods just log a warning.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@822276 13f79535-47bb-0310-9956-ffa450edef68
2009-10-06 14:07:04 +00:00
Hans Bakker 23b160661a paging on testsuites in selenium test corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821731 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 10:00:45 +00:00
Adam Heath b15b30ddfd Simple factory lookup, DelegatorFactory switched to abstract class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821669 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 03:00:11 +00:00
Adrian Crum 7fa08f9079 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum a4d68934c9 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adam Heath db585f5d95 Oops, shouldn't have checked these 2 lines in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821577 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 19:04:08 +00:00
Adam Heath 11df2b159a Make 2 reusable schema types, boolean, and aggregate-function.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821576 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 19:01:44 +00:00
Bruno Busco 62652236c1 Cleanup of the screenlet title in all FTL files.
Removed all occurrences of <div class="screenlet-header"><div class="boxhead"></div></div>
Replaced with the new
<div class="screenlet-title-bar"><div class="h3"></div></div>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821476 13f79535-47bb-0310-9956-ffa450edef68
2009-10-04 08:04:35 +00:00
Adam Heath 5a30fec5d9 Bother, forgot to allow default-resource-name at the top level.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821406 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 20:05:58 +00:00
Adam Heath 124ebc7e8d Suppress deprecation warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821405 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 20:01:16 +00:00
Adam Heath f0b81f5331 Make use of feature from last commit, moving default-resource-name to
the top-level.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821404 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 19:54:55 +00:00
Adam Heath 80d220afe8 Allow <default-resource-name> globally.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821403 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 19:53:20 +00:00
Adrian Crum dd22f83c72 Improvements to the GenericDelegator refactoring - based on suggestions from Adam Heath.
I removed the deprecated methods from the Delegator interface. So, any replacements of GenericDelegator.getGenericDelegator(...) with the new factory method will have to include code to replace the deprecated method calls.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821391 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 18:52:29 +00:00
Scott Gray 1c8d1d3ef5 Added generics markup
Another file I missed committing in r821238

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@821242 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 04:27:02 +00:00
Hans Bakker 66083e21a7 update as suggested by Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820542 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 06:06:52 +00:00
Bruno Busco aad170f2e6 Added missing submit button in Example portlet
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820537 13f79535-47bb-0310-9956-ffa450edef68
2009-10-01 05:35:58 +00:00
Jacques Le Roux 5330401ba3 Allow to use another language than the default one (locale) in the POS
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820234 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 10:23:18 +00:00
Hans Bakker 69afe3a033 fix for OFBIZ-2414: if a portlet is included more than once the links do not work, this fix will make these links unique. Sponsored By Antwebsystems Co.Ltd: employee Berm
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820232 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 09:51:01 +00:00
Jacques Le Roux f8169d6e8a GeoData_CN.xml was not yet loaded. This commit fix this issue and load it like other as seed. Thanks to Deepak Dixit on dev ML.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820206 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 08:04:09 +00:00
Hans Bakker 0b7fe13bb1 On request of adrian, put the VISUAL_THEME default record back in the database, however added the function that values in general properties can override this value. Combined the implementation with the definition of the defaultOrganizationPartyId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820178 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 05:16:17 +00:00
Hans Bakker fa47e05d3b apaces for tabs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@820167 13f79535-47bb-0310-9956-ffa450edef68
2009-09-30 04:02:35 +00:00
Vikas Mayur 098961d125 Misc. improvements. Thanks Rohit Jain for implementation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819894 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 12:09:42 +00:00
Hans Bakker 56bf9283a4 missed some more tabs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819864 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 09:15:10 +00:00
Hans Bakker d8de376af1 patch supplied in OFBIZ-2964 by Brett palmer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819863 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 08:57:00 +00:00
Hans Bakker a5dae3dc2c add a sequence number to links if a form is iterated in an iterate section
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819849 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 07:42:20 +00:00
Hans Bakker 4002288c13 default visualthemeId already defined in general properties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819845 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29 07:07:51 +00:00
Scott Gray 3e602a00f1 Changing MySQL's blob type from BLOB to LONGBLOB which moves the maximum column size up to 2GB from 64KB which is more inline with the other db mappings for blobs that seem to range within 2-4GB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819411 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 21:26:47 +00:00
Jacques Le Roux 29722f9a96 A patch from Bruno Busco "Bluelight theme does not support the new help system." (https://issues.apache.org/jira/browse/OFBIZ-2972) - OFBIZ-2972
The attached patch adds all the required files to the Bluelight theme to be compatible with the new help system.
Few styles have also been changed to get Bluelight theme better. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819400 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 20:41:40 +00:00
Jacques Le Roux 52a03030bb A new feature from Shi Yusen (https://issues.apache.org/jira/browse/OFBIZ-2948) - OFBIZ-2948
This change will make it possible to invoke both static method and instance method. See http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#invoke(java.lang.Object,%20java.lang.Object...)
Thanks to Scott for optimisation advice

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819281 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 10:35:21 +00:00
Jacques Le Roux cd3969f7dc Lost in previous revert for r819274
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819278 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 09:18:20 +00:00
Jacques Le Roux 932849b7ed Fix wrong file in r819274 (Chinese Geo data)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819277 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 09:10:03 +00:00
Jacques Le Roux f12f0f263a Add GeoData_CN and geoTypeId="MUNICIPALITY" from Terence NG (https://issues.apache.org/jira/browse/OFBIZ-2970) - OFBIZ-2970
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819274 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 08:55:38 +00:00
Hans Bakker b92a464533 added a section about sending and receiving email and reorganized the framework sections
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819264 13f79535-47bb-0310-9956-ffa450edef68
2009-09-27 06:35:01 +00:00
Hans Bakker 542740f38f spaces for tabs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@819079 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26 01:06:01 +00:00