Commit Graph
96 Commits
Author SHA1 Message Date
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
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
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 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
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
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
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 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 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
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
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
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
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
Adam Heath ac2299c50e Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
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
Hans Bakker a3f54af55d allow the change from pending (on customer action) back to accepted and do not send a create confirmation message in this case
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928347 13f79535-47bb-0310-9956-ffa450edef68
2010-03-28 05:48:59 +00:00
Ashish Vijaywargiya e269e145b9 Applied patch from jira issue OFBIZ-3437 - Conversion of one page checkout events to services.
Done following:
   1. Converted events createUpdateCustomerAndShippingAddress and createUpdateBillingAndPayment to services.
   2. Written services in order component.
   3. Removed dependency form ecommerce.
   4. Moved checkout map processor to order and corrected its reference at all other places in ecommerce.
   5. Introduced and seca setAnonUserLogin instead of using event from ecommerce.
   6. Small respective changes in OnePageCheckoutProcess.ftl and checkoutProcess.js.
   7. Also fixed some of the issues found during testing in old createUpdateShippingAddress and createUpdateBillingAddress services.

Thanks Pranay for the contribution and Arun for your help in testing the patch for Anonymous & Registered user. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907181 13f79535-47bb-0310-9956-ffa450edef68
2010-02-06 07:12:44 +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 380640d002 Disabling setUnitPriceAsLastPrice service (the service was triggered to automatically create a new SupplierProduct record when, during order entry or receive, the unit price/cost was manually set): the service is not considering currency uom id and this is dangerous because, if the facility currency is different from the currency of the order/supplier product then the order receive screen automatically converts the unit price into the currency of the facility; this was causing an update of the supplier product record with a wrong currency.
I am also not sure if it is a good idea in general to automatically update a SupplierProduct record that can be part of a signed agreement with a supplier. We may want to discuss this and take a decision (deprecate or enhance the service), but for now it is safer to disable this.
Thanks to Giorgio Tomaselli for the bug report.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893593 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 18:52:37 +00:00
Scott Gray 1aecdf3ce2 Changed the createQuoteWorkEffort seca that triggers createWorkEffort from invoke to in-validate and made workEffortId a required parameter for createQuoteWorkEffort as it should be
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889921 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 10:50:56 +00:00
Hans Bakker 029dee7381 added the warehouse processing for the ordersales entities. Contribution by our Antwebsystems employee Tom
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883699 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 14:07:47 +00:00
Hans Bakker 9d1004714b Now allows for employees to add a note to the customer request, the customer gets notified by email with an url. If he logs in he can also add a note as a reply to the note of the employee, the employee will be notified with a system info message when the customer added the note
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788950 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 10:54:31 +00:00
Hans Bakker 0f2db54b40 several adjustments on customer request notifications and added a notification when a note is added to the customer request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788606 13f79535-47bb-0310-9956-ffa450edef68
2009-06-26 06:35:54 +00:00
Ashish Vijaywargiya aa73f29855 Applied patch from jira issue OFBIZ-2470 (In Cross-Ship Replacement we need to make sure return for refund is possible after a return for replacement)
This patch covers following scenarios:

1) Refund of the replacement order possible now. Since the replacement order has no payment preferences associated to it, payment preferences of the original order are used to process the refund. When the replacement order refund is complete you can look for the related entry in payment information section of the original order. Also you can find the payments for this return in ReturnItem screen.

2) When a replacement order is cancelled, and replacement return against which it was created is already received, then that return is refunded.

Thanks Mridul, Arun for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786827 13f79535-47bb-0310-9956-ffa450edef68
2009-06-20 13:57:48 +00:00
Ashish Vijaywargiya 64524e4add Applied patch from jira issue OFBIZ-2619 (Issues with Receive PO functionality).
I have tested this patch extensively and now things looks more accurate.
I agree with the issues specified from Mridul in the jira issue.

Thanks Mridul for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786013 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 10:48:09 +00:00
Vikas Mayur f9810fbfee Improve the Return Status process so that it also take into account the ReturnItem status change.
Slightly modified patch from Awdesh Singh Parihar, part of OFBIZ-2541 (https://issues.apache.org/jira/browse/OFBIZ-2541)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779926 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29 10:54:48 +00:00
Anil Patel 329d0a8016 add field to add lead party from create sales opportunity screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778558 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 03:46:45 +00:00
Anil Patel 8555fc06e3 moved Opportunity services to Order component where entity definitions are. Added eca to add Account Party when partyId is entered in create opportunity form.
Updated names of artifacts to match entity they deal with.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778515 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 21:34:04 +00:00
Vikas Mayur d16e9e2c68 Enable audit for few fields on ReturnItem entity namely returnTypeId, returnReasonId, returnQuantity, receivedQuantity and returnPrice. The history of changes on these fields
can be viewed through new tab Return History. Also added a new service for creating return status and removed the inline code that was used earlier to create Return Status.
Patch applied from Awdesh Singh Parihar, part of OFBIZ-2483 (https://issues.apache.org/jira/browse/OFBIZ-2483)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778463 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 18:02:47 +00:00
Vikas Mayur 2f783ae886 When inventory is found or returned for a Discontinued Item then update ProductCategoryMember so that this item is shown in front-end store.
Slightly modified patch from Akash Jain, part of OFBIZ-2484 (https://issues.apache.org/jira/browse/OFBIZ-2484)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@776275 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19 11:35:30 +00:00
Vikas Mayur b057ce7808 New return type "Refund Immediately" which trigger refunds on when return is accepted.
Patch from Deepesh Kapoor, part of OFBIZ-2429 (https://issues.apache.org/jira/browse/OFBIZ-2429) 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@774291 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13 12:30:20 +00:00
Vikas Mayur 41ac15143c Added new return type "Replace Immediately". This could be used with returns for which items are not expected to be returned and even item(s) cost less then the shipping
charges.

Patch from Deepesh Kapoor (reviewed and tested by Pranay Pandey), part of OFBIZ-2428 (https://issues.apache.org/jira/browse/OFBIZ-2428)
Note: I have made only one change, changed the return type from RTN_REPLACEIMMEDIATE to RTN_REPLACE_IMMEDIAT just for sake of clarity. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772642 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 13:11:48 +00:00
Vikas Mayur fd3dc10998 While doing a refund return, customer may want to purchase new items in exchange of returned items. A CSR can do this by creating an exchange order against the return.
To support this, new type EXCHANGE added for OrderItemAssocType.

Patch from Akash Jain (reviewd and tested by Pranay Pandey), part of OFBIZ-2377 (https://issues.apache.org/jira/browse/OFBIZ-2377)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770659 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 13:04:24 +00:00
Vikas Mayur 953c5fcc05 Changed currentStatusId --> oldStatusId, as this was actually old status and not current status.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770148 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 10:24:22 +00:00
Vikas Mayur c49aedf159 Added support for new return type "Wait Replacement Reserved".
If a return is created using this return type then
1) If status of this return is changed to accepted then a replacement order is created in Hold status. 
2) If status of this return is changed to recieved then this replacement order status is changed to approved.

Applied slighlty modified patch from Deepesh Kapoor, part of OFBIZ-2376 (https://issues.apache.org/jira/browse/OFBIZ-2376)
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770128 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 09:26:24 +00:00
Hans Bakker 4c0c034121 some more faultfixing on customer request notifications: mainly the partyIdTo was not provided
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769274 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 07:49:12 +00:00
Hans Bakker 0c5a93074c fix the new notification services using sendMailFromTemplateSetting using body parameters
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768245 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 10:08:55 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Hans Bakker c1491066f0 moved custrequest notification from myportal to order,moved other programs around, reorganized customer request status handling, replaced cust request roles from ftl to form, removed other used programs from myportal. Now only the party registration is left in myportal.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763135 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 07:58:00 +00:00
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00
Vikas Mayur 752c58c1f2 Adjust Purchase Order Items if received quantity is higher.
Applied slightly different patch from OFBIZ-2249 (https://issues.apache.org/jira/browse/OFBIZ-2249)

Thanks Pratik Khera and Pranay Pandey.

Pratik, I have done few changes in the service updatePoOnReceiveInventory.
1) Used service updateItemIssuance to update the records in ItemIssuance entity instead through <store-value>. If their is a service, then service should be used
   for such purpose. 
2) Removed <clear-field> tag, it seems to me that they are not required.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@757749 13f79535-47bb-0310-9956-ffa450edef68
2009-03-24 12:02:34 +00:00
Vikas Mayur a131758b9e Another new feature from Pranay and Co.
Now Order reservation can be changed manually by setting priority (new field priority on OrderHeader and OrderItemShipGrpInvRes) for the order. This way few orders can be
fulfilled while waiting for sufficient inventory to fulfill large orders.

Applied patch from OFBIZ-2224 (https://issues.apache.org/jira/browse/OFBIZ-2224).
Thanks Pratik Khera and Pranay Pandey.

i18n Note: This commit has three new labels (IMO, they can be moved to common component with names something like CommonHigh, CommonLow etc.)

Pratik, I have done minor changes in the service and they are
1) Used <if-empty field=""> instead of <if> <condition> <if-empty> as this makes the logic more clearer.
2) Removed <condition-list> because their is only one expression in the <entity-condition>
3) Added <clear-field> in the iteration, to make sure that always a new value will be set in the map that is passed to a service and <store-value>  



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@756001 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 13:58:08 +00:00
Jacques Le Roux 357213101c A patch from Bharat Soni "When recording PO, Company automatically sets price as "last price" on Supplier record." (https://issues.apache.org/jira/browse/OFBIZ-2234) - OFBIZ-2234
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@754834 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16 07:30:35 +00:00
Jacques Le Roux 60ab8e11f4 A patch from Karim Rahimpur "Error in request overview screen when no party is given" https://issues.apache.org/jira/browse/OFBIZ-2119 OFBIZ-2119
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746199 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 10:52:08 +00:00
David E. Jones 874f02e9da Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
David E. Jones 3269e7602c Various cleanups dones while reviewing functionality including formatting, refactoring, better descriptions and consistent defaults. In general no functionality change, though did add a default of N for the require return receive setting on the ProductStore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@725022 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 07:31:39 +00:00
Jacques Le Roux 2971e21a13 A patch from Krzysztof Podejma "Cannot complete order that contains products of type "SERVICE"" (https://issues.apache.org/jira/browse/OFBIZ-943) - OFBIZ-943
+ some demo data



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@722588 13f79535-47bb-0310-9956-ffa450edef68
2008-12-02 19:33:25 +00:00