Dont show 'closing in' message when oc closes in more than 3 months

This commit is contained in:
Luis Ramos
2020-10-21 09:49:21 +01:00
committed by Andy Brett
parent a51d01efac
commit f71de8123a
4 changed files with 29 additions and 7 deletions

View File

@@ -25,3 +25,6 @@ Darkswarm.controller "OrderCycleChangeCtrl", ($scope, $rootScope, $timeout, Orde
Cart.reloadFinalisedLineItems()
ChangeableOrdersAlert.reload()
$rootScope.$broadcast 'orderCycleSelected'
$scope.closesInLessThan3Months = () ->
moment().diff(moment(OrderCycle.orders_close_at(), "YYYY-MM-DD HH:mm:SS Z"), 'days') > -75