Commit Graph
2238 Commits
Author SHA1 Message Date
Hans Bakker 9a39192005 Create a payment with the status 'not-paid' when a purchase order is approved setting the payment date according agreements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941132 13f79535-47bb-0310-9956-ffa450edef68
2010-05-05 01:43:45 +00:00
Adam Heath ca984e8550 Add reading of promo use and promo code from the database into the
shopping cart.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941109 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 23:44:35 +00:00
Adam Heath 80389b8cf4 Add flag to ProductPromoAction, that tells PROMO_GWP to use all
available item quantities as the new GWP quantity.  This requires the
quantity field to be null, and useCartQuantity to be 'Y'.  This allows
insanely huge quantities to be used on items that have GWP promos
attached.  Under testing, I've added products with a quantity of 10000
and 50000 items, with no variation in speed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941048 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 21:19:41 +00:00
Vikas Mayur 2527bf0faa No functional change. Only formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940858 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 13:56:19 +00:00
Vikas Mayur b3fdbfb95c Fixed a bug in vendor return. The service getReturnableItems returns a map containing the returable quantity corresponding to an item along with
certain other things. Earlier this service was returning an empty map for a purchase order and a vendor return. On order detail page action 
block there is a check on this map and if the map comes out to be empty the system does not show the options to create return for the 
purchase order. Similary if you create a vendor return directly from the Return Header screen and try to add items on the Return Item screen
using an order Id, this display a message "No returnable items found for order" 

Also the method sendItemsShipped in the service sendGoogleShipRequest was throwing a NPE because the code try to pull a product through
ItemIssuance > OrderItem > Product

In the vendor return of type refund the items are issued to the return shipment and a purchase return invoice is generated and hence the process
is not linked to any Order. Adding a condition on the ECA so that this service is not invoked.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940851 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 13:35:19 +00:00
Ashish Vijaywargiya db765efdd2 Reverting my commit r938446 based on the comments received on mailing list. For now I am keeping old email address in place (i.e ofbiztest@yahoo.com) keeping in mind that email will not go in spam folder. If others think test@example.com will also behave same then please go ahead commit the changes.
Very soon I will revert my changes on release10.04 branch.
Thanks to everybody who has provided their comments!  

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940814 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 11:57:35 +00:00
Hans Bakker b63f00d516 be able to enter a shipping extimate per shipping group on purchase order entry
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940803 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 11:00:44 +00:00
Vikas Mayur 164ce63c94 Removed a comment on vendor return support. The support actually exists for last 20 months. For more details please refer
to jira issue OFBIZ-1893 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940411 13f79535-47bb-0310-9956-ffa450edef68
2010-05-03 10:39:27 +00:00
Jacques Le Roux df40275120 A completed patch from Sascha Rodekamp "Lookup Layer Search of a Varient Product" (https://issues.apache.org/jira/browse/OFBIZ-3746) - OFBIZ-3746
Fix the variant issue in product lookups
Remove the temporary window presentation workaround (done at r939232)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@940410 13f79535-47bb-0310-9956-ffa450edef68
2010-05-03 10:37:33 +00:00
Jacques Le Roux 8f11d470b9 Some other issues with layered lookups, bypassed for now using popups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939999 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 12:43:34 +00:00
Bruno Busco ea1a5dbe67 A patch from Blas Rodriguez Somoza
OFBIZ-3701 - Errors (with visible stacktraces) in screen: Order -> Order List -> Select (a sales order) -> Edit items
https://issues.apache.org/jira/browse/OFBIZ-3701
Fixed two errors in "edit items" from a sales order with visible stacktraces
Error 1 - Expression orderItemStatus.statusDatetime is undefined on line 133, column 37 in component://order/webapp/ordermgr/order/editorderitems.ftl
Error 2 - Expression catalogCol is undefined on line 37, column 18 in component://order/webapp/ordermgr/order/appendorderitem.ftl.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939938 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 07:12:21 +00:00
Vikas Mayur b0f17cbd77 I think it would be a good idea to show Category Name instead of Category description. The chances are that the former
would be present in most of the cases. This fix an issue with the quick add feature on order manager where the drop for 
quick add categories wasn't showing any thing because the description is not present on the quick add categories. This 
eventually fixes the same issue in the ecommerce because the ecommerce inherits this feature from order manager.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939937 13f79535-47bb-0310-9956-ffa450edef68
2010-05-01 07:04:06 +00:00
Bruno Busco c129c215e8 A patch from Blas Rodriguez Somoza
OFBIZ-3732 - XHTML validation errors round 2+ (order)
https://issues.apache.org/jira/browse/OFBIZ-3721
billsettings.ftl
attributes without values

orderagreements.ftl
Removed catalog select when there are no catalogs available.

shipsettings.ftl
attributes without values

showcart.ftl
attributes without values

configproductdetail.ftl
attributes without values

quickReturn.ftl
attributes without values

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939760 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 17:52:08 +00:00
Jacques Le Roux 855585e46b Fix 2 duplicates attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939570 13f79535-47bb-0310-9956-ffa450edef68
2010-04-30 07:28:30 +00:00
Jacques Le Roux 92699050d0 A temporary workaround for the problem reported by Sam Hamilton at https://issues.apache.org/jira/browse/OFBIZ-3746: "Lookup Layer Search of a Variants Product"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939232 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 08:47:57 +00:00
Scott Gray 52b08f4574 Removed all references to the deprecated GenericDelegator method findAll(String)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938947 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 11:30:23 +00:00
Hans Bakker 3806ace734 allow an optional 'reason' parameter when the status is changed of a customer request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938817 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 08:36:05 +00:00
Ashish Vijaywargiya 148318f7fd Changing email address ofbiztest@yahoo.com -> ofbiztesting@gmail.com - this was creating too much problem since long in development effort.
Following points were there in my mind before doing this change.

-- AFAIK ofbiztest@yahoo.com email doesn't exists.
-- Bounce email issue if you have enabled Javamail container. This drastically slow down your system performance. 
-- Now anyone can use ofbiztesting@gmail.com account settings for Sendmail, Javamail container etc.
-- Send mail service triggered again and again with failure message on console if any of the email not found bccAddress inside ProductStoreEmailSettings entity. Again slow speed of your development machine.
-- Please let me know where to share the password of this account? Dev list?


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938446 13f79535-47bb-0310-9956-ffa450edef68
2010-04-27 13:17:45 +00:00
Vikas Mayur d3fcee2891 Fixed a typo varient -> variant in the comment. Also did minor formatting to the code.
if( -> if (
methodDeclaration () -> methodDeclaration() etc.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937953 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 07:49:58 +00:00
Jacques Le Roux e714f96c66 Closes "Replace popup lookups by layer lookups" (https://issues.apache.org/jira/browse/OFBIZ-3442) - OFBIZ-3442
Not all cases have been resolved but this patch takes this into account and should not introduce any not known issues. These issues are identified at "Layer popup umbrella main task" (https://issues.apache.org/jira/browse/OFBIZ-3445). They will be resolved later and are actually bugs so will be committed later when fixed. They are
* "Allow to open a layer lookup from a layer lookup" (https://issues.apache.org/jira/browse/OFBIZ-3446) and its specific case "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693)
* "The minimize/enlarge buttons (+ -) blocks the layer" (https://issues.apache.org/jira/browse/OFBIZ-3692)
* "When you get disconnected (time out) from a layered lookup, you then get afterward ugly screens" (https://issues.apache.org/jira/browse/OFBIZ-3450)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937852 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 18:49:01 +00:00
Ashish Vijaywargiya 88040c9f67 Avoiding NPE.
Thanks Deepak for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937284 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 13:23:11 +00:00
Bilgin Ismet Ibryam c0f88d6715 Added externalLoginKey parameter to invoice PDF link in order view screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937266 13f79535-47bb-0310-9956-ffa450edef68
2010-04-23 12:35:58 +00:00
Adam Heath 2e6e38c511 Add ability to have a cart that doesn't do any promotions, and when
loading the cart from the database, and promotional items are being
included, the flag gets set.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936467 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 19:46:01 +00:00
Adam Heath 6a0374bd4d When loading a cart from the order, and promotional items are being
included, then be certain to see isPromo corretly on the item.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936466 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 19:45:54 +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 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