$scope.update = (code, value, type, target) => { $scope.code = code; $scope.value = value; $scope.type = type; $scope.target = target; }; $scope.remove = () => { $scope.code = ''; $scope.value = 0; $scope.type = ''; $scope.target = ''; }; $scope.compute = (targetValue) => { if ($scope.type !== 'percentage'){ return $scope.value; } if (typeof targetValue !== 'number'){ targetValue = (($scope.target === 'service') ? $cart.serviceCharge : $cart.subTotal); } return (targetValue * $scope.value); };
copy = (text, message) => { navigator.clipboard.writeText(text).then(() => { $alert.notify({ type: 'success', message: (message || 'Text copied to clipboard.'), toast: true, }); }); };
Sign in
Predictive Calculator
Partnership
About Us
Blog
Get recommendation
Predictive Calculator
Partnership
About Us
Blog
Get recommendation
Forgot your password?
Enter the email address associated with your Shirah account and we will send you a link to reset your password
Send password reset link
Already have an account?
Sign in here
mainMount = document.querySelector('#main-mount'); modalMount = document.querySelector('#modal-mount');