* 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.
(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
(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
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
============================================================
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
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
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
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
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
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
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
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