Commit Graph
2214 Commits
Author SHA1 Message Date
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 a9d1a7a8f5 Applied patch from jira issue: OFBIZ-3633 - Minimum order quantity.
It will work as follows;
We will set the special type price as 'MINIMUM_ORDER_PRICE' for a Product in ProductPrice entity. On the basis of it we will get the minimum order quantity of the product on the basis of this price and sale price.
Will get the minimum order quantity for product by division. For example we have selling price of product P1 is $10.00 and its MINIMUM_ORDER_PRICE is $100.00 then minimum order quantity for the product will be --> 100/10 ==> 10.

To achieve the above ;
write a getMinimumOrderQuantity() method in ShoppingCart.java which takes the itemBasePrice and productId as in parameter, and call it where we add, update the cart items and change the quantity to minmumOrderQuantity if it is less then minimum.

Thanks Deepak & Rishi for the contribution and others for providing valuable comments / suggestions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936228 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 09:36:40 +00:00
Hans Bakker 4b1e6c5fad corrected sequence generator
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936154 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 04:19:22 +00:00
Adam Heath 53dd5cc4eb interfaceProductPromoAction.cartItemModifyException needs to be
optional.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936099 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 22:46:05 +00:00
Adam Heath 7f439d2b60 Remove duplicate OrderItem relation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935382 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:53 +00:00
Adam Heath 95949ff2b7 Add <test-jar> macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935381 13f79535-47bb-0310-9956-ffa450edef68
2010-04-18 18:03:47 +00:00
Bruno Busco 35ac7ec381 A slightly changed (tabs replaced with spaces) patch from Blas Rodriguez Somoza
OFBIZ-3685 - XHTML validation errors round 2 (order)
https://issues.apache.org/jira/browse/OFBIZ-3685
XHTML validation errors

    * Unclosed tags
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

checkinits.ftl
Line 104, 171: duplicated id userLoginId

appendorderitem.ftl
Line 65: invalid a closing

editorderitems.ftl
Line 214: needed td close;

orderagreements.ftl
Line 35,55: hidden input must be inside td.
Line 37,67: attribute valign not valid for tr

orderinfo.ftl
Lines 22-88: form must be inside li.
Lines 232-248: form must be inside td.

orderpaymentinfo.ftl
LInes 122,123,124,155: wrong syntax -> class"label" should be -> class="label"

ordershippinginfo.ftl
Line 62: form must be inside li.
Line 296,297: label for attribute does not match input id
Lines 308, 310: label for attribute does not match select id
Line 318: duplicated unneeded id.
Line 319. 321: label for attribute does not match select id
Lines 499, 519: form must be inside td
Line 527: duplicated span open
Lines 521,546: form must be inside td
Line 552: duplicated span open

quoteInfo.ftl
Line 40: invalid /div

quoteRoles.ftl
Lines 24-44: avoid empty table

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935270 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 22:26:44 +00:00
Scott Gray d4e34a244a Fixed a ton of pointless ServiceUtil.returnError(...) calls, I've left the ones that aren't inside services for now since they require a little more thought to fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935164 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:28:18 +00:00
Scott Gray f8354e3fa4 Get rid of a bunch of Integer instantiations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935163 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:27:15 +00:00
Jacques Le Roux 8f9b43feaa Change B2B and B2C stores names to avoid a drawback in demo order entry see "Order Manager: the Add Gift Certificate button in 3rd screen of order creation does not work" (https://issues.apache.org/jira/browse/OFBIZ-3636) - OFBIZ-3636
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935150 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 08:47:34 +00:00
Scott Gray a0943f6483 Switched a few other String to BigDecimal parsing attempts over to the conversion framework
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935140 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:41:57 +00:00
Scott Gray fc8af449a3 Switch to using the conversion stuff for getting a BigDecimal from a string
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935138 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 07:09:24 +00:00
Scott Gray 39709d7b30 Added missing popup.js which seems to be required during ordermgr checkout
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935131 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 05:36:19 +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
Joseph Eckard 6f30dd1146 cleaned up order header adjustment display
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935032 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:27:05 +00:00
Joseph Eckard 34c5d6304b if the supplierProductId is present (purchase orders) display that instead of productId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935031 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:58 +00:00
Joseph Eckard 7d75d79d96 fix <br> and <hr> tags
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935030 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:51 +00:00
Joseph Eckard 4965884379 remove superfluous <div> tags
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935028 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:44 +00:00
Joseph Eckard e2d685ee94 reformat
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935027 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:37 +00:00
Joseph Eckard 465e40ade2 if the supplierProductId is present (purchase orders) display that instead of productId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935026 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:30 +00:00
Joseph Eckard 6a089b7509 reformat
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935025 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:23 +00:00
Joseph Eckard e31dfdbc84 changed getPurchaseOrderItemDescription to only return the supplierProductName now that the supplierProductId is stored elsewhere
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935024 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:16 +00:00
Joseph Eckard d549b0577c set the supplierProductId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935023 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:08 +00:00
Joseph Eckard bc65f40b6d added supplierProductId to ShoppingCartItem with getter & setter
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935022 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:26:00 +00:00
Joseph Eckard b7233d5b7b added supplierProductId to OrderItem
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935021 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 18:25:52 +00:00
Adam Heath 680bcb6752 Make performAction a public method, instead of protected.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934614 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 22:02:02 +00:00
Adam Heath 14a87c21c6 Fix type of actionResultInfo on interfaceProductPromoAction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934613 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 22:01:56 +00:00
Adam Heath 3ff5376428 When the promo action service has an exception, pass that exception back
up using exception chaining.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934612 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 22:01:51 +00:00
Adam Heath f53ffc37ef Fix logging of an exception, actually pass it to Debug.logError.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934611 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 22:01:45 +00:00
Joseph Eckard 87740347b4 deprecated getProductSupplier(), this is essentially a duplicate of ShoppingCart.getSupplierProduct()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934432 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 14:47:00 +00:00
Joseph Eckard a5b90da156 rename productSupplier to supplierProduct for clarity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934431 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 14:46:52 +00:00
Joseph Eckard 47eaa56d40 use the existing getSupplierProduct method from the cart
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934430 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 14:46:42 +00:00
Bruno Busco 0fbba1b188 Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934178 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:22:04 +00:00
Jacopo Cappellato 5be58b3493 Fixed bug reported by Giorgio Tomaselli: when the same order item requiring production runs is associated to multiple shipments, in the "work with shipment plans" screen it was not possible to generate the production runs for 2nd, 3rd etc.. shipments.
Fixed by adding an optional shipGroupSeqId to the WorkOrderItemFulfillment entity that can be used to specify the key to the specific OrderItemShipGroupAssoc.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934004 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 16:12:57 +00:00
Joseph Eckard b3c0554cbc allow bypassing the additional party step of purchase order entry when finalizeReqAdditionalParty=false
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933766 13f79535-47bb-0310-9956-ffa450edef68
2010-04-13 19:43:46 +00:00
Joseph Eckard f56c601a2f replace references to this.delegator with this.getDelegator(), this.delegator may be null if the cart comes from restored session
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933680 13f79535-47bb-0310-9956-ffa450edef68
2010-04-13 15:38:45 +00:00
Adam Heath ab933d2be7 Add new features, the ability to have promo conditions and actions both
as services, so that installations can do whatever kind of checking and
promotions that they want, without any modifications to ofbiz.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932108 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:56 +00:00
Jacques Le Roux c7b353d3e8 Closes "Using Widgets html form templates in FTL files" (https://issues.apache.org/jira/browse/OFBIZ-3541) - OFBIZ-3541
This concerns the lookups which are now rendered the same in ftl files and widget forms

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931854 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 10:19:38 +00:00
Ashish Vijaywargiya 60903cc17f Minor fix. Existing service will create problem if we have created EFT account for party. So its good to filter the record for type "CREDIT_CARD" and then get the first one from the list.
Thanks Rishi for the patch!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931823 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 07:49:24 +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
Bruno Busco b9c1022e54 A patch from Blas Rodriguez Somoza
OFBIZ-3607 - XHTML validation errors (order)
XHTML validation errors

    * Unclosed INPUT
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

findOrders.ftl
Wrong markup on line 470. Unrecognized onsubmit attribute in input tag
<input type='submit' value='${uiLabelMap.CommonFind}' onsubmit="javascript:lookupOrders(true);"/>

Wrong markup on line 478. div must be before if and not after. Look at line 138 the if begins with <div><table> it should end with </table></div>
</table>
</#if>
</div>
</div>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931691 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 21:15:53 +00:00
Adam Heath a0a7abfc58 Make ShoppingCart.getProductStoreShipMethId() work with the multiple
shipgroup system.  This fixes a bug, where multiple
ProductStoreShipmentMeth are configured, each one using the *same*
carrierPartyId and shipmentMethodTypeId, but have different cost
estimates attached, while making use of include/exclude geos, and other
restrictions.  In effect, no matter what specific
ProductStoreShipmentMeth you selected, when updating the total shipping
estimates(for display on a summary cart screen), it would try to do a
find on just the carrierPartyId/shipmentMethodTypeId pair, and basically
choose one at random.  So if there were multiple configured estimates on
USPS/FIRST_CLASS, it was unknown which would be chosen.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931595 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 15:47:34 +00:00
Ashish Vijaywargiya 38a9e63400 Applied patch from jira issue OFBIZ-3655 - When Order Items are cancelled, at the time of editing the order, system should generate Order Note in Order Detail Page.
Thanks Divesh for the contribution.

Also fixed typo in your patch:
canceled -> cancelled

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931459 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 08:15:23 +00:00
Hans Bakker 158fd4aec9 Update dutch translation, a contribution by Willem Janssen: OFBIZ-3652
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931430 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 04:27:42 +00:00
Adam Heath 3e7f6314f7 Remove testdef to a class that doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931024 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 05:28:12 +00:00
Hans Bakker 691f3922c2 allow the custreq status change from accepted to completed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930789 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 04:19:17 +00:00
Bilgin Ismet Ibryam 4b60bfb7f9 Cleanup autocompleter fields. Removed type fields from the list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930707 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 16:06:24 +00:00
Ashish Vijaywargiya a70cd41cc1 Improved service "createQuoteFromCart" so that it could take Purchase order case too for the creation of Quote.
Also done formating in FTL file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930630 13f79535-47bb-0310-9956-ffa450edef68
2010-04-04 06:29:17 +00:00
Vikas Mayur a069c8d0b5 Specifying the decorator screen location. By defining a location param in your own web.xml the OOTB decorator in the screens can easily be overridden by a custom decorator.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930486 13f79535-47bb-0310-9956-ffa450edef68
2010-04-03 07:23:53 +00:00
Adam Heath e251479be7 Improve getAttribute() method on ShoppingCart and CartShipInfo, so that
calling code doesn't have to cast.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930407 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 21:58:05 +00:00