(price, users, months)
| 916 | } |
| 917 | |
| 918 | const getPrepaidCodeAmount = function (price, users, months) { |
| 919 | if (price == null) { price = 0 } |
| 920 | if (users == null) { users = 0 } |
| 921 | if (months == null) { months = 0 } |
| 922 | if (!(users > 0) || !(months > 0)) { return 0 } |
| 923 | const total = price * users * months |
| 924 | return total |
| 925 | } |
| 926 | |
| 927 | const formatDollarValue = dollars => '$' + (parseFloat(dollars).toFixed(2)) |
| 928 |
nothing calls this directly
no outgoing calls
no test coverage detected