Steps regenerate error:
1) Hit url: https://localhost:8443/ordermgr/control/orderentry
2) Select purchase order with supplier
3) Add product for order
4) Click on the productId from showcart page
it will generate error as following
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productdetail: java.lang.NullPointerException: Cannot get property 'productStoreId' on null object (Cannot get property 'productStoreId' on null object)
Notes from Mridul:
As Joe has already stated that we need to do few adjustments in the code based on presence of productStoreId. I would vote for:
1. Showing all reviews.
2. Skipping surveys.
The third section, which is the most important one and needs productStoreId is getProductVariantTree service invoked in ProductDetail.groovy (line 232). getProductVariantTree service needs productStoreId to get available inventory. In case of PO's we don't need to check for available inventory at all. Now for being able to use the same code to display product detail page in case of a PO, we will need to make modifications to getProductVariantTree service too, which can be done in two ways:
1. Add a boolean IN attribute checkInventory to service definition, if its true check the available inventory and if false do not.
2. A check on productStoreId in the implementation can serve our purpose too.
I like #1 more as it won't eliminate importance of productStoreId in case of a sales order. Looking forward to suggestions from community to handle this situation.
Thanks Amit for the contribution. Mridul Thanks a lot for providing useful notes for the implementation.
Guys, I appreciate your coordination on this!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@882618 13f79535-47bb-0310-9956-ffa450edef68
1) Make createProductReview service definition more generic, so that it can take all nopk fields as IN parameters.
2) Change field value in "productreview.ftl" because field "postedAnonymous" is not a boolean type in ProductReview entity.
3) Make the service implementation more generic so that, it can be used for unregistered users also.
4) Put checks on pendingReviews.ftl to handle case of anonymous user.
Thanks Awdesh for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@824675 13f79535-47bb-0310-9956-ffa450edef68
if a different order comes for verification and does have the same product then the country of origin will automatically populate on verify order screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@801675 13f79535-47bb-0310-9956-ffa450edef68
Although I have't had a chance to look on this issue, but now here you go.
The subject missing error was coming on the console again and again although it was sending emails.
In case of any error like missing subject it was sending email again and again.
I see the orderComplete notification four times on my machine.
Here is the sample log message of one of the service sendShipmentCompleteNotification which was failing:
Exception: org.ofbiz.service.ServiceValidationException
Message: Unknown parameter found: [sendShipmentCompleteNotification.subject]
---- stack trace ---------------------------------------------------------------
org.ofbiz.service.ServiceValidationException: Unknown parameter found: [sendShipmentCompleteNotification.subject]
org.ofbiz.service.ModelService.validate(ModelService.java:638)
org.ofbiz.service.ModelService.validate(ModelService.java:552)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:482)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:221)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:159)
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:70)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:242)
java.lang.Thread.run(Thread.java:619)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@799889 13f79535-47bb-0310-9956-ffa450edef68
These associated products are then shown to the customer on the product pages as "Customers who bought this item also bought: ..." sorted by popularity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798500 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
I have tested this patch extensively and now things looks more accurate.
I agree with the issues specified from Mridul in the jira issue.
Thanks Mridul for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786013 13f79535-47bb-0310-9956-ffa450edef68
Following points are covered in this patch.
-- Part of weight package screen ( calculate online shipping rate from UPS in weight package screen ),
-- Now instead of calling "upsRateInquire" service, called upsShipmentConfirm and upsShipmentAccept service
Thanks to Akash Jain, Pranay Pandey & others involved in this contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784099 13f79535-47bb-0310-9956-ffa450edef68
-- Worked on "Warning Form". Now when newEstimatedShippingCharges is greater/less than 10% of estimatedShippingCharges then shown warning form.
Thanks Akash Jain for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@782931 13f79535-47bb-0310-9956-ffa450edef68
I have cursory reviewed the code and did the functional testing. And found functionality working fine.
Thanks Akash Jain for your contribution.
Specially thanks to other members involved in this work are Divesh, Pranay & Vikas.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@782258 13f79535-47bb-0310-9956-ffa450edef68
Minor fix in code to return error and success message.
I will create the "How To" docs for this in next few hours on the OFBiz confluence.
As the present document is present in OFBIZ-1810.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@781926 13f79535-47bb-0310-9956-ffa450edef68
ProductStore. A new field lastInventoryCount on ProductFacility is also added and it is a mirror of availableToPromiseTotal of a product at a certain point of time and is
being updated every hour by a schedule service to reflect the current value of inventory count in the system.
If showOutOfStockProducts is equals to N and for a particular product lastInventoryCount is <= zero, then this particular product will not be shown on the site. If the inventory
count becomes +ve again then the product will be again available on the site, in minimum one hour time but could possibly take long depending on the inventory levels.
Patch from Ratnesh Upadhyay, part of OFBIZ-2480 (https://issues.apache.org/jira/browse/OFBIZ-2480).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778451 13f79535-47bb-0310-9956-ffa450edef68
Product entity to Y/N where Y means item is out of stock and N means item is in stock. This process will be efficient in a way that the database interaction to check
whether item is out of stock will not take place everytime products are loaded on the ecommerce site.
Applied my patch (initially contributed by Amit Sharma, I have done some improvements over this patch), part of OFBIZ-2480 (https://issues.apache.org/jira/browse/OFBIZ-2480)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777498 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