Remove cost price field from product variant form

This commit is contained in:
Arun Kumar Mohan
2021-02-06 18:44:30 -05:00
parent 9851c9a762
commit beece545de
2 changed files with 1 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ module PermittedAttributes
def self.attributes
[
:id, :sku, :on_hand, :on_demand,
:cost_price, :price, :unit_value, :unit_description,
:price, :unit_value, :unit_description,
:display_name, :display_as,
:weight, :height, :width, :depth
]

View File

@@ -34,9 +34,6 @@
.field
= f.label :price, t('.price')
= f.text_field :price, value: number_to_currency(@variant.price, unit: ''), class: 'fullwidth'
.field
= f.label :cost_price, t('.cost_price')
= f.text_field :cost_price, value: number_to_currency(@variant.cost_price, unit: ''), class: 'fullwidth'
%div{ 'set-on-demand' => '' }
.field.checkbox