Commit Graph
167 Commits
Author SHA1 Message Date
Jacques Le Roux daa2c243a9 "Applied fix from trunk for revision: 1859877"
------------------------------------------------------------------------
r1859877 | jleroux | 2019-05-24 15:47:08 +0200 (ven. 24 mai 2019) | 10 lignes

Fixed: Services allow arbitrary HTML for parameters with allow-html set to "safe"
(OFBIZ-5254)

This was reopened after discussion at 
https://markmail.org/message/jnaitmwahjcjmdn5

This is a new solution which follows the work done with OFBIZ-6669 and OFBIZ-10187
Roughly said, it uses org.owasp.html.PolicyFactory and org.owasp.html.Sanitizers

Thanks: Christoph Neuroth for report
------------------------------------------------------------------------


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1859878 13f79535-47bb-0310-9956-ffa450edef68
2019-05-24 13:51:26 +00:00
Jacques Le Roux 1c73989942 Implemented: 'Reserve After Date' for order items
(OFBIZ-10534)

While creating orders from the backend, we have the option to set parameters 
like 'Ship After Date' and 'Ship Before Date' to manage the fulfilment cycle 
more efficiently. 

Inventory gets reserved for the product based on a FIFO basis. Sometimes the 
fulfilment time for the order is high and inventory unnecessarily gets locked 
for some time period.
 
We can introduce a new parameter (at order item level) 'Reserve After Date' 
which will indicate the date only after which reservation can happen. 
In this way, we can manage the stock availability more efficiently.
 
This issue relates to OFBIZ-10518

Thanks: Deepak Nigam  for the effort, Deepak Dixit for a review and suggestions

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839914 13f79535-47bb-0310-9956-ffa450edef68
2018-09-03 08:15:08 +00:00
Deepak Dixit f21663a651 Fixed: Wrong permission action leads to error
(OFBIZ-10405)
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831608 13f79535-47bb-0310-9956-ffa450edef68
2018-05-15 06:20:05 +00:00
Nicolas Malin 7f8189de69 Implemented: Use agreement on drop shipment process (OFBIZ-10227)
Extend the drop shipment process to manage an agreement for the supplier related to the order context.
For a supplier we have different agreements with same products but on different prices

Agreement A
  GIZMO-1 100€
  GIZMO-1 110$
Agreement B
  GIZMO-1 90€
Agreement C
  GIZMO-1 600¥

During sales order process we resolve the purchase agreement that match the case and put on OrderItemShipGroup related to the supplier. Like that when the drop shipment process run it to resolve the product price for the agreement present on the OrderItemShipGroup. With this implementation we have an adaptable system to manage complex case.

Properly this patch implemented :
  an attribute on entity OrderItemShipGroup.supplierAgreementId
  an attribute on entity OrderHeader.agreementId (necessary when you update the order to keep the price)
  update the service caculatePurchasePrice for resolve the price from a agreement if it's present
  update the shoppingCart to insert a purchase agreement

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825002 13f79535-47bb-0310-9956-ffa450edef68
2018-02-21 20:40:53 +00:00
Michael Brohl 076a2f62d8 Improved: EmailServices.sendMailFromScreen improved to take multiple
attachments with appropriate type along with several email fixes.
(OFBIZ-9395)

This patch fixes a number of issues combined in a patch because of the 
code dependencies.

1. it enables to add BCC adress(es) to service 
OrderServices.sendOrderNotificationScreens to oversteer 
ProductStoreEmailSetting of BCC the same was as for CC.

2. a method UtilValidate.isEmailList(String) is added to check a 
comma separated list of email addresses, used for example to check the 
String passed to the new BCC field for an Order-Notification.

3. there are improvements in EmailServices.sendMailFromScreen. The 
attachment type of MailAttachments is now not only .pdf but depends on 
the specific file. This has not been the case before - the mime type was
always hard coded as .pdf. The same goes for the bodyPart content-type 
which is now set to the passed content type or the default text/html 
type. Before this was also always set to text/html. 
Additionally, an attachment that has the mime-type text/plain is not 
rendered with the fop-renderer anymore but with a simple text-renderer. 
Therefore it is possible to send an CSV file as attachment now.

The patch also refactors some catch-Blocks in the 
EmailServices.sendMailFromScreen by using multi-catch since the e
xception handling is always the same.

Thanks Martin Becker for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1805459 13f79535-47bb-0310-9956-ffa450edef68
2017-08-18 19:10:41 +00:00
Deepak Dixit deabc873e1 Improved: Convert QuoteTerm entity CRUD service to entity-auto (OFBIZ-8903)
Thanks  Pawan Verma for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1787818 13f79535-47bb-0310-9956-ffa450edef68
2017-03-20 17:39:21 +00:00
Deepak Dixit 112a083c17 Fixed: Remove sales order item fact related services from order component. As SalesOrderItemFact entity define in bi component so these services should reside in bi component (OFBIZ-9213)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782660 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:50:17 +00:00
Deepak Dixit 8ffec06b64 Fixed: Update Services that sets non-pk fields to null if not passed, if non-pks not passed than it should remain unupaded.
(OFBIZ-8722)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768239 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 16:28:57 +00:00
Arun Patidar 91a7f26b7b Implemented: Added CRUD services for ProductAverageCostType, ProductCategoryContentType, ProductCategoryType, ProductCategoryTypeAttr, ProductContentType, ProductFeatureApplType, ProductFeatureIactnType, ProductMaintType, ProductMeterType, ProductOrderItem, ProductPriceActionType, ProductPriceAutoNotice, ProductStoreGroupType, ProductType, ProductTypeAttr and StatusType entities. Also converted services of ContactMechLink to entity-auto.
(OFBIZ-8731)(OFBIZ-8732)(OFBIZ-8733)(OFBIZ-8734)(OFBIZ-8735)(OFBIZ-8736)(OFBIZ-8737)(OFBIZ-8762)(OFBIZ-8763)(OFBIZ-8764)(OFBIZ-8765)(OFBIZ-8766)(OFBIZ-8771)(OFBIZ-8772)(OFBIZ-8773)(OFBIZ-8774)(OFBIZ-8807)

Thanks: Rahul Singh, Chinmay Patidar, Rohit Koushal and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768080 13f79535-47bb-0310-9956-ffa450edef68
2016-11-04 19:04:55 +00:00
Arun Patidar 462e91ffb6 Implemented: Added CRUD services for CountryAddressFormat, ExampleFeatureApplType, GoodIdentificationType, InventoryItemType, InventoryItemTypeAttr, InvoiceContentType, InvoiceItemTypeAttr, InvoiceItemTypeMap, InvoiceType, NeedType, OrderAdjustmentTypeAttr, SalesOrderItemFact, SegmentGroupType, ShipmentGatewayConfigType, ShipmentGatewayDhl, ShipmentGatewayFedex, ShipmentType, ShippingDocument and ShoppingListType entities.
(OFBIZ-8087) (OFBIZ-8204) (OFBIZ-8245) (OFBIZ-8248) (OFBIZ-8249) (OFBIZ-8257) (OFBIZ-8261) (OFBIZ-8267) (OFBIZ-8270) (OFBIZ-8279) (OFBIZ-8284) (OFBIZ-8437) (OFBIZ-8439) (OFBIZ-8455) (OFBIZ-8460) (OFBIZ-8461)
(OFBIZ-8470) (OFBIZ-8473) (OFBIZ-8478)

Thanks: Rohit Koushal, Aman Mishra, Chinmay Patidar and Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767101 13f79535-47bb-0310-9956-ffa450edef68
2016-10-29 09:01:09 +00:00
Arun Patidar df0b68f720 Implemented: Added CRUD services for GlFiscalType, GlResourceType, GlXbrlClass, GlResourceType, InvoiceAttribute, InvoiceItemAssocType, InvoiceNote, MarketingCampaignNote, OrderContent, SalesOpportunityCompetitor
(OFBIZ-8237) (OFBIZ-8238) (OFBIZ-8239) (OFBIZ-8240) (OFBIZ-8256) (OFBIZ-8258) (OFBIZ-8268) (OFBIZ-8274) (OFBIZ-8288) (OFBIZ-8431)

Thanks: Rahul Singh Kushwah, Rishi Solanki and Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766083 13f79535-47bb-0310-9956-ffa450edef68
2016-10-21 17:39:47 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Divesh Dutta a2d99d0430 [OFBIZ-7190] Now CSR should be able to cancel order items of multiple ship groups. Also CSR should be able to cancel quantities less than ordered quantity. This should also fix OFBIZ-7255. Thanks Ankush Upadhyay for your patch. Thanks Mohammad Kathawala and Ratnesh Upadhyay for reporting the issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749111 13f79535-47bb-0310-9956-ffa450edef68
2016-06-19 00:46:55 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Jacques Le Roux b681f251df A patch from Ingo Wolfmayr for "Email-Notification send multiple times" - https://issues.apache.org/jira/browse/OFBIZ-7025
Enable E-Mail Notifications
Create order (trigger sendOrderConfirmation)

--> createOrderNotificationLog fails due to missing PK in "entity-auto"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1741393 13f79535-47bb-0310-9956-ffa450edef68
2016-04-28 08:47:12 +00:00
Nicolas Malin b038416b9b I converted following services from simple to entity-auto :
createOrderNotificationLog
    createOrderItemBilling
    createOrderAdjustment
    updateOrderAdjustment
    createOrderAdjustmentBilling
    createOrderShipment
    updateOrderShipment
    deleteOrderShipment
    createCommunicationEventOrder
    removeCommunicationEventOrder
    createOrderItemShipGroup
    createOrderContactMech
    removeOrderContactMech
    createOrderTerm
    removeOrderTerm
    createOrderRequirementCommitment

And from java to entity-auto for createOrderPaymentPreference
Related issue OFBIZ-6854.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726542 13f79535-47bb-0310-9956-ffa450edef68
2016-01-24 19:06:32 +00:00
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
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
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 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 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 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 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
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 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
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 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
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
Andrew Zeneski 7087dc3d12 added condition to disable tax calculation when using the saveUpdatedCartToOrder services; setting facility ID when calling loadCartFromOrder
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1026520 13f79535-47bb-0310-9956-ffa450edef68
2010-10-22 22:43:27 +00:00
Jacopo Cappellato 8c0e270f51 Added ability to create new shipment groups to an existing order. This also fixes a bug mentioned in one of the comments to "OFBIZ-1809" (duplicated ship groups were assigned to newly created items when they were not assigned to the first ship group). Misc code formatting fixes that I did while wading thru the code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980655 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 05:37:28 +00:00
Erwan de Ferrieres abfdde6bfb OFBIZ-3765 - Use CustomMethod for select order, quote and invoice hook to resolve id (https://issues.apache.org/jira/browse/OFBIZ-3765)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954388 13f79535-47bb-0310-9956-ffa450edef68
2010-06-14 09:38:33 +00:00
Ashish Vijaywargiya 51cbf6993d Adding statusId optional input parameter in createOrderPaymentPreference service.
Thanks Divesh for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936260 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 11:35:55 +00:00
Ashish Vijaywargiya 87b71cced0 Applied patch from jira issue - OFBIZ-3706 - updateOrderPaymentPreference service should not be dependent on flag cancelThis to cancel status of OrderPaymentPreference record.
Thanks Divesh & Pranay for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935123 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 04:49:07 +00:00
Scott Gray bdb8aa094b Removed a service definition for an implementation that was removed quite some time ago.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931788 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:39 +00:00
Adam Heath d6c2eb3e58 In createOrderNote, set the allow-html attribute on the note parameter
to be the same as createNote.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930319 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 16:46:25 +00:00
Ashish Vijaywargiya 8f83bfeda0 The screen was broken for CommunicationEventOrder.
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
2010-03-26 10:25:08 +00:00