More intuitive logic for minimum billable turnover

This commit is contained in:
Rob Harrington
2016-04-29 17:18:35 +10:00
parent 8dd2d17cd5
commit 1d7308bf5d
8 changed files with 23 additions and 23 deletions

View File

@@ -10,7 +10,7 @@ angular.module("admin.businessModelConfiguration").controller "BusinessModelConf
Math.min($scope.bill(), Number($scope.cap))
$scope.finalBill = ->
return 0 if Number($scope.turnover) <= Number($scope.min_bill_to)
return 0 if Number($scope.turnover) < Number($scope.minBillableTurnover)
$scope.cappedBill()
$scope.capReached = ->