CRUDcommission

This commit is contained in:
yamin
2017-08-21 18:14:36 +06:30
parent 9d424df9fd
commit 4e29cd7cdd
7 changed files with 103 additions and 29 deletions

View File

@@ -2,9 +2,14 @@
<%= f.error_notification %>
<div class="form-inputs">
<%= f.collection_select :product_id, Product.all.order('name asc'), :id, :name, {prompt: "Select a Product"}, {class: "form-control"} %>
<%= f.input :amount %>
<%= f.input :commission_type, :collection => [:percentage,:net_amount] %>
<label><%= f.check_box :is_active %> Active </label>
</div>
<div class="form-actions">
<%= f.button :submit %>
</div>
<% end %>