Commit Graph
56 Commits
Author SHA1 Message Date
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
Scott Gray ef7124fbb8 Wrong component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@712636 13f79535-47bb-0310-9956-ffa450edef68
2008-11-10 09:48:39 +00:00
Jacopo Cappellato 68dfd57f01 Initial version of the supplier return implementation; thanks to Vikas Mayur for the patch that I have committed with two small changes from OFBIZ-1893
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680690 13f79535-47bb-0310-9956-ffa450edef68
2008-07-29 13:28:52 +00:00
Jacopo Cappellato e8a991abba Several fixes and enhancements to the return process: now a return shipment is automatically created when the return is approved, and when the return is completed an invoice is also created. Added new entity to associate a return item with a shipment.
Several small enhancements to the ui to link returns with shipments and inventory receipts.
Still, a lot of works needs to be done in this area (e.g. manual creation of return shipments, improve the ui, verify the code that creates the invoice for the return, verify the code that apply payments to invoices etc...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@669188 13f79535-47bb-0310-9956-ffa450edef68
2008-06-18 14:29:16 +00:00
Scott Gray 4a2d42bd3d Fix for OFBIZ-1765 reported by Jacopo Cappellato - Replacement returns were creating duplicated replacement orders.
The problem was that updateReturnHeader was being called and committed a 2nd time before the 1st call had been committed, and somehow that was causing a SECA condition to evaluate to true for both commits instead of just one.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@654072 13f79535-47bb-0310-9956-ffa450edef68
2008-05-07 11:24:41 +00:00
Jacopo Cappellato c29e2dce71 Removed commented out code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653444 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 12:19:23 +00:00
Jacopo Cappellato cae7b444d5 Cleaned up the services and secas around quote report emails: instead of using the QuoteAttribute entity and seca to trigger the email, it is better to just call the sendQuoteReportMail service.
Part of OFBIZ-1658


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653327 13f79535-47bb-0310-9956-ffa450edef68
2008-05-05 07:30:37 +00:00
Jacopo Cappellato 57d530878d Implemented logic to assign reservations for new sales orders according to the priority given by the ship before date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644637 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 08:09:38 +00:00
Marco Risaliti 5d73342b9e Create a new product store email notification execute on quoteStore event for quote creation status (Part of issue OFBIZ-1658).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@629220 13f79535-47bb-0310-9956-ffa450edef68
2008-02-19 20:40:57 +00:00
Si Chen edc1c0398f Refactor ATP requirements based on minimum stock so that the service can be run on order status change rather than on inventory reservation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@601039 13f79535-47bb-0310-9956-ffa450edef68
2007-12-04 19:03:31 +00:00
Si Chen 324ef70827 Instead of using an EECA to create auto order requirements, do it when order status changes from created to approved.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600629 13f79535-47bb-0310-9956-ffa450edef68
2007-12-03 18:45:37 +00:00
Si Chen 54dd7d5eff Changed seca for createTrackingCodeOrderReturns to run as system to avoid permission problems and also correctly record who ran the service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573041 13f79535-47bb-0310-9956-ffa450edef68
2007-09-05 20:01:12 +00:00
Jacques Le Roux 6b10f1ecd6 The seca part of the patch from Bilgin Ibryam "Quote WorkEffort bug" (https://issues.apache.org/jira/browse/OFBIZ-1180)
I'm currently working on a solution more general than the one Bilgin proposed in his patch (it might be applied temporarily if needed). 
I want to add a target-type tag to the alt-target tag. But it's not as easy as I thought because alt-target is a list. I wonder also if I should have worked this on the other side of extends : keeping the target of the calling forms. I chose this way because it seemed more general to me. Please correct me if I'm wrong.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@565083 13f79535-47bb-0310-9956-ffa450edef68
2007-08-12 16:12:10 +00:00
Jacopo Cappellato b274861177 Misc fixes and improvements to the eBay integration.
Implemented service and eca rule to set the eBay order status to complete when the associated OFBiz order is completed. By Marco Risaliti OFBIZ-1159.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@558939 13f79535-47bb-0310-9956-ffa450edef68
2007-07-24 06:34:58 +00:00
Jacopo Cappellato 88d3b605f0 As a temp fix, I've reverted the change I did in rev. 540479, because it was causing problems during order checkout under some special circumstances.
Now the processOrderPayments service is triggered only when updateOrderItems and appendOrderItem are run (as it was before rev. 540479).
I will return on this as soon as I have some time.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@546748 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 06:17:22 +00:00
Jacopo Cappellato 24450dd084 Remove unnecessary persist='true' from sync service calls.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@540508 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 09:37:11 +00:00
Jacopo Cappellato 75b5b38500 Removed eca definition that was probably there by mistake.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@540480 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 08:39:49 +00:00
Jacopo Cappellato 12b050b12f The processOrderPayments service is now triggered every time the resetGrandTotal service is executed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@540479 13f79535-47bb-0310-9956-ffa450edef68
2007-05-22 08:38:25 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Andrew Zeneski 1d0f6bacc7 fixed the subscriptions back to approved; checked in by mistake
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539203 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 01:01:51 +00:00
Andrew Zeneski e813b06abb implemented cancel of subscriptions when the order item is returned; fixed return notification bugs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539086 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 19:25:13 +00:00
Jacopo Cappellato 06a067d0c9 Removed service call for the resetGrandTotal from the delete/updateOrderAdjustment services and moved to ECA.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@538906 13f79535-47bb-0310-9956-ffa450edef68
2007-05-17 13:17:48 +00:00
Jacopo Cappellato 9aa691415b When returning a non-physical good (productType.isPhysical == N as well as non-product order items) returns should not require inventory to be received. In this case, a return will move directly from APPROVED to COMPLETED handing the refund/order/credit right away.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537258 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 18:22:55 +00:00
Jacopo Cappellato 7f83057f03 When a replacement return item is cancelled, the replacement order items associated to it are also cancelled.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536951 13f79535-47bb-0310-9956-ffa450edef68
2007-05-10 17:54:40 +00:00
Jacopo Cappellato f2ba64723b Implemented first version of 'repair returns': a return for repair is like a normal replacement return, with the exception that an additional product is added to the replacement order. This item is a repair item (defined in ProductAssoc).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@535972 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 20:01:02 +00:00
Jacopo Cappellato 88014947c9 Very first draft of the implementation for cross-ship replacement returns.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@533746 13f79535-47bb-0310-9956-ffa450edef68
2007-04-30 13:48:32 +00:00
Andrew Zeneski 30c1b2a919 now creates an order note when a CSR changes and item or adds a new one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@531551 13f79535-47bb-0310-9956-ffa450edef68
2007-04-23 18:18:26 +00:00
Scott Gray 9c696e094b Moved the sendOrderChangeNotification seca so that only a single notification is sent when editing an order
Part of OFBIZ-876

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@526496 13f79535-47bb-0310-9956-ffa450edef68
2007-04-07 22:36:03 +00:00
Andrew Zeneski 14e3f7ca77 applied tracking code updates patch from Anil Patel
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523819 13f79535-47bb-0310-9956-ffa450edef68
2007-03-29 19:51:21 +00:00
David E. Jones 86a15f278a Changed runAsUser to run-as-user for the updated attribute
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514603 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 08:42:44 +00:00
Si Chen 0953215ce0 The checkCreateDropShipPurchaseOrders service has been set to run as system user in SECA after storeOrder, or ecommerce store orders could not be processed properlY
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510213 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 21:06:25 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Jacopo Cappellato 51268097d8 The "processOrderPaymets" service now internally gets a ShoppingCart instance by calling the "loadCartFromOrder" service instead of the "loadCartForUpdate" method.
The latter is a dangerous method, since it removes all the order reservations (I've added a comment to explain how it should be used).
With this change, I've reactivated the seca that calls the "processOrderPaymets" service when items are cancelled (that has been disabled to avoid the loss of reservations).
This should completely close issue OFBIZ-380.


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@476251 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 18:57:16 +00:00
Si Chen 6cf20905d6 when a return header is updated to canceled, all return items will be updated to canceled. Basically from Ashish Vijaywargiya's patch OFBIZ-462
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@476018 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 01:28:46 +00:00
Jacopo Cappellato 3761b9c085 Thanks to the great comments from Ray Barlow (OFBIZ-380), I've disabled the seca to run processOrderPayments after the call cancelOrderItem: the big issue is that the reservations were lost.
This is only a temp fix, to get back to the status prior to the mods I did in r439995 (when I've reimplemented cancelOrderItem from an event to secas/services calls).


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@466024 13f79535-47bb-0310-9956-ffa450edef68
2006-10-20 07:46:35 +00:00
Jacopo Cappellato 266b41531b Implemented a new service that, when atp goes under minimum stock, creates a requirement for the reorder qty.
So now we have three different requirement services that look at inventory levels:
STOCK_QOH: when qoh goes under minimum stock a requirement is created for the reorder qty
STOCK_ATP (new): when atp goes under minimum stock a requirement is created for the reorder qty
ATP (was STOCK_ATP): creates a requirement on ATP levels and links it to the order item that caused the reservations


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@449366 13f79535-47bb-0310-9956-ffa450edef68
2006-09-24 06:48:27 +00:00
Jacopo Cappellato 2b320cfc6d Automatic requirement creation services (triggered by eca) are now executed using the "system" account to avoid auth error when executed by ecommerce users.
This will close OFBIZ-217.

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@442471 13f79535-47bb-0310-9956-ffa450edef68
2006-09-12 06:07:08 +00:00
Jacopo Cappellato 62d48a7416 Automatic creation of a purchase order from the 'drop ship' shipment group;
the ship to address in the po is the one set in the sales order 'drop ship' shipment group.


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@442140 13f79535-47bb-0310-9956-ffa450edef68
2006-09-11 09:40:49 +00:00
Jacopo Cappellato e4191038f1 Newly created purchasing requirements (i.e. requirements of type "PRODUCT_REQUIREMENT") are now automatically assigned to the main supplier (from the SupplierProduct entity) thru the RequirementRole entity.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@440103 13f79535-47bb-0310-9956-ffa450edef68
2006-09-04 15:08:12 +00:00
Jacopo Cappellato fb8827d962 Now shoppingCart is an optional parameter of the "processOrderPayment" service (if not available, it is retrieved from the orderId).
In this way the "processOrderPayment" service can be more easily triggered by eca.
In fact it is now triggered by the cancelOrderItem service.

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@440018 13f79535-47bb-0310-9956-ffa450edef68
2006-09-04 10:28:35 +00:00
Jacopo Cappellato 2fcec88deb Order items are now cancelled invoking directly the "cancelOrderItem" service instead of calling the omonimous CheckOutEvents method (that I have removed).
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@439995 13f79535-47bb-0310-9956-ffa450edef68
2006-09-04 09:36:01 +00:00