svn commit: r1847352 - /ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1847352 - /ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl

surajk
Author: surajk
Date: Sat Nov 24 09:50:04 2018
New Revision: 1847352

URL: http://svn.apache.org/viewvc?rev=1847352&view=rev
Log:
Fixed: Force complete Purchase Order button throws error.
(OFBIZ-9912)
Thanks Priya Sharma for reporting and Amit Gadaley for providing the patch.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl

Modified: ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl?rev=1847352&r1=1847351&r2=1847352&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/template/shipment/ReceiveInventoryAgainstPurchaseOrder.ftl Sat Nov 24 09:50:04 2018
@@ -222,13 +222,19 @@ under the License.
                         </tr>
                         <tr>
                             <td colspan="12" align="right">
-                                <a class="smallSubmit" href="<@ofbizUrl>completePurchaseOrder?orderId=${orderId}&amp;facilityId=${facilityId}&amp;shipmentId=${shipmentId}</@ofbizUrl>">${uiLabelMap.OrderForceCompletePurchaseOrder}</a>
+                                <input form="orderForceCompletePurchaseOrder" type="submit" value="${uiLabelMap.OrderForceCompletePurchaseOrder}" class="smallSubmit"/>
                             </td>
                         </tr>
                     </#if>
                 </table>
                 <input type="hidden" name="_rowCount" value="${rowCount}" />
             </form>
+            <form id="orderForceCompletePurchaseOrder" method="post" action="<@ofbizUrl>completePurchaseOrder</@ofbizUrl>">
+                <input type="hidden" name="orderId" value="${orderId}"/>
+                <input type="hidden" name="facilityId" value="${facilityId}"/>
+                <input type="hidden" name="shipmentId" value="${shipmentId}"/>
+                <input type="hidden" name="clearAll" value="Y"/>
+            </form>
         </#if>
         <#if itemsAvailableToReceive && totalReadyToReceive < totalAvailableToReceive>
             <h3>${uiLabelMap.ProductReceiveInventoryAddProductToReceive}</h3>