Module: BBMB::Html::View::ListPrices
- Includes:
- Vat
- Included in:
- CurrentPositions, Positions, Products
- Defined in:
- lib/bbmb/html/view/list_prices.rb
Constant Summary collapse
- BACKGROUND_ROW =
'bg'
- BACKGROUND_SUFFIX =
''
- HEAD_OFFSET_STEP =
[0,1]
- OFFSET_STEP =
[0,2]
Instance Method Summary collapse
- #price1(model) ⇒ Object
- #price2(model) ⇒ Object
- #price3(model) ⇒ Object
- #price4(model) ⇒ Object
- #price5(model) ⇒ Object
- #price6(model) ⇒ Object
- #price_levels(model) ⇒ Object
- #pricex(model, pricex) ⇒ Object
Methods included from Vat
Instance Method Details
#price1(model) ⇒ Object
27 28 29 |
# File 'lib/bbmb/html/view/list_prices.rb', line 27 def price1(model) pricex(model, 1) end |
#price2(model) ⇒ Object
30 31 32 |
# File 'lib/bbmb/html/view/list_prices.rb', line 30 def price2(model) pricex(model, 2) end |
#price3(model) ⇒ Object
33 34 35 |
# File 'lib/bbmb/html/view/list_prices.rb', line 33 def price3(model) pricex(model, 3) end |
#price4(model) ⇒ Object
36 37 38 |
# File 'lib/bbmb/html/view/list_prices.rb', line 36 def price4(model) pricex(model, 4) end |
#price5(model) ⇒ Object
39 40 41 |
# File 'lib/bbmb/html/view/list_prices.rb', line 39 def price5(model) pricex(model, 5) end |
#price6(model) ⇒ Object
42 43 44 |
# File 'lib/bbmb/html/view/list_prices.rb', line 42 def price6(model) pricex(model, 6) end |
#price_levels(model) ⇒ Object
45 46 47 |
# File 'lib/bbmb/html/view/list_prices.rb', line 45 def price_levels(model) price1(model) end |
#pricex(model, pricex) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/bbmb/html/view/list_prices.rb', line 20 def pricex(model, pricex) qval = model.qty_level(pricex) pval = model.price_qty(qval) if(qval.to_i > 0 && pval.to_f > 0) @lookandfeel.lookup(:list_price, qval, pval) end end |