[OFBiz] Dev - Improve entry order

mjeanluc jeanluc.malet at nereide.biz
Sun Apr 3 12:47:02 EDT 2005


Hi Jacopo,

I send you some patches to improve the look of the screens.
You can test them and tell me what you think about that. I'm not sure to 
use exactly correctly the screen-widget. But with theses patches, it's 
look better in my screen.

For your new fonctions in the left bar, it's ok for me. It's easier to 
access. Perhaps that's a possibility to put all the link in the leftbar 
(direct access) instead of look in sequential, all the data to enter in 
different screens:  (customer data, shipping data,  options data,  
payment data, the associated parties (like vendors ...) ). We could see 
in the left bar all the principals informations ( like you've done for 
header information) for all the data of this order. In fact, the person 
who enter the order know at each time what's done or not.

I will try to make a model to let you see what I have in my head. It 
will be like a central page which can link to all data needed for the 
order in a simple "click".

I don't see the new fonction ( 4 in your last mail) to access directly 
from a product to the cart. Can you explain more in details for me ?? 
Thanks in advance.

Have a nice day.

Jean-Luc.

-------------- next part --------------
diff -Naur -X exclude.txt /home/environnement/ofbiz_new/applications/order/config/OrderUiLabels_fr.properties /home/environnement/ofbiz0104_widget/applications/order/config/OrderUiLabels_fr.properties
--- /home/environnement/ofbiz_new/applications/order/config/OrderUiLabels_fr.properties	2005-04-03 17:42:50.063324872 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/config/OrderUiLabels_fr.properties	2005-04-03 12:14:26.000000000 +0200
@@ -224,7 +224,7 @@
 OrderFindOrder=Recherche de commande(s)
 OrderFindReturn=Recherche de retour(s)
 OrderGiftMessage=Message sur la promotion
-OrderGiftWrapAllItems=La promotion inclus tous les articles
+OrderGiftWrapAllItems=Toute promotion
 OrderGift=Promotion ?
 OrderGrandTotal=Total G\u00e9n\u00e9ral
 OrderIsThisGift=Est-ce une promotion?
-------------- next part --------------
diff -Naur -X exclude.txt /home/environnement/ofbiz_new/framework/images/webapp/images/tabstyles.css /home/environnement/ofbiz0104_widget/framework/images/webapp/images/tabstyles.css
--- /home/environnement/ofbiz_new/framework/images/webapp/images/tabstyles.css	2005-04-03 17:44:14.376507320 +0200
+++ /home/environnement/ofbiz0104_widget/framework/images/webapp/images/tabstyles.css	2005-04-03 10:58:58.000000000 +0200
@@ -177,7 +177,7 @@
 DIV.column-left {
 float: left;
 margin-right: 10px;
-width: 220px;
+width: 19%;
 }
 DIV.column-main {
 width: auto;
-------------- next part --------------
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/catalog/choosecatalog.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/catalog/choosecatalog.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/catalog/choosecatalog.ftl	2005-04-01 01:14:12.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/catalog/choosecatalog.ftl	2005-04-01 12:50:04.000000000 +0200
@@ -63,5 +63,5 @@
       </TD>
     </TR>
   </TABLE>
+<BR>
 </#if>
-
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/catalog/keywordsearchbox.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/catalog/keywordsearchbox.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/catalog/keywordsearchbox.ftl	2005-03-04 09:03:57.000000000 +0100
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/catalog/keywordsearchbox.ftl	2005-04-01 12:53:04.000000000 +0200
@@ -107,4 +107,4 @@
     </TD>
   </TR>
 </TABLE>
-
+<BR>
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl	2005-04-02 15:52:17.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/OrderEntryTabBar.ftl	2005-04-03 11:58:08.513398360 +0200
@@ -29,27 +29,40 @@
 <#if (requestAttributes.uiLabelMap)?exists>
     <#assign uiLabelMap = requestAttributes.uiLabelMap>
 </#if>
-<div class="boxtop">
-    <div class="boxhead" align="left">
-        &nbsp;${uiLabelMap.CommonCreate}
-        <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
-            ${uiLabelMap.OrderPurchaseOrder}
-        <#else>
-            ${uiLabelMap.OrderSalesOrder}
-        </#if>
-    </div>
-    <div class="boxhead" align="right">
-        <a href="<@ofbizUrl>/emptycart</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderClearOrder}</a>
-        <#if (shoppingCart.size() > 0)>
-            <a href="javascript:document.cartform.submit()" class="submenutext">${uiLabelMap.OrderRecalculateOrder}</a>
-            <#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
-                <a href="<@ofbizUrl>/finalizeOrder?finalizeReqCustInfo=false&finalizeReqShipInfo=false&finalizeReqOptions=false&finalizeReqPayInfo=false</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a>
-            <#else>
-                <a href="<@ofbizUrl>/finalizeOrder</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a>
-            </#if>
-        <#else>
-            <span class="submenutextdisabled">${uiLabelMap.OrderRecalculateOrder}</span>
-            <span class="submenutextrightdisabled">${uiLabelMap.OrderFinalizeOrder}</span>
-        </#if>
-    </div>
-</div>
+<table width="80%" border="0" cellspacing="0" cellpadding="0" class="boxoutside">
+	<tr>
+		<td width="100%">
+    		<table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop' align="left">
+    		<tr>
+    			<td>
+	    			<div class="boxhead">
+				        &nbsp;${uiLabelMap.CommonCreate}
+        				<#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+            				${uiLabelMap.OrderPurchaseOrder}
+        				<#else>
+            				${uiLabelMap.OrderSalesOrder}
+        				</#if>
+        			</div>
+				</td>
+			</tr>
+			<tr>
+				<td>
+        			<a href="<@ofbizUrl>/orderentry</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderShoppingCart}</a>
+        			<a href="<@ofbizUrl>/emptycart</@ofbizUrl>" class="submenutext">${uiLabelMap.OrderClearOrder}</a>
+        			<#if (shoppingCart.size() > 0)>
+            			<a href="javascript:document.cartform.submit()" class="submenutext">${uiLabelMap.OrderRecalculateOrder}</a>
+	            		<#if shoppingCart.getOrderType() == "PURCHASE_ORDER">
+    			            <a href="<@ofbizUrl>/finalizeOrder?finalizeReqCustInfo=false&finalizeReqShipInfo=false&finalizeReqOptions=false&finalizeReqPayInfo=false</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a>
+			            <#else>
+			                <a href="<@ofbizUrl>/finalizeOrder</@ofbizUrl>" class="submenutextright">${uiLabelMap.OrderFinalizeOrder}</a>
+           				 </#if>
+      				<#else>
+            			<span class="submenutextdisabled">${uiLabelMap.OrderRecalculateOrder}</span>
+           				<span class="submenutextrightdisabled">${uiLabelMap.OrderFinalizeOrder}</span>
+        			</#if>
+				</td>
+			</tr>
+			</table>
+		</td>
+	</tr>		
+</table>
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl	2005-04-02 15:52:17.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/orderHeaderInfo.ftl	2005-04-03 11:07:17.000000000 +0200
@@ -92,4 +92,4 @@
     </td>
   </tr>
 </table>
-
+<br>
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl	2005-04-02 15:52:18.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/orderShortcuts.ftl	2005-04-03 11:08:18.000000000 +0200
@@ -89,4 +89,4 @@
     </td>
   </tr>
 </table>
-
+<br>
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/promoUseDetailsInline.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/promoUseDetailsInline.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/promoUseDetailsInline.ftl	2005-04-01 01:14:12.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/promoUseDetailsInline.ftl	2005-04-01 16:52:34.000000000 +0200
@@ -24,7 +24,6 @@
  *@since      3.0
 -->
 
-  <table border="0" cellspacing="0" cellpadding="0" class="boxoutside">
     <tr>
       <td width="100%">
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxtop">
@@ -90,4 +89,3 @@
         </table>
       </td>
     </tr>
-  </table>
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/showcart.ftl /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/showcart.ftl
--- /home/environnement/ofbiz/applications/order/webapp/ordermgr/entry/showcart.ftl	2005-04-02 15:52:18.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/webapp/ordermgr/entry/showcart.ftl	2005-04-03 13:09:35.172727088 +0200
@@ -114,10 +114,10 @@
 //-->
 </script>
 
-<TABLE border="0" cellspacing="0" cellpadding="0" class="boxoutside">
-  <TR>
-    <TD >
-      <table border="0" cellspacing="0" cellpadding="0" class="boxbottom">
+<table width="80%" border="0" cellspacing="0" cellpadding="0" class="boxoutside">
+  <TR >
+    <TD width="100%">
+      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxbottom">
         <tr>
           <td>           
             <form method="POST" action="<@ofbizUrl>/additem</@ofbizUrl>" name="quickaddform" style="margin: 0;">
@@ -133,7 +133,7 @@
                     <#else>
                       <span class="tabletext">[${uiLabelMap.PartyPartyNotDefined}]</span>
                     </#if>
-                    - <span class="tabletext"><a href="<@ofbizUrl>/orderentry?updateParty=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonChange}]</a><#if partyId?default("_NA_") == "_NA_"> - <a href="/partymgr/control/findparty?externalLoginKey=${requestAttributes.externalLoginKey}" class="buttontext">[${uiLabelMap.PartyFindParty}]</a></#if></span>
+                    <span class="tabletext"><a href="<@ofbizUrl>/orderentry?updateParty=Y</@ofbizUrl>" class="buttontext">[${uiLabelMap.CommonChange}]</a><#if partyId?default("_NA_") == "_NA_"> - <a href="/partymgr/control/findparty?externalLoginKey=${requestAttributes.externalLoginKey}" class="buttontext">[${uiLabelMap.PartyFindParty}]</a></#if></span>
                   </td>
                 </tr>              
               </table>
@@ -211,18 +211,17 @@
       </table>
     </TD>
   </TR>
-</TABLE>
 
 <script language="JavaScript">
 <!--
   document.quickaddform.add_product_id.focus();
 //-->
 </script>
-<BR>
-<TABLE border="0" cellspacing="0" cellpadding="0" class="boxoutside">
+
   <TR>
     <TD>
-      <table border="0" width="100%" cellspacing="0" cellpadding="0" class="boxtop">
+		<br>
+	      <table border="0" width="100%" cellspacing="0" cellpadding="0" class="boxtop">
         <tr>
           <td valign="middle" align="left">
             <div class="boxhead">&nbsp;${uiLabelMap.OrderOrderItems}</div>
@@ -262,6 +261,7 @@
                 </#list>
                 </#if>
               </select>
+              </td>
           <#else>
             <td NOWRAP>&nbsp;</td>
           </#if>
@@ -275,17 +275,18 @@
         <#list shoppingCart.items() as cartLine>
           <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)>
           <#assign lineOptionalFeatures = cartLine.getOptionalProductFeatures()>
-          <tr><td colspan="8"><hr class="sepbar"></td></tr>
+          <tr><td colspan="7"><hr class="sepbar"></td></tr>
           <tr>
             <td>&nbsp;</td>         
-            <td>
-	      <table border="0">
-	      <tr><td colspan="2">
+	        <td>
+		    <table border="0">
+	      	<tr>
+	      		<td>
                 <div class="tabletext">                    
                   <#if cartLine.getProductId()?exists>
                     <#-- product item -->
                     <a href="<@ofbizUrl>/product?product_id=${cartLine.getProductId()}</@ofbizUrl>" class="buttontext">${cartLine.getProductId()}</a> -
-                    <input size="60" class="inputBox" type="text" name="description_${cartLineIndex}" value="${cartLine.getName()?default("")}"><br/>
+                    <input size="50" class="inputBox" type="text" name="description_${cartLineIndex}" value="${cartLine.getName()?default("")}"><br/>
                     <i>${cartLine.getDescription()?if_exists}</i>
                     <#if shoppingCart.getOrderType() != "PURCHASE_ORDER">
                       <#-- only applies to sales orders, not purchase orders
@@ -311,7 +312,8 @@
                    </#if>
 		  		  
                 </div>
-	        </td></tr>
+	        </td>
+	        </tr>
 	        <#if cartLine.getRequirementId()?has_content>
 	          <tr>
                     <td colspan="2" align="left">
@@ -430,14 +432,12 @@
       </table>
     </TD>
   </TR>
-</TABLE>
 
 <#if shoppingCart.getOrderType() == "SALES_ORDER">
-  <br/>
-  <table border="0" cellspacing="0" cellpadding="0" class="boxoutside">
     <tr>
       <td>
-        <table border="0" width="100%" cellspacing="0" cellpadding="0" class="boxtop">
+  		<br>
+          <table border="0" width="100%" cellspacing="0" cellpadding="0" class="boxtop">
           <tr>
             <td valign="middle" align="left">
               <div class="boxhead">&nbsp;${uiLabelMap.OrderPromotionCouponCodes}</div>
@@ -470,14 +470,12 @@
         </table>
       </td>
     </tr>
-  </table>
 </#if>
 
 <#if showPromoText?exists && showPromoText>
-  <br/>
-  <table border="0" cellspacing="0" cellpadding="0" class="boxoutside">
     <tr>
       <td>
+		<br>
         <table border="0" width="100%" cellspacing="0" cellpadding="0" class="boxtop">
           <tr>
             <td valign="middle" align="left">
@@ -517,15 +515,13 @@
         </table>
       </td>
     </tr>
-  </table>
 </#if>
 
 <#if associatedProducts?has_content>
-  <BR>
-  <TABLE border="0" cellspacing="0" cellpadding="0" class="boxoutside">
     <TR>
       <TD>
-        <table border="0" cellspacing="0" cellpadding="0" class="boxtop">
+	  <BR>
+        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxtop">
           <tr>
             <td valign="middle" align="left">
               <div class="boxhead">&nbsp;${uiLabelMap.help_also_interested_in}</div>
@@ -560,11 +556,10 @@
         </table>
       </TD>
     </TR>
-  </TABLE>
+  
 </#if>
 
-
 <#if (shoppingCartSize?default(0) > 0)>
-  <br/>
   ${screens.render("component://order/widget/ordermgr/OrderEntryCartScreens.xml#promoUseDetailsInline")}
 </#if>
+</table>
-------------- next part --------------
diff -Naur -X exclude.txt /home/environnement/ofbiz/applications/order/widget/ordermgr/CommonScreens.xml /home/environnement/ofbiz0104_widget/applications/order/widget/ordermgr/CommonScreens.xml
--- /home/environnement/ofbiz/applications/order/widget/ordermgr/CommonScreens.xml	2005-04-01 01:14:11.000000000 +0200
+++ /home/environnement/ofbiz0104_widget/applications/order/widget/ordermgr/CommonScreens.xml	2005-04-01 14:17:12.000000000 +0200
@@ -53,11 +53,11 @@
                     <container style="contentarea">
                         <!-- by default will render left-bar only if leftbarScreen value not empty -->
                         <include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/>
-
                         <container style="column-main">
                             <!-- render messages -->
                             <platform-specific><html><html-template location="component://common/webcommon/includes/messages.ftl"/></html></platform-specific>
-                            <decorator-section-include name="body"/>
+                            <decorator-section-include name="body"/>                    
+							<container style="endcolumns" />
                         </container>
                     </container>
                 </container>


More information about the Dev mailing list