update instanc code unique receipt bill and sale item
This commit is contained in:
@@ -3,11 +3,22 @@
|
||||
<div class="card">
|
||||
<div class="body">
|
||||
<%= simple_form_for([:settings,@item, @settings_menu_item_instances]) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
<% if(flash["instance_code_error"]) %>
|
||||
<div class="alert alert-danger">Please review the problems below:</div>
|
||||
<% end %>
|
||||
|
||||
<div class="col-md- panel">
|
||||
<div class="form-group p-l-15">
|
||||
<%= f.input :item_instance_code %>
|
||||
<%= f.input :item_instance_code ,:input_html=>{:class=>""},:required=>true %>
|
||||
|
||||
<% flash.each do |test, msg| %>
|
||||
<% str="[\"#{msg['item_instance_code']}\"]"
|
||||
str.gsub!('["', '')
|
||||
str.gsub!('"]', '')
|
||||
%>
|
||||
<span class="help-block"><%= str %></span>
|
||||
<% end %>
|
||||
|
||||
<%= f.input :item_instance_name %>
|
||||
<%= f.input :price %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user