(function() {
    'use strict';

    angular
        .module('kscFinaluserApp')
        .directive('discountBox', discountBox)
        .directive('discountBoxOff', discountBoxOff)
        .directive('discountBoxDescription', discountBoxDescription);

        function discountBox() {
            
            return {
                restrict: 'EA',
                templateUrl: 'components/directive/discount/discount-box.html',
                controller: 'DiscountBoxController',
                controllerAs: 'vm',
                scope: {
                    totalValue: '=',
                    paymentDiscount: '=',
                    item: '=',
                    type: '='
                },
            };
        }

        function discountBoxOff() {
            
            return {
                restrict: 'EA',
                templateUrl: 'components/directive/discount/discount-box-off.html',
                controller: 'DiscountBoxController',
                controllerAs: 'vm',
                scope: {
                    totalValue: '=',
                    paymentDiscount: '=',
                    item: '=',
                    type: '='
                },
            };
        }

        function discountBoxDescription() {
            
            return {
                restrict: 'EA',
                templateUrl: 'components/directive/discount/discount-box-description.html',
                controller: 'DiscountBoxController',
                controllerAs: 'vm',
                scope: {
                    totalValue: '=',
                    paymentDiscount: '=',
                    item: '=',
                    type: '='
                },
            };
        }
})();