Commit Graph
321 Commits
Author SHA1 Message Date
Nicolas Malin 0d334c4cea Set viewIndex and viewSize as optionnal and if they aren't present resolve viewSize from widgets.properties and set viewIndex to one. related issue OFBIZ-6523, this allow to remove hard-code on link that call findOrder service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686691 13f79535-47bb-0310-9956-ffa450edef68
2015-06-21 08:20:11 +00:00
Nicolas Malin f9f1f01098 Migrate findParty.ftl to form widgets, related issue OFBIZ-6227. Added a new service performFindParty oriented only on search operation (do not contains screen information that managed by screen widget) and convert the FindParty form to works very similar of the older but with widget capacity. Thanks Gil Portenseigne for this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686667 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 19:43:49 +00:00
Divesh Dutta 756535ab00 [OFBIZ-5347] 1) Fixed issue: Shipping costs not recalculated after changing sales order shipment method. For this introduced new service as per the design in this task. 2) This service will loads the cart save new shipping method in cart, re-do all the calculations for tax and promotion, and saves the cart again in order. 3) Also adding new SECA rule which will trigger resetGrandTotal service on new service updateShipGroupShipInfo.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686635 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 14:58:45 +00:00
Christian Carlow 1dd09ed536 Replacing deleteCustRequestParty with expireCustRequestParty to be exectuted with newly added Expire <hyperlink> and implementing deleteCustRequestParty to perform <remove-value> instead of updating.
https://issues.apache.org/jira/browse/OFBIZ-6463

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683953 13f79535-47bb-0310-9956-ffa450edef68
2015-06-06 20:28:34 +00:00
Jacques Le Roux 5abf245037 Implements "Allow to edit ship groups contents after and order has been created" https://issues.apache.org/jira/browse/OFBIZ-5761
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
2014-12-03 10:15:20 +00:00
Jacopo Cappellato 373e0aba28 Moved the "bi" component from the framework to the specialpurpose folder; moved all the dependencies (client code) on the "bi" component from applications components to the "bi" component itself.
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
2014-11-27 06:14:06 +00:00
Jacques Le Roux 8c0a2b1ddf Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
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
2014-10-29 16:37:40 +00:00
Ashish Vijaywargiya 56e5b7b85c Applied bug fix from jira issue - OFBIZ-3833 - Payment capture is less than Order total.
Thanks Mridul for reviewing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1626476 13f79535-47bb-0310-9956-ffa450edef68
2014-09-20 16:30:05 +00:00
Jacopo Cappellato bd36135eef OFBIZ-5692 Wrong eca event set on changeOrderStatus and updateReturnStatusFromReceipt; thanks to Deepak Dixit for the help in testing the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614019 13f79535-47bb-0310-9956-ffa450edef68
2014-07-28 13:09:50 +00:00
Jacques Le Roux 9e17ac349e No functional change, removes an useless commented out attribute line: locale is always present in services contexts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1610380 13f79535-47bb-0310-9956-ffa450edef68
2014-07-14 10:39:36 +00:00
Jacques Le Roux 719181f929 Fixes (more a workaround for now) a bug I found after initializing the BI DB and trying to create a new order
While at it improves a French label

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1538095 13f79535-47bb-0310-9956-ffa450edef68
2013-11-01 23:56:49 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
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
2013-10-28 12:12:43 +00:00
Jacques Le Roux 3e8b20aa81 A patch from Parimal Gain for "Order Report Issue" https://issues.apache.org/jira/browse/OFBIZ-5297
Reports under Order component has following issues -
1. Following reports are not showing any records due some issue
   a. Last three month sales report.
   b. Sales report.
   c. Sales Order discount code report.
   d. Product demand report.
2. Inconsistency in opening the pdf report - some reports are opening in new tab window but some are in the same window.

Following are the checkpoint -
1) Order should be Approved
2) All Dimension table(CurrencyDimension, DateDimension, ProductDimension)should have record.
3) After approval of order, order record should be created in 'SalesOrderItemFact' table. These is the OLAP table used to display data in reports.

Description -
1) If dimension table doesn't have records then following services should execute from service engine -
a) loadAllProductsInProductDimension
b) loadCurrencyDimension
c) loadDateDimension
2) Calling service to create record in 'SalesOrderItemFact' is updated into patch. On commit operation of service 'changeOrderItemStatus' if order item is approved then 'loadSalesOrderFact' service called through SECAS.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519544 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 03:29:45 +00:00
Hans Bakker a47a06a4b1 when a sales order is completed and no payment is created, this will create a payment in the 'not paid' status which can be disabled in the accounting properties file, when it is a order in foreign currency it will use the same exchange rate as when will be used for the related invoice
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1494464 13f79535-47bb-0310-9956-ffa450edef68
2013-06-19 05:53:20 +00:00
Jacques Le Roux 715e5554a2 A slightly enhanced path from Sergei Biletnikov for "Search orders by good identification" https://issues.apache.org/jira/browse/OFBIZ-5031
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
2013-06-15 16:18:42 +00:00
Jacques Le Roux 41a5a96436 A patch from Chatree Srichart for "services_quote.xml#quoteSequence-enforced method is not facet-valid with respect to pattern" https://issues.apache.org/jira/browse/OFBIZ-5135
I got an error message:
Error message: cvc-attribute.3: The value 'quoteSequence-enforced' of attribute 'method-name' on element 'simple-method' is not valid with respect to its type, 'javaClassName'.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1446575 13f79535-47bb-0310-9956-ffa450edef68
2013-02-15 13:28:42 +00:00
Jacques Le Roux bca973778d A patch from Carsten Schinzer for "non facet valid method name in OrderServices.xml#orderSequence-enforced" https://issues.apache.org/jira/browse/OFBIZ-5106
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
2012-12-21 21:41:05 +00:00
Jacques Le Roux 9dcd3564e3 Moves the workflow component to attic
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381884 13f79535-47bb-0310-9956-ffa450edef68
2012-09-07 05:39:26 +00:00
Hans Bakker bb74cd18fa improve the groupbuying function by properly return sales numbers when cancelling an order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1368822 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 07:52:28 +00:00
Ashish Vijaywargiya 712831e20a Bug fix - OFBIZ-4732 - Not able to add Order Item Type for PO while adding item to existing PO.
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
2012-04-26 18:36:09 +00:00
Hans Bakker 3795166f01 enable searching orders by payment status
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307283 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 06:38:11 +00:00
Ashish Vijaywargiya 1d1f6dae2f Bug fix. Setting up transaction-timeout="7200" for updateOrderItems service. This problem comes into picture when you have large number of items in an order. For example: Suppose you have more then 100 _different_ items in the cart, each has large quantity and now you wanted to update any of the item quantity then you will observe transaction timeout issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305733 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 05:26:25 +00:00
Jacopo Cappellato ae4b4f0535 Fixed permission service for creation/update of order adjustment that was completely wrong (probably because it has been copied from another service from the Party component and then not properly completed): the end result was that the service always granted the rights to perform the task.
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
2012-02-27 19:26:23 +00:00
Hans Bakker 573ffea86c remove all component dependent stamements out of commonext and make the systeminfo service more generic and not only serving portlets. Comment by Adrian in the userlist. No conversion program provided because this data is only temporary can can be deleted from a menu
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1292180 13f79535-47bb-0310-9956-ffa450edef68
2012-02-22 08:35:59 +00:00
Joseph Eckard 79e2970eca remove returnItemMapKey as a parameter for createReturnItem since it is not used at all by the service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1234930 13f79535-47bb-0310-9956-ffa450edef68
2012-01-23 18:23:17 +00:00
Hans Bakker 10f1cda23e improve group buying.f admin cancel an order the sold number should be decreased in group order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1222616 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 09:17:19 +00:00
Hans Bakker 8119ecca15 add OrderItemAttribute services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1205353 13f79535-47bb-0310-9956-ffa450edef68
2011-11-23 10:07:51 +00:00
Hans Bakker 41c1baaed2 update groupbying feature
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204894 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 10:09:31 +00:00
Hans Bakker 758b8c69d9 first version of the implementation of group orders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204805 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 04:10:55 +00:00
Hans Bakker cc3702ccb5 allow safe html in workeffort name and desciption
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1189555 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 00:36:17 +00:00
Sascha Rodekamp 9910aa369d FIX: getOrderStatus service is defined with export="true" (https://issues.apache.org/jira/browse/OFBIZ-4419). A patch from Dimitri Unruh sets the export flag to false: The getOrderStatus service is defined with export="true" without to do any authorization checks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171020 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 09:17:40 +00:00
Hans Bakker 483299c5ec New product type: Fixed Asset Usage For Rental of an asset which is shipped from and returned to inventory. Including Junit test and demo data. More explanation will follow in a blog on the 'what is new page'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 06:40:28 +00:00
Hans Bakker 2dc94f4372 added a new accounting configuration option to generate invoice per order or per shipment. can be overridden at the order level
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163083 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:11:16 +00:00
Adrian Crum 3dcb375095 Added notes to quotes. Patch contributed by Anne Jessel (https://issues.apache.org/jira/browse/OFBIZ-4370) with some changes by me.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1160402 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 19:47:58 +00:00
Bilgin Ismet Ibryam 0eb9430e1e A slightly modified patch from Leon - CopyQuote service return new quote id
https://issues.apache.org/jira/browse/OFBIZ-4357

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1152729 13f79535-47bb-0310-9956-ffa450edef68
2011-08-01 10:21:41 +00:00
Vikas Mayur 862e3fcbd5 Added a service that is schedule to run every midnight and will delete the auto-save shopping list for anonymous user that are not updated in last 30 days by default if no configuration is specified. The service is added to keep a check on the shopping list and shopping list items records for anonymous users that may grow quickly with time depending upon the visits to your website.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1147376 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 07:59:06 +00:00
Vikas Mayur ec90011aed Do not allow the anoymous user to update the shopping list item. Changes accidentally committed in last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1147138 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 13:08:07 +00:00
Vikas Mayur ba56ca58dd Modified the shopping list services so that they also support anonymous users.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1147135 13f79535-47bb-0310-9956-ffa450edef68
2011-07-15 12:58:38 +00:00
Hans Bakker 7d62e698fc make notification services for custRequest and commevent website aware
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128984 13f79535-47bb-0310-9956-ffa450edef68
2011-05-30 03:01:29 +00:00
Andrew Zeneski 4b8b77c4f5 added modifiedPrice field to ShoppingListItem to allow shopping lists to be used to stage orders when a shopping cart object is not available
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1091525 13f79535-47bb-0310-9956-ffa450edef68
2011-04-12 18:05:12 +00:00
Hans Bakker 8786aec14c application between invoice and payment now automatically created when a payment is entered on the sales order before or after completion of the order. Payment information now also shown on the sales order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085276 13f79535-47bb-0310-9956-ffa450edef68
2011-03-25 08:01:59 +00:00
Hans Bakker 3714571383 add possibility to have quote terms also on the quote level
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073587 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 03:57:33 +00:00
David E. Jones 682dfda869 More changes to support CUSTOMER_* return types instead of just CUSTOMER_RETURN to facilitate certain customizations; fixed two issues with needsInventoryReceive causing it to not run because the SECA rule looking for it was attached to a service that was often called without passing that in; changed the quickReceiveReturn change of status to received to be more robust by looking at the status instead of figuring it out based on item types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1072551 13f79535-47bb-0310-9956-ffa450edef68
2011-02-20 10:43:02 +00:00
Andrew Zeneski 78f5c470de sometimes just updating order items is not enough, we need the ability to delete the old items before adding in the items currently in the cart; in cases where cancelling an item is not acceptable, this minor fix makes this functionality available if desired (not enabled by default); to enable pass the deleteItems boolean parameter as TRUE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1070606 13f79535-47bb-0310-9956-ffa450edef68
2011-02-14 19:00:09 +00:00
Hans Bakker fc625f71d2 remove log messages from image managment, correct sales report and popular categories
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1068279 13f79535-47bb-0310-9956-ffa450edef68
2011-02-08 07:10:36 +00:00
Hans Bakker 39408b7951 add quoteterm fields to be the same as ordeterm fields, add maintenance screens to the quote, copy quoteterms to orderterms when creating order from quote
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067840 13f79535-47bb-0310-9956-ffa450edef68
2011-02-07 01:56:53 +00:00
Ashish Vijaywargiya 18f391f761 Bug fix. My recent commit r1064953 was creating problem while running test case. Thanks Divesh for providing the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064993 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 10:22:13 +00:00
Ashish Vijaywargiya af8a189c02 Bug fix - Order Complete Mail is being sent to Customer when payment capture fails. Thanks Amit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064090 13f79535-47bb-0310-9956-ffa450edef68
2011-01-27 11:27:22 +00:00
Jacques Le Roux a472bdcb74 A modified patch from Sascha based on an intial patch from Abdullah Shaikh "permission error on cancel order item from ecommerce" (https://issues.apache.org/jira/browse/OFBIZ-3075) - OFBIZ-3075
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
2011-01-14 21:47:23 +00:00
Hans Bakker ca5b09bc7a add a popular categories section to the ecommerce frontpage which is generated from the data warehouse of real orders. Also adjusted the sales reports from the data warehouse by week/month/year. Demo data included is for display only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055774 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 07:37:45 +00:00