To configure SagePay payment gateway transaction types settings.
JLR: this patch contains a bit of labels redundancy, but I prefer to keep them as is. At least it's verbs in Common and can be reused... (why have a Payment label in each app...)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061728 13f79535-47bb-0310-9956-ffa450edef68
system will notify user that it is an invalid coupon code. Earlier the coupon code was accepted but wasn't applied. Also it was preventing the user to add
a correct coupon code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061192 13f79535-47bb-0310-9956-ffa450edef68
ShipmentServices contains some invalid duplicate code that doesn't perform a null check. I think it can just be removed as the correct code is located right below it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1061167 13f79535-47bb-0310-9956-ffa450edef68
The updateGiftCard service has the cardNumber parameter optional but will have an NPE if the card number is not given.
I'd suggest to make this parameter non optional, I'am not sure if a gift card without number makes much sense anyway...
JLR: I checked the code, it's the better solution IMO
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060933 13f79535-47bb-0310-9956-ffa450edef68
Sascha: There are some more issues in the groovy file
In entity field [ContentAssoc.fromDate] set the value passed in [java.lang.String] is not compatible with the Java type of the field [java.sql.Timestamp]
I'm not quite sure why this is going wrong. Maybe we have to explicitly create an Timestamp here.
DataResourceWorker.getDataResourceTextCache(dataResource, "text/html", Locale.getDefault(), templateRoot, delegator);
should be replaced with
DataResourceWorker.getDataResourceText(dataResource, "text/html", Locale.getDefault(), templateRoot, delegator, true);
JLR: this patch allows now to create a content from CMSContentFind but I'm not quire sure all is resolved. I jave also set the fromDate field in the calling screen as Timestamp type, not sure it's needed but it can't hurt. Nevertheless I think there are still some issues. But at least now it does not break
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060744 13f79535-47bb-0310-9956-ffa450edef68
This modified patch solves the find issue but not the create. I have simply kept
if (dataResourceId) {
instead of
if (!dataResourceId) {
in CmsEditAddPrep.groovy
because it's an obvious error (NPE the line after else). But it does not solve another error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060546 13f79535-47bb-0310-9956-ffa450edef68
Martin Kreidenweis fixed some issues in Content/ CMS (see https://demo-trunk.ofbiz.apache.org/content/control/WebSiteCms?webSiteId=CmsSite)
So now it works, but he simultaneoulsy signaled some points.
* He used regular form submit instead of ajax for new content for now, thus:
o ajaxSubmitForm() can't handle new content, it won't reload the form because it doesn't know the new contentId
+ some controller changes would probably be necessary to make that work (return new contentId as JSON)
o nav tree is not updated with ajax submit currently
Sascha:I think there is no need to rewrite all the create content methods to return a JSON Object, we can simply use the initial select function from the js tree.
When i now create a new long/short text and do a "real" form submit the tree notice the new contentId from the parameters and select the corresponding tree node.
JLR: I agree with Sascha, it works well
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060377 13f79535-47bb-0310-9956-ffa450edef68
* For calcHeaderAdj as it's not a service but a private method we should not use return ServiceUtil.returnError here but BigDecimal.ZERO (return was missing Paul reported)
* Same for createInvoiceTerms but not return as it returns void
* Fix all other cases by adding return as suggested by Paul
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060368 13f79535-47bb-0310-9956-ffa450edef68