From an UI perspective this adds a "View ship group by order item" button which allows to create new ship groups by order items and to move the quantity of the order item between ship groups.
This is the adaptation of the "oisg-management" addon for R12.04 to the trunk. Thanks to Nicolas and Leila from Nereides for their help
For more information refer to the Jira issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1643077 13f79535-47bb-0310-9956-ffa450edef68
Now the "bi" component contains all the dimensions/facts/star schemas and all the logic to populate them and can be easily enabled/disabled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642027 13f79535-47bb-0310-9956-ffa450edef68
The storeOrder service, implemented by the OrderService.createOrder() method, synchronously calls the countProductQuantityOrdered service implemented in Minilang. OOTB, the countProductQuantityOrdered service is only called by the storeOrder service implementation. It's called inside a loop on orderItems.
While intentionally load testing a custom project with JMeter on a weak m1.small AWS machine, I noticed the overhead of the service call for each order item iteration was significant on this slow machine. With only 30 concurrent users the process was blocked by a timeout on the countProductQuantityOrdered service.
I then decided to transform the minilang code into an OrderService.countProductQuantityOrdered() method that can be directly called inside OrderService.createOrder() and also implements the countProductQuantityOrdered service. Hence it avoids the overhead of the minilang service calls in loop while still providing a countProductQuantityOrdered service for possible external uses. For that I moved the definition from Product component to Order component to avoid the hard coded dependency of Order to Product. I then did not cross issues with the same load test.
I also added a test for the countProductQuantityOrdered service by adding an order item of a virtual product (GZ-1006-1) in SalesOrderTest.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635192 13f79535-47bb-0310-9956-ffa450edef68
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".
This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
I propose to extend the search mask for the search orders forms with the "Good identification" field.
A thing which can be improved is :
<option value="">Any good identification</option> (in "applications/order/webapp/ordermgr/order/findOrders.ftl")
adding : "Any good identification" to the resource bundle.
Also, I found a bug which exists from 10.04 at least:
search orders by shipment method does not work properly, because:
{noformat}
applications/order/webapp/ordermgr/WEB-INF/actions/order/FindOrders.groovy
currentCarrierShipmentMethod = delegator.findByAnd("CarrierShipmentMethod", [partyId : carrierPartyId, shipmentMethodTypeId : shipmentMethodTypeId], null, false);
is not correct, the result is the list, so the remedy is simple:
currentCarrierShipmentMethod = EntityUtil.getFirst(delegator.findByAnd("CarrierShipmentMethod", [partyId : carrierPartyId, shipmentMethodTypeId : shipmentMethodTypeId], null, false));
{noformat}
My patch has this fix, but it is necessary to make this fix for other OFBiz version.
jleroux: I simply added the ProductAnyGoodIdentification label, I will commit the groovy fix apart for easier backport
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1493387 13f79535-47bb-0310-9956-ffa450edef68
Error message in the error.log is as follows:
XmlFileLoader: File file:/usr/local/ofbiz-tr-mt12.5/applications/order/script/org/ofbiz/order/order/OrderServices.xml process error. Line: 530. Error message: cvc-pattern-valid: Value 'orderSequence-enforced' is not facet-valid with respect to pattern '[a-zA-Z_]{1}[a-zA-Z0-9_$.]+' for type 'javaClassName'.
Changes all occurrencies of 'orderSequence-enforced' to 'orderSequence_enforced' as only underscore dashed are allowed by the cvc pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1425155 13f79535-47bb-0310-9956-ffa450edef68
If we are creating PO then user can add order item type from show cart screen, so there should be an option to add order item type while adding item to existing PO on edit item screen.
Thanks Deepak.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1331020 13f79535-47bb-0310-9956-ffa450edef68
As a side note, the service is still using incorrectly the _ROLE permission but this is a broader issue (a wrong pattern used everywhere in OFBiz) and for this I would like to fix it everywhere after discussion with the community.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1294291 13f79535-47bb-0310-9956-ffa450edef68
If I cancel an order item from ecommerce. I get, the below error displayed on the page.
The Following Errors Occurred:
Unable to cancel order line : WSCO11640 / 00001 / null
There have been a discussion about it in this thread http://markmail.org/message/dfkudyvbksvls333
How it works: you can cancel an order item if you create it or have the ORDERMGR_CREATE or ORDERMGR_UPDATE permissions (I added the later to Sascha's patch, else the order manager would be annoyed ;o)
I think this makes sense, because AFAIK there are no other UIs than
https://demo-trunk.ofbiz.apache.org/ordermgr/control/editOrderItems?orderId=...
and
https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/orderstatus?orderId=...
to cancel an order item. So nobody should be able to bypass his/her permissions... Of course, let me know if you think I could have missed something, thanks
Note also that we had to remove fullPath="true" in <@ofbizUrl>cancelOrderItem</@ofbizUrl> (orderitems.ftl), to avoid InsecureFormPostToSecureRequest error. I don't think it raises any security issues though, has it's done from a javascript call with hidden orderItemSeqId parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059180 13f79535-47bb-0310-9956-ffa450edef68
The order was not associating with communication event when the new communication event was generating in system for different mail notifications(like OrderConfirmation, OrderComplete, ShipmentComplete etc.)
Now after this commit it will work without any issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927758 13f79535-47bb-0310-9956-ffa450edef68
1. The currency of accounting/facility set to Indian Rupees, its INR
2) Warehouse manager receive a purchase order with an item with price 10 USD
3) In the receive screen, the system prompts for the unit price of 500 INR (the currency exchange rate between INR and USD is about 50 i.e 1 USD -> 50 INR)
4) The user doesn't change the value and after the item is received both the order item (unitPrice) and the supplier product (lastPrice) price are updated with the new unit price of 500 USD.
This is automatically happening with setUnitPriceAsLastPrice service.
With the fix the receive screen now display the original price and its currency, and the price in the facility currency (if different); if the former is edited, and Ajax event update the latter; the latter will be used as inventory item's unit cost; if the former is not updated, then no event will be triggered to change item price or supplier product price.
Bug reported by Jacopo Cappellato and fix provided by Akash Jain. Part of OFBIZ-3389
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896010 13f79535-47bb-0310-9956-ffa450edef68
When we click on ATP/'Qoh button in purchase order for a particular order item it gives error that facility id is not present.Ideally in case of purchase order it should not be dependent on productStore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@818715 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