Skip to content
Loading
Which model will select to be base of view Sales Order Entry  
  •             class="form-group">  
  •                 for="BranchCode" class="control-label">  
  •                 for="BranchCode" class="form-control" />  
  •                 for="BranchCode" class="text-danger">  
  •               
  •             class="form-group">  
  •                 for="SalesType" class="control-label">  
  •                 for="SalesType" class="form-control" />  
  •                 for="SalesType" class="text-danger">  
  •               
  •             class="form-group">  
  •                 for="SalesDate" class="control-label">  
  •                 for="SalesDate" class="form-control" />  
  •                 for="SalesDate" class="text-danger">  
  •               
  •             class="form-group">  
  •                 for="CustomerID" class="control-label">  
  •                 for="CustomerID" class="form-control" asp-items="ViewBag.CustomerID">  
  •               
  •             class="form-group">  
  •                 for="TotalPrice" class="control-label">  
  •                 for="TotalPrice" class="form-control" />  
  •                 for="TotalPrice" class="text-danger">  
  •               
  •             class="details">  
  •                 

    Order Items

      
  •                 "100%">  
  •                       
  •                         SalesLineNo  
  •                         ItemCode  
  •                         Quantity  
  •                         UnitPrice  
  •                         Total  
  •                            
  •                       
  •                       
  •                           
  •                             "text" id="SalesLineNo" />  
  •                             class="error">Item name required  
  •                           
  •                           
  •                             "text" id="ItemCode" />  
  •                             class="error">Valid quantity required  
  •                           
  •                           
  •                             "text" id="Qunatity" />  
  •                             class="error">Valid rate required  
  •                           
  •                           
  •                             "text" id="UnitPrice" />  
  •                             class="error">Valid rate required  
  •                           
  •                           
  •                             "text" id="Total" />  
  •                             class="error">Valid rate required  
  •                           
  •                           
  •                             "button" id="add" value="add" />  
  •                           
  •                       
  •                   
  •                 "orderItems" class="tablecontainer">  
  •   
  •                   
  •                 @*"padding:10px 0px; text-align:right">  
  •             "submit" type="button" value="Save" style="padding:10px 20px" />  
  •         *@  
  •                 class="form-group">  
  •                     "submit" value="Create" class="btn btn-default" />  
  •                   
  •               
  •               
  •     
  •   
  •   
  •   
  •   
  •   
  •     "Index">Back to List  
  •   
  •   
  •       
  • @section Scripts {  
  •     @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}  
  • }  
  •  
  • Jenith Thakkar
    In your given criteria what I'm seeing Sales Header Model and Sales Footer Model both are mandatory 
     
    When you show a list of sales orders that time you need to show only sales header on list view but when you want show particular sales order that time you need to show sales header and sales footer both 

    Please check below image here upper part is header and all line items are footer