Class: ArticlePrice

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
PriceCalculation
Defined in:
app/models/article_price.rb

Instance Attribute Summary collapse

Method Summary

Methods included from PriceCalculation

#fc_price, #gross_price

Instance Attribute Details

#articleArticle

Returns Article this price is about.

Returns:

  • (Article)

    Article this price is about.


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

belongs_to :article

#depositNumber

Returns Deposit.

Returns:

  • (Number)

    Deposit

See Also:


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

belongs_to :article

#order_articlesArray<OrderArticle>

Returns Order articles this price is associated with.

Returns:

  • (Array<OrderArticle>)

    Order articles this price is associated with.


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

has_many :order_articles

#priceNumber

Returns Net price.

Returns:

  • (Number)

    Net price

See Also:


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

belongs_to :article

#taxNumber

Returns VAT percentage.

Returns:

  • (Number)

    VAT percentage

See Also:


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

belongs_to :article

#unit_quantityNumber

Returns Number of units in wholesale package (box).

Returns:

  • (Number)

    Number of units in wholesale package (box).

See Also:


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

belongs_to :article