Commit Graph
116 Commits
Author SHA1 Message Date
Suraj Khurana c150980271 Improved: Converted some simple services services from simple to entity-auto. (#136)
(OFBIZ-11698)
Converted services: deleteOrderAdjustment, removeShoppingList and removed simple method for already converted deleteFinAccount.
2020-05-16 10:19:53 +05:30
Suraj Khurana 9eb6ba5a39 Improved: Converted all CustRequestItem related CRUD services from simple to entity-auto (#118)
(OFBIZ-11663)
2020-05-12 10:17:18 +05:30
Suraj Khurana ffd6686220 Improved: Converted all RequirementRole related CRUD services from simple to entity-auto (#105)
(OFBIZ-11641)
It was using same permission for all CRUD operation, updated logical permissions corresponding to each action.
2020-05-08 09:31:53 +05:30
Suraj Khurana 112a5929e9 Improved: Converted all RequirementCustRequest related CRUD services from simple to entity-auto (#102)
(OFBIZ-11638)
Also, renamed associatedRequirementWithRequestItem to proper name and corrected occurences including tests.
2020-05-07 11:09:34 +05:30
Suraj Khurana 7988fab8ab Improved: Converted all CustRequestAttribute related CRUD services from simple to entity-auto (#101)
(OFBIZ-11637)
Added seca rule to updateCustRequestLastModifiedDate on commit operation of this service, earlier it was called inline.
2020-05-04 18:02:46 +05:30
Suraj Khurana 3615f5b842 Improved: Converted all CustRequestContent related CRUD services from simple to entity-auto (#94)
* Improved: Converted all CustRequestContent related CRUD services from simple to entity-auto
(OFBIZ-11627)

* Improved: Added seca rule for checkStatusCustRequest while invoke and updateCustRequestLastModifiedDate while commit for services related to CustRequestContent.
2020-05-02 17:00:48 +05:30
Suraj Khurana edca9f22b0 Improved: Converted all CustRequestParty related CRUD services from simple to entity-auto (#95)
* Improved: Converted all CustRequestParty related CRUD services from simple to entity-auto
(OFBIZ-11621)
2020-05-02 13:47:09 +05:30
Jacques Le Roux b76d95d72a Improved: Unit test case for service - testSendOrderChangeNotification
(OFBIZ-8811)(OFBIZ-9647)(OFBIZ-9671)

While working on this I stumbled upon an issue related with 
webSiteId="OrderEntry" well related by Ratnesh Upadhyay in OFBIZ-9647.

Unlike him I decided not to remove the webSiteId="OrderEntry" entries but to
replace them by webSiteId="WebStore"

Tests pass!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867889 13f79535-47bb-0310-9956-ffa450edef68
2019-10-02 14:46:00 +00:00
Suraj Khurana 443bac5d8f Improved: Added support for Inventory (Supply) Allocation Planning.
(OFBIZ-10518)
Thanks Deepak Nigam for initiating this feature and providng the patches, Arun Patidar for review and Swapnil Shah for design discussions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858270 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 13:05:30 +00:00
Nicolas Malin c7d7b23144 Improved: Migrate from minilang to entity-auto createQuoteWorkEffort et deleteQuoteWorkEffort.
(OFBIZ-10553)
But createQuoteWorkEffort is not a crud service on entity QuoteWorkEffort because it is linked to a seca to call createWorkeffort before if a workEffortId is not present in context.

<eca service="createQuoteWorkEffort" event="in-validate">
   <condition field-name="workEffortId" operator="is-empty"/>
   <action service="createWorkEffort" mode="sync"/>
</eca>

I converted this service createQuoteWorkEffort has a real Crud service and create an other ensureWorkEffortAndCreateQuoteWorkEffort to simulate the attendee process. Now we have a coherent service naming and not surprise for developer .
To manage the service createQuoteWorkEffort as deprecated, I define it twice

     <service name="createQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="entity-auto" invoke="create" auth="true">
        <deprecated use-instead="ensureWorkEffortAndCreateQuoteWorkEffort" since="Upcoming Release">
            use createQuoteWorkEffort to create a workeffort has been deprecated for best pratice naming reason, use ensureWorkEffortAndCreateQuoteWorkEffort instead.
            Now createQuoteWorkEffort work as a crud service on QuoteWorkEffort
        </deprecated>
    </service>
    <service name="createQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="entity-auto" invoke="create" auth="true">
        <description>Create a new QuoteWorkEffort</description>
        <required-permissions join-type="AND">
            <check-permission permission="ORDERMGR" action="_CREATE"/>
        </required-permissions>
        <auto-attributes mode="IN" include="pk"/>
     </service>

First to alert on deprecation and second ensure that the definition work fine.
In log we will have an alert on the deprecation and an alert on the duplicated definition during the deprecation time.

Thanks to Antoine Ouvrard, Gil Portenseigne, Leila Mekika and Mathieu Lirzin for their review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1847056 13f79535-47bb-0310-9956-ffa450edef68
2018-11-20 20:19:34 +00:00
Suraj Khurana 1acfce32e3 Improved: RequirementStatus record should be created while creating or updating requirement.
(OFBIZ-10568)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1841654 13f79535-47bb-0310-9956-ffa450edef68
2018-09-22 06:34:34 +00:00
Rishi Solanki 00260d1204 Improvement: Missing Relationship from OrderHeader to WebSite (OFBIZ-9647). Added relationship from order header to website entity. And removed wrong data.
Applied patch from (OFBIZ-9647). Thanks Ratnesh Upadhyay for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1809749 13f79535-47bb-0310-9956-ffa450edef68
2017-09-26 14:33:05 +00:00
Deepak Dixit afbd2d635f Fixed: Added seca to ensure party role on createQuoteRole invoke (OFBIZ-9331)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792638 13f79535-47bb-0310-9956-ffa450edef68
2017-04-25 18:22:51 +00:00
Divesh Dutta 8c1840dbde [OFBIZ-7478] Mark the requirements Ordered only when PO is approved. Earlier requirements were marked Ordered when PO is created. Applied slightly modifiend patch by Rahul Bhooteshwar. In this work new service:updateRequirementsToOrdered is introduced which will be triggered when PO is approved. Thanks Rahul Bhooteshwar for you patch and Swapnil Shah for reporting the ticket
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757964 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 08:06:24 +00:00
Divesh Dutta f6d8b33cf9 [OFBIZ-7101] When changing the status of any return to 'accepted', the status of return item should be changed to 'accepted' as well. Thanks Anuj Jain for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1744911 13f79535-47bb-0310-9956-ffa450edef68
2016-05-21 11:38:44 +00:00
Jacques Le Roux 89d5d687ef Patches from Pierre Smits for <<rename AccountingConfig.properties to accounting.properties>> https://issues.apache.org/jira/browse/OFBIZ-6954
Currently many properties files in various components are named after the component, i.e. the bi component has bi.properties.
In order to have consistency from component to component the AccountingConfig.properties file must be renamed to accounting.properties and all references in other components should reflect the change.

jleroux: I also changed a bunch of accountingconfig names in comments/descriptions/etc.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1736734 13f79535-47bb-0310-9956-ffa450edef68
2016-03-27 10:59:54 +00:00
Jacques Le Roux 83113c00ed Fixes an issue discussed on dev ML and related with OFBIZ-6791
This before trying to backport the fixes done with commits referenced in the OFBIZ-6791 issue 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1725574 13f79535-47bb-0310-9956-ffa450edef68
2016-01-19 17:45:19 +00:00
Hans Bakker 1afd42b2a7 various fixes to the salesopportunity list and create functions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1723248 13f79535-47bb-0310-9956-ffa450edef68
2016-01-06 07:53:26 +00:00
Deepak Dixit 04772389fb (OFBIZ-4954) Applied patch from jira issue OFBIZ-4954
============================================================
Order item quantity cancel issue.

If user partially received an order and then cancel order item, system cancel all the order item quantity.System does not check for shipped/received order item quantity.
Expected behavior: Only remaining order item quantity should be cancelled and order item should marked as complete with partial received/shipped quantity.
============================================================


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1721093 13f79535-47bb-0310-9956-ffa450edef68
2015-12-21 05:38:43 +00:00
Jacopo Cappellato 2641d2ba5a Implemented ability to refund non-physical goods (e.g. services).
Thanks to Akash Jain for the contribution: OFBIZ-6728, OFBIZ-6729, OFBIZ-6730


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1715485 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 08:15:16 +00:00
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