Commit Graph
944 Commits
Author SHA1 Message Date
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
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
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
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
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
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 473653ff01 Removed an unnecessary assignment in the template and moved it to the script.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930188 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 08:52:52 +00:00
Scott Gray c75bda5d7a OrderHeader isn't cached so there's no point in trying to do lookups via the cache
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924575 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 00:56:54 +00:00
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adam Heath 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Adam Heath ed33d7ca17 Add red/green like shades to orderinfo and orderitem status areas, but
only for APPROVED and REJECTED statuses for now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922483 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 05:50:00 +00:00
Adam Heath 99fd294fbb Add screenlet wrapper around embedded block infos for each order item.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921140 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 21:40:17 +00:00
Adam Heath e5f106303c Add class around order item description, and increase the font-size in
tomahawk.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921139 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 21:39:42 +00:00
Adam Heath 3a758c58a8 Move catalog and ecommerce product links to be on the same row as the
product description.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921138 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 21:39:10 +00:00
Adam Heath 2dc6a7f816 Add alternate-row class as appropriate to orderitems display.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921137 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 21:38:40 +00:00
Adam Heath 458dc4e261 Add order-items class to the top-level table.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921130 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 21:15:03 +00:00
Ashish Vijaywargiya e9cbf7971c Making code more verbose. Reported by Adam but it would work without fetching value from context.
Anyway we are fine from either option.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918053 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 14:28:15 +00:00
Adam Heath 3edf885123 Fetch the correct party id when dealing with vendor returns, patch is
from OFBIZ-3514.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917792 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 23:24:50 +00:00
Adam Heath f9370cd98d Apply patch from OFBIZ-3513, don't hard-code "Company" as a fallback
partyId, instead fetching ORGANIZATION_PARTY from general.properties.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917790 13f79535-47bb-0310-9956-ffa450edef68
2010-03-01 23:24:19 +00:00
Jacopo Cappellato 7100b58cd0 Added ability to expand/collapse shipment group screenlets in the order detail screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916676 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 13:34:08 +00:00
Erwan de Ferrieres b4c14b44ba Correction for "OFBIZ-3390 The add address feature in order manager/order creation is broken"
* adding missing decorator
* adding missing save-home-view

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916205 13f79535-47bb-0310-9956-ffa450edef68
2010-02-25 09:41:46 +00:00
Ashish Vijaywargiya eb0c6d372a Applied patch from jira issue - OFBIZ-3489 - Error in orderList Screen and order main screen in case we select type purchase order on orderList Screen.
Thanks Rohit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912545 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 12:16:45 +00:00
Ashish Vijaywargiya 0e907b0b01 Applied patch from jira issue OFBIZ-3493 - OFBiz Improvement on ecommerce product detail page for showing out of stock product.
Thanks Parimal & Pranay for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912544 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 12:14:35 +00:00
Ashish Vijaywargiya 5d3af78219 Fix for groovy.lang.MissingPropertyException: No such property: configproductdetailScreen for class: Product.
Patch from Anurag (Thanks!)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911761 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 09:47:47 +00:00
Ashish Vijaywargiya 12a39f0223 Applied patch from jira issue OFBIZ-3452 - Order main page and order list should show product store name in the list.
Thanks Amit & Vivek for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907620 13f79535-47bb-0310-9956-ffa450edef68
2010-02-08 11:09:14 +00:00
Jacopo Cappellato 75a3c9f270 Added a bunch of missing license headers; we'll have to pay more attention on this in the future.
Still some work needs to be done in order to have the codebase inline with the ASF policies as it used to be.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907413 13f79535-47bb-0310-9956-ffa450edef68
2010-02-07 11:24:45 +00:00
Jacopo Cappellato 53f1f25ef5 Enabled link for creating a shipment for a purchase order even if it is in the created status: shipment items (plans) can now be created (without receiving the items in inventory) in order to plan the shipments; shipment and shipment events, that ppears in the calendar are a good tools to negotiate and schedule, together with the supplier the delivery dates before approving the order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906570 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 17:17:09 +00:00
Hans Bakker 005e5ae90a reverted unwanted change spotted by Erwan: thanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903053 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 02:27:56 +00:00
Hans Bakker 601acb6dd0 New Order reports: (run 'init warehouse' in the BI component first and select B2C productstore to see the demo data)
- Net Before Overhead Report
Net Before Overhead Report is the profit calculation of paid-shipped orders and all the occurred fee excluding the overhead cost. They are grouped by Product Store Id.(Demo data for Net Before Overhead Report have in Product Store Id 'B2CStore')

- Product Demand Report
Product Demand Report is the report to show us which product sells good and which product doesn’t sell good or not selling at all in one account as well as for all accounts in last 4 weeks. They are grouped by Product Store Id.(Demo data for Product Demand Report have in Product Store Id 'B2CStore')

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902719 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 07:23:57 +00:00
Bilgin Ismet Ibryam f636860838 Fix a NPE reported in user list by Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901347 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 19:37:56 +00:00
Ashish Vijaywargiya 9eed747cb1 Applied patch from jira issue OFBIZ-3409 - Add support for "PRODUCT_ACCESSORY" type association in product detail groovy.
Thanks Amit & Vivek for the contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899096 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 08:10:06 +00:00
Ashish Vijaywargiya ff7dce4203 Applied patch from jira issue - OFBIZ-3397- Advance Search should also support the feature base sorting.
User should be able to sort on SIZE and COLORS kind of features associated with Products. This sort will be additional sort with ProductFields and ProductPrice. Here we need to add the additional sort not to change the existing.
This will be achieve in the similar manner the ProductPrice in the ProductSearch.java and ProductSearchSession.java.

Thanks Deepak & Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897170 13f79535-47bb-0310-9956-ffa450edef68
2010-01-08 11:33:19 +00:00
Vikas Mayur e8d77a0d23 Added missing license. Reported by Pranay Pandey.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896321 13f79535-47bb-0310-9956-ffa450edef68
2010-01-06 04:45:17 +00:00
Vikas Mayur bffc35df33 Example:
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
2010-01-05 11:50:19 +00:00
Jacopo Cappellato be5e0defbe Added ability to set multi ship groups also for purchase orders.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894182 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 14:40:50 +00:00
Erwan de Ferrieres c9397b1c57 Removing a ftl menu file to have all the items complying to the XML menu style and creating the corresponding sub menu for the viewQuote screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893582 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 17:36:54 +00:00
Hans Bakker 410a348a27 add a 'coupon' report to the order reports option. help screen to follow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893090 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 07:05:57 +00:00
Scott Gray 3f33a1fab7 Deprecated the various json event handlers and commented out references to them from the controllers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:01:20 +00:00
Scott Gray 78b784e80e Convert all uses of json event types to chained requests with the common json event at the end.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:55:34 +00:00
Marco Risaliti 2b27fb3daf Country name of the company can be now visible in the current language in use
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891931 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 21:46:30 +00:00
Hans Bakker a2982cef6d Although we do not experience compile problems here, there were some problems as reported https://issues.apache.org/jira/browse/OFBIZ-3353. which should be fixed now, contribution by chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891180 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 10:44:27 +00:00
Hans Bakker 78fa025e71 extended the OLAP entities with the InventoryItemFact, added birt reports in the facility, Order, and accouning payment components. Please note that before these reports can be used the warehouse needs to be populated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890830 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 15:34:29 +00:00
Jacopo Cappellato 9f3025e437 Small layout changes and formatting for order entry menu items.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890354 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 15:02:28 +00:00
Jacques Le Roux c391d93d0f This was a problem for the POS where NO_SHIPPING is used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890044 13f79535-47bb-0310-9956-ffa450edef68
2009-12-13 10:55:53 +00:00