Class: ArticlePrice

Inherits:
ApplicationRecord show all
Includes:
LocalizeInput, PriceCalculation
Defined in:
app/models/article_price.rb

Instance Attribute Summary collapse

Method Summary

Methods included from PriceCalculation

#fc_price, #gross_price

Methods included from LocalizeInput

parse

Instance Attribute Details

#articleArticle

Returns Article this price is about.

Returns:

  • (Article)

    Article this price is about.



20
# File 'app/models/article_price.rb', line 20

belongs_to :article

#depositNumber

Returns Deposit.

Returns:

  • (Number)

    Deposit

See Also:



20
# File 'app/models/article_price.rb', line 20

belongs_to :article

#order_articlesArray<OrderArticle>

Returns Order articles this price is associated with.

Returns:

  • (Array<OrderArticle>)

    Order articles this price is associated with.



23
# File 'app/models/article_price.rb', line 23

has_many :order_articles

#priceNumber

Returns Net price.

Returns:

  • (Number)

    Net price

See Also:



20
# File 'app/models/article_price.rb', line 20

belongs_to :article

#taxNumber

Returns VAT percentage.

Returns:

  • (Number)

    VAT percentage

See Also:



20
# File 'app/models/article_price.rb', line 20

belongs_to :article

#unit_quantityNumber

Returns Number of units in wholesale package (box).

Returns:

  • (Number)

    Number of units in wholesale package (box).

See Also:



20
# File 'app/models/article_price.rb', line 20

belongs_to :article