Completes code in Config.java for start-debug only (adds "start-debug" to pick start.properties when portoffset is used).
The rest of the changes is only refactoring to have the replacement to pick start.properties only in getInstance()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574404 13f79535-47bb-0310-9956-ffa450edef68
The service "renderSingleFormString" check the previous field position to see if the current field must be displayed after the previous field or on a new line.
When the previous field has a use-when condition that is not valid, it remains as the currentFormField and the next field is compared with this "not rendered" field. If the position of this previous field is the same as the current field, the current is displayed on the next line.
To reproduce, add in a single form the three fields below :
<field position="1" name="first"><display description="first"/></field>
<field position="2" name="second" use-when="true"><display description="second"/></field>
<field position="2" name="second" use-when="false"><display description="second"/></field>
The field second is rendered on a new line
jleroux: this second version works correctly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1574019 13f79535-47bb-0310-9956-ffa450edef68
Steps to regenerate issue:
- Crate an SO/PO with more then one line item.
- Partially ship/received any one order item.
- After partial ship/receive order should be in approve status, one order item in in completed status and another one is in Approved status.
- Change order status to hold.
- Now again approve order.
- After approve all order order except Completed/cancelled item should go in Approved status.
But as per the current behavior completed order item also change to approved status.
Here is the updated patch, this include the cancel received item flow. ITEM_REJECTED status change will be handled by StatusValidChange flow.
jleroux:
considering the current effort to remove Javolution use when possible, I have replaced
FastList.<EntityExpr>newInstance();
by
new ArrayList<EntityExpr>();
I formatted to use {} around one line code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573639 13f79535-47bb-0310-9956-ffa450edef68
Steps to regenerate issue:
- Crate an SO/PO with more then one line item.
- Partially ship/received any one order item.
- After partial ship/receive order should be in approve status, one order item in in completed status and another one is in Approved status.
- Change order status to hold.
- Now again approve order.
- After approve all order order except Completed/cancelled item should go in Approved status.
But as per the current behavior completed order item also change to approved status.
Here is the updated patch, this include the cancel received item flow. ITEM_REJECTED status change will be handled by StatusValidChange flow.
jleroux: considering the current effort to remove Javolution use when possible, I have replaced
FastList.<EntityExpr>newInstance();
by
new ArrayList<EntityExpr>();
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573552 13f79535-47bb-0310-9956-ffa450edef68
The service "renderSingleFormString" check the previous field position to see if the current field must be displayed after the previous field or on a new line.
When the previous field has a use-when condition that is not valid, it remains as the currentFormField and the next field is compared with this "not rendered" field. If the position of this previous field is the same as the current field, the current is displayed on the next line.
To reproduce, add in a single form the three fields below :
<field position="1" name="first"><display description="first"/></field>
<field position="2" name="second" use-when="true"><display description="second"/></field>
<field position="2" name="second" use-when="false"><display description="second"/></field>
The field second is rendered on a new line
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1573161 13f79535-47bb-0310-9956-ffa450edef68
A slightly modified patch from Praveen Agrawal for "The getFeatureIdQtyMap function doesn't include the DISTINGUISHING_FEAT into the featureMap" https://issues.apache.org/jira/browse/OFBIZ-5544
The getFeatureIdQtyMap function in ShoppingCartItem.java doesn't include the DISTINGUISHING_FEAT in featureMap so if we want to calculate the Shipping amount based on Distinguishing feature, this method doesn't return the Distinguishing Feature in Feature Map. If we add DISTINGUISHING_FEAT as productFeatureApplTypeId in filterExprs then the feature map would contain the Distinguishing feature in addition to Standard and Required Feature.
Also in ShoppingCartItem.java, putAdditionalProductFeatureAndAppl method, i think the OrderAdjustment should only be included when the amount is not null.
jleroux: When the amount is null it's now not added in the adjustement (I moved that in the block above where the amount is already tested for null). But the OrderAdjustment is still created because a recurringAmount could still exist . I just added a warning for when both amounts are null. We could decide to not create an adjustement when there are no amounts at all. But I preferred a warning, because it's a weird situation and people could prefer to be aware...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1571219 13f79535-47bb-0310-9956-ffa450edef68
The getFeatureIdQtyMap function in ShoppingCartItem.java doesn't include the DISTINGUISHING_FEAT in featureMap so if we want to calculate the Shipping amount based on Distinguishing feature, this method doesn't return the Distinguishing Feature in Feature Map. If we add DISTINGUISHING_FEAT as productFeatureApplTypeId in filterExprs then the feature map would contain the Distinguishing feature in addition to Standard and Required Feature.
Also in ShoppingCartItem.java, putAdditionalProductFeatureAndAppl method, i think the OrderAdjustment should only be included when the amount is not null.
jleroux: When the amount is null it's now not added in the adjustement (I moved that in the block above where the amount is already tested for null). But the OrderAdjustment is still created because a recurringAmount could still exist . I just added a warning for when both amounts are null. We could decide to not create an adjustement when there are no amounts at all. But I preferred a warning, because it's a weird situation and people could prefer to be aware...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1571198 13f79535-47bb-0310-9956-ffa450edef68
Expression blog.contentName is undefined on line 31, column 116 in component://ecommerce/webapp/ecommerce/blog/blogs.ftl. The problematic instruction: ---------- ==> ${blog.contentName} [on line 31, column 114 in
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1569078 13f79535-47bb-0310-9956-ffa450edef68
Void item, quantity update and discounts work off of the sku in the pos. I fixed it to use the cart index so these operations will work when there are multiple configurations per sku in the cart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1566273 13f79535-47bb-0310-9956-ffa450edef68
jleroux: what I did:
Replaced all (20) old birt libs by new one provided in the zip Chatree provided
I did not touch any other libs, I checked they were all the same, but the names of Axis 1 libs which were not versionned in the zip. So I removed the related Axis 1 changes in LICENSE and .classpath files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1565375 13f79535-47bb-0310-9956-ffa450edef68
When we placed an order with two items and generate a return towards one item then code is refunding the money correctly.
But if we again do return for second item then code is not refunding the money because first return-refund process has changed the status of OrderPaymentPreference from 'PAYMENT_SETTLED' to ‘PAYMENT_REFUNDED’.
I think We should create the new OrderPaymentPreference with PAYMENT_REFUNDED status against old OrderPaymentPreference of 'PAYMENT_SETTLED' status at the time of return-refund process. So second return can also refund the money.
In other words we should create the new OrderPaymentPreference for each refund amount as we are doing with Payment entity(processRefundResult PaymentGatewayServices.java).
jleroux: I
* replaced the deprecated findByPrimaryKey by a finByOne
* replaced Exception GenericServiceException in catch (as it was before)
* reformatted some parts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1564111 13f79535-47bb-0310-9956-ffa450edef68
This simply follows "HELP_OFBizDocumentationSystem.xml" i18n directives which have been overlooked so far. Of course having all i18n files in the same folder is not very convenient, but at least it works. This files organisation could be reconsidered, I'd need more work...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1563958 13f79535-47bb-0310-9956-ffa450edef68