From 55ba2005271c28d312a4e43d0752ebf1fe57fef5 Mon Sep 17 00:00:00 2001 From: Si Chen Date: Fri, 22 Sep 2006 15:50:57 +0000 Subject: [PATCH] Toggle order notes from public to private and back. git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@448971 13f79535-47bb-0310-9956-ffa450edef68 --- applications/order/config/OrderUiLabels.properties | 6 +++++- .../script/org/ofbiz/order/order/OrderServices.xml | 10 ++++++++++ applications/order/servicedef/services.xml | 8 ++++++++ .../order/webapp/ordermgr/WEB-INF/controller.xml | 7 +++++++ .../order/webapp/ordermgr/order/ordernotes.ftl | 14 ++++++++------ 5 files changed, 38 insertions(+), 7 deletions(-) diff --git a/applications/order/config/OrderUiLabels.properties b/applications/order/config/OrderUiLabels.properties index a7b14397a8..bf8fe2a4cc 100644 --- a/applications/order/config/OrderUiLabels.properties +++ b/applications/order/config/OrderUiLabels.properties @@ -156,7 +156,7 @@ OrderNewDropShipmentForShipGroup = New Drop Shipment For Ship Group OrderNewShipmentForShipGroup = New Shipment For Ship Group OrderNoChannel = No Channel OrderNoGiftWrap = No Gift Wrap -OrderNoNotes = No notes for this order. +OrderNoNotes = No notes for this order OrderNoNotesForThisRequestItem = No Notes For This Request Item OrderNoOrderAdjustments=No adjustments on this order. OrderNoOrderFound = No Order Found @@ -578,6 +578,10 @@ OrderSendConfirmationEmailBCCTo=BCC To OrderSendConfirmationEmailBody=Body OrderSendConfirmationEmailContentType=Content-Type +OrderNotesPrivate = Make Private +OrderNotesPublic = Make Public +OrderSecurityErrorToRunUpdateOrderNote = Error in toggling notes to Private/Public + # ======================================== # org.ofbiz.order.order messages # ======================================== diff --git a/applications/order/script/org/ofbiz/order/order/OrderServices.xml b/applications/order/script/org/ofbiz/order/order/OrderServices.xml index aa1e8571d5..fd4cbd8de5 100644 --- a/applications/order/script/org/ofbiz/order/order/OrderServices.xml +++ b/applications/order/script/org/ofbiz/order/order/OrderServices.xml @@ -568,6 +568,16 @@ under the License. + + + + + + + + + + diff --git a/applications/order/servicedef/services.xml b/applications/order/servicedef/services.xml index 06938f335d..f0a02a088f 100644 --- a/applications/order/servicedef/services.xml +++ b/applications/order/servicedef/services.xml @@ -350,6 +350,14 @@ under the License. + + Toggle Order Note and make it either Public or Private + + + + + diff --git a/applications/order/webapp/ordermgr/WEB-INF/controller.xml b/applications/order/webapp/ordermgr/WEB-INF/controller.xml index bbe1c863c7..9bcf62c038 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/controller.xml +++ b/applications/order/webapp/ordermgr/WEB-INF/controller.xml @@ -330,6 +330,13 @@ + + + + + + + diff --git a/applications/order/webapp/ordermgr/order/ordernotes.ftl b/applications/order/webapp/ordermgr/order/ordernotes.ftl index 17a675d9ca..5260d3de66 100644 --- a/applications/order/webapp/ordermgr/order/ordernotes.ftl +++ b/applications/order/webapp/ordermgr/order/ordernotes.ftl @@ -47,16 +47,18 @@ under the License.
 ${uiLabelMap.CommonBy}: ${Static["org.ofbiz.party.party.PartyHelper"].getPartyName(delegator, note.noteParty, true)}
 ${uiLabelMap.CommonAt}: ${note.noteDateTime?string?if_exists}
- +
${note.noteInfo?if_exists}
- - <#if note.internalNote?if_exists == "N"> + + <#if note.internalNote?if_exists == "N">
${uiLabelMap.OrderPrintableNote}
- - <#if note.internalNote?if_exists == "Y"> + ${uiLabelMap.OrderNotesPrivate} + + <#if note.internalNote?if_exists == "Y">
${uiLabelMap.OrderNotPrintableNote}
- + ${uiLabelMap.OrderNotesPublic} + <#if note_has_next>