Class: ArticlePrice
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ArticlePrice
- Includes:
- LocalizeInput, PriceCalculation
- Defined in:
- app/models/article_price.rb
Instance Attribute Summary collapse
-
#article ⇒ Article
Article this price is about.
-
#deposit ⇒ Number
Deposit.
-
#order_articles ⇒ Array<OrderArticle>
Order articles this price is associated with.
-
#price ⇒ Number
Net price.
-
#tax ⇒ Number
VAT percentage.
-
#unit_quantity ⇒ Number
Number of units in wholesale package (box).
Method Summary
Methods included from PriceCalculation
Methods included from LocalizeInput
Instance Attribute Details
#article ⇒ Article
Returns Article this price is about.
20 |
# File 'app/models/article_price.rb', line 20 belongs_to :article |
#deposit ⇒ Number
Returns Deposit.
20 |
# File 'app/models/article_price.rb', line 20 belongs_to :article |
#order_articles ⇒ Array<OrderArticle>
Returns Order articles this price is associated with.
23 |
# File 'app/models/article_price.rb', line 23 has_many :order_articles |
#price ⇒ Number
Returns Net price.
20 |
# File 'app/models/article_price.rb', line 20 belongs_to :article |
#tax ⇒ Number
Returns VAT percentage.
20 |
# File 'app/models/article_price.rb', line 20 belongs_to :article |
#unit_quantity ⇒ Number
Returns Number of units in wholesale package (box).
20 |
# File 'app/models/article_price.rb', line 20 belongs_to :article |