@@ -204,20 +204,16 @@ class SimAnnual
end
def call
- if customer.balance >= annual_fee
+ if customer.balance >= annual_price
refill_and_bill(1024, annual_price, "Annual fee for #{iccid}")
else
- LowBalance.for(customer, refill_price).then(&:notify!).then do |result|
+ LowBalance.for(customer, annual_price).then(&:notify!).then do |result|
next call if result.positive?
notify
end
end
end
-- def annual_fee- customer.currency == :USD ? BigDecimal("5.50") : BigDecimal("7.50")- end
end
def fetch_customers(cids)