diff --git a/application/controllers/CostCenter.php b/application/controllers/CostCenter.php index f6586729..f703de53 100644 --- a/application/controllers/CostCenter.php +++ b/application/controllers/CostCenter.php @@ -68,7 +68,7 @@ class CostCenter extends BaseController $this->loadViews("addcost", $this->global, NULL); } - + /** * This function is used to add new Cost to the system */ diff --git a/application/views/addasset.php b/application/views/addasset.php index fab4c8e3..0d28a9e4 100644 --- a/application/views/addasset.php +++ b/application/views/addasset.php @@ -10,13 +10,7 @@ $(function() { var mindt = year-70; var maxdt = year-15; - $("#DateOfCreated").datepicker({ - minDate : new Date(mindt,1,1), - maxDate : 'now', - dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0' - - -}); + $("#DateOfCommission").datepicker({ minDate : new Date(year-SIAStartYear,1,1), maxDate :'now', @@ -68,17 +62,7 @@ $(function() {