Fixed input control in balancing mode.
This commit is contained in:
parent
fbf6a283a0
commit
5f51afb5ee
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ class ArticlePrice < ActiveRecord::Base
|
||||||
belongs_to :article
|
belongs_to :article
|
||||||
has_many :order_articles
|
has_many :order_articles
|
||||||
|
|
||||||
|
validates_presence_of :price, :tax, :deposit, :unit_quantity
|
||||||
|
|
||||||
# Custom attribute setter that accepts decimal numbers using localized decimal separator.
|
# Custom attribute setter that accepts decimal numbers using localized decimal separator.
|
||||||
def price=(price)
|
def price=(price)
|
||||||
self[:price] = String.delocalized_decimal(price)
|
self[:price] = String.delocalized_decimal(price)
|
||||||
|
|
Loading…
Reference in a new issue