Internal Notes can be added while placing an order through order manager.
Applied patch from Sharad Gupta, part of OFBIZ-2669 (https://issues.apache.org/jira/browse/OFBIZ-2669) git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -668,6 +668,7 @@ public class CheckOutEvents {
|
||||
String shipBeforeDate = null;
|
||||
String shipAfterDate = null;
|
||||
String cancelBackOrderDate = null;
|
||||
String internalOrderNotes = null;
|
||||
|
||||
String mode = request.getParameter("finalizeMode");
|
||||
Debug.logInfo("FinalizeMode: " + mode, module);
|
||||
@@ -785,8 +786,9 @@ public class CheckOutEvents {
|
||||
shipBeforeDate = request.getParameter(shipGroupIndex + "_shipBeforeDate");
|
||||
shipAfterDate = request.getParameter(shipGroupIndex + "_shipAfterDate");
|
||||
cancelBackOrderDate = request.getParameter("cancelBackOrderDate");
|
||||
internalOrderNotes = request.getParameter("internal_order_notes");
|
||||
|
||||
callResult = checkOutHelper.finalizeOrderEntryOptions(shipGroupIndex, shippingMethod, shippingInstructions, maySplit, giftMessage, isGift, internalCode, shipBeforeDate, shipAfterDate, cancelBackOrderDate);
|
||||
callResult = checkOutHelper.finalizeOrderEntryOptions(shipGroupIndex, shippingMethod, shippingInstructions, maySplit, giftMessage, isGift, internalCode, shipBeforeDate, shipAfterDate, cancelBackOrderDate, internalOrderNotes);
|
||||
ServiceUtil.addErrors(errorMessages, errorMaps, callResult);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1310,12 +1310,12 @@ public class CheckOutHelper {
|
||||
* any error messages
|
||||
*/
|
||||
public Map finalizeOrderEntryOptions(int shipGroupIndex, String shippingMethod, String shippingInstructions, String maySplit,
|
||||
String giftMessage, String isGift, String internalCode, String shipBeforeDate, String shipAfterDate, String orderAdditionalEmails) {
|
||||
String giftMessage, String isGift, String internalCode, String shipBeforeDate, String shipAfterDate, String orderAdditionalEmails, String internalOrderNotes) {
|
||||
this.cart.setOrderAdditionalEmails(orderAdditionalEmails);
|
||||
return finalizeOrderEntryOptions(shipGroupIndex, shippingMethod, shippingInstructions, maySplit, giftMessage, isGift, internalCode, shipBeforeDate, shipAfterDate);
|
||||
return finalizeOrderEntryOptions(shipGroupIndex, shippingMethod, shippingInstructions, maySplit, giftMessage, isGift, internalCode, shipBeforeDate, shipAfterDate, internalOrderNotes);
|
||||
}
|
||||
public Map finalizeOrderEntryOptions(int shipGroupIndex, String shippingMethod, String shippingInstructions, String maySplit,
|
||||
String giftMessage, String isGift, String internalCode, String shipBeforeDate, String shipAfterDate) {
|
||||
String giftMessage, String isGift, String internalCode, String shipBeforeDate, String shipAfterDate, String internalOrderNotes) {
|
||||
|
||||
Map result = ServiceUtil.returnSuccess();
|
||||
|
||||
@@ -1344,6 +1344,7 @@ public class CheckOutHelper {
|
||||
this.cart.setMaySplit(shipGroupIndex, Boolean.valueOf(maySplit));
|
||||
this.cart.setIsGift(shipGroupIndex, Boolean.valueOf(isGift));
|
||||
this.cart.setInternalCode(internalCode); // FIXME: the internalCode is not a ship group field and should be moved outside of this method
|
||||
this.cart.addInternalOrderNote(internalOrderNotes);
|
||||
|
||||
// set ship before date
|
||||
if ((shipBeforeDate != null) && (shipBeforeDate.length() > 8)) {
|
||||
|
||||
@@ -35,8 +35,19 @@ under the License.
|
||||
</#if>
|
||||
<#assign supplierPartyId = cart.getSupplierPartyId(shipGroupIndex)?if_exists>
|
||||
<#assign supplier = delegator.findByPrimaryKey("PartyGroup", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", supplierPartyId))?if_exists />
|
||||
<hr/>
|
||||
|
||||
<table width="100%" cellpadding="1" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h2>${uiLabelMap.OrderInternalNote}</h2>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<textarea cols="30" rows="3" name="internal_order_notes"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2"><hr/></td></tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<h1><b>${uiLabelMap.OrderShipGroup} ${uiLabelMap.CommonNbr} ${currIndex}</b><#if supplier?has_content> - ${supplier.groupName?default(supplier.partyId)}</#if></h1>
|
||||
|
||||
Reference in New Issue
Block a user