invoiceModule.directive('invoiceDetailVehicle', ['$log', function ($log) {
    'use strict';
    $log.debug('invoiceDetailVehicle.ctor()...');
    return {
        restrict: 'E',
        templateUrl: '/app/vat/output-invoice/GD-BD-invoice-detail/GD-BD-invoice-detail.html' + '?_=' + Math.random(),
        scope:
        {   //[dbo].[OutputInvoiceGDIssued].id       
            detailKey: "=",
            invoiceStatus:"=?",
            parentPage: "@",
            parentElement: "@",
            parentRefresh: "&",
            //in order view gd detail from by vin page
            hideAction: "=?"
        },
        controller: 'invoiceDetailVehicleController',
        link: function ($scope, $element) {
            $scope.$on('openGDDetailDialog', function () {
                $scope.eventService.loadDataAfterReady();                
            });
        }
    };
}]);