daybook details Update : kdk

This commit is contained in:
dineshkumarkannan 2018-04-18 16:10:49 +05:30
parent c5d8698beb
commit bf7bfd4084
12 changed files with 363 additions and 118 deletions

View File

@ -64,8 +64,15 @@ class DayBook_model extends CI_Model
$toDate = $dTo->format('Y-m-d'); $toDate = $dTo->format('Y-m-d');
$reqpayType = $reqDataBy['localBranchID']; $reqpayType = $reqDataBy['localBranchID'];
$querys = "SELECT t1.ID as ORDER_ID, t1.*, t2.ListName, t3.TypeName , t5.Firstname as Approved_by_name FROM ".DAYBOOKMASTER." as t1 LEFT JOIN ".PICK_LIST_DETAILS." as t2 ON t2.ListCode = t1.Name LEFT JOIN ".INCOMEOUTCOMEMASTER." as t3 ON t3.ID = t1.Type $querys = "SELECT t1.ID as ORDER_ID, t1.*, t2.ListName, t3.TypeName , t5.Firstname as Approved_by_name ,
LEFT JOIN ".LOGIN." as t4 ON t4.ID = t1.Approval_By LEFT JOIN ".STAFF." as t5 ON t5.StaffID = t4.StaffID t7.UniversityName as UniversityName, t6.CourseName as CourseName
FROM ".DAYBOOKMASTER." as t1
LEFT JOIN ".PICK_LIST_DETAILS." as t2 ON t2.ListCode = t1.Name
LEFT JOIN ".INCOMEOUTCOMEMASTER." as t3 ON t3.ID = t1.Type
LEFT JOIN ".LOGIN." as t4 ON t4.ID = t1.Approval_By
LEFT JOIN ".STAFF." as t5 ON t5.StaffID = t4.StaffID
LEFT JOIN ".COURSE." as t6 ON t6.CourseID = t1.CourseID
LEFT JOIN ".UNIVERSITY." as t7 ON t7.UniversityID = t6.UniversityID
WHERE STR_TO_DATE(t1.Date, '%d-%m-%Y') BETWEEN '$fromDate' WHERE STR_TO_DATE(t1.Date, '%d-%m-%Y') BETWEEN '$fromDate'
AND '$toDate' AND t1.BranchCode = '$reqpayType' ORDER BY ORDER_ID DESC"; AND '$toDate' AND t1.BranchCode = '$reqpayType' ORDER BY ORDER_ID DESC";
// echo $querys;exit(); // echo $querys;exit();
@ -84,8 +91,15 @@ class DayBook_model extends CI_Model
// $this->db->order_by('CreatedOn', 'DESC'); // $this->db->order_by('CreatedOn', 'DESC');
// $this->db->where('t1.BranchCode', $reqDataBy['localBranchID']); // $this->db->where('t1.BranchCode', $reqDataBy['localBranchID']);
$reqpayType = $reqDataBy['localBranchID']; $reqpayType = $reqDataBy['localBranchID'];
$querys = "SELECT t1.ID as ORDER_ID, t1.*, t2.ListName, t3.TypeName, t5.Firstname as Approved_by_name FROM ".DAYBOOKMASTER." as t1 LEFT JOIN ".PICK_LIST_DETAILS." as t2 ON t2.ListCode = t1.Name LEFT JOIN ".INCOMEOUTCOMEMASTER." as t3 ON t3.ID = t1.Type $querys = "SELECT t1.ID as ORDER_ID, t1.*, t2.ListName, t3.TypeName, t5.Firstname as Approved_by_name ,
LEFT JOIN ".LOGIN." as t4 ON t4.ID = t1.Approval_By LEFT JOIN ".STAFF." as t5 ON t5.StaffID = t4.StaffID t7.UniversityName as UniversityName, t6.CourseName as CourseName
FROM ".DAYBOOKMASTER." as t1
LEFT JOIN ".PICK_LIST_DETAILS." as t2 ON t2.ListCode = t1.Name
LEFT JOIN ".INCOMEOUTCOMEMASTER." as t3 ON t3.ID = t1.Type
LEFT JOIN ".LOGIN." as t4 ON t4.ID = t1.Approval_By
LEFT JOIN ".STAFF." as t5 ON t5.StaffID = t4.StaffID
LEFT JOIN ".COURSE." as t6 ON t6.CourseID = t1.CourseID
LEFT JOIN ".UNIVERSITY." as t7 ON t7.UniversityID = t6.UniversityID
WHERE t1.BranchCode = '$reqpayType' ORDER BY ORDER_ID DESC"; WHERE t1.BranchCode = '$reqpayType' ORDER BY ORDER_ID DESC";
} }
@ -190,7 +204,8 @@ class DayBook_model extends CI_Model
$branch = $typeStateDetails[0]->BranchCode; $branch = $typeStateDetails[0]->BranchCode;
// echo $id;exit(); // echo $id;exit();
try { try {
$sql1 = " DELETE FROM ".STUDENTS_FEES_PAID." WHERE ID ='$getID'"; // $sql1 = " DELETE FROM ".STUDENTS_FEES_PAID." WHERE ID ='$getID'";
$sql1 = "UPDATE ".STUDENTS_FEES_PAID." SET IsActive ='0' WHERE ID ='$getID'";
$this->db->query($sql1); $this->db->query($sql1);
} catch(Exception $e) { } catch(Exception $e) {
echo 'error'; echo 'error';

View File

@ -18,6 +18,7 @@ app.controller('daybookCtrl', ["$scope", "$rootScope", "toaster", "$filter", "ng
// get the data while page loading functions goes here // get the data while page loading functions goes here
$scope.init = function () { $scope.init = function () {
$scope.todayDate = new Date();
const LOCALTYPE = localDetail.localType; const LOCALTYPE = localDetail.localType;
if(LOCALTYPE === 'R002') { if(LOCALTYPE === 'R002') {
$scope.currentDate = new Date(); $scope.currentDate = new Date();

View File

@ -32,7 +32,7 @@ app.controller('daybookadminCtrl', ["$scope", "$rootScope", "toaster", "$filter"
$scope.getDayBookList(); $scope.getDayBookList();
$scope.getIncomeExpenseType_Status(); $scope.getIncomeExpenseType_Status();
}else {alert(); }else {
ipCookie.remove('cookiechk'); ipCookie.remove('cookiechk');
$window.localStorage.clear(); $window.localStorage.clear();
$state.go('login.signin'); $state.go('login.signin');

View File

@ -139,7 +139,7 @@ app.controller('daybookapprovalCtrl', ["$scope", "$rootScope", "toaster", "$filt
$scope.noRecordFoundSearch = false; $scope.noRecordFoundSearch = false;
var getDatBookListDetails = { var getDatBookListDetails = {
method: 'POST', method: 'POST',
url: apiPoint.url + 'getDayBookDetails/', url: apiPoint.url + 'getDayBookApprovalDetails/',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
@ -208,6 +208,29 @@ app.controller('daybookapprovalCtrl', ["$scope", "$rootScope", "toaster", "$filt
} }
} }
$scope.myStatusModel = {
'staus': '',
'description': '',
'ID':''
}
$scope.editId = '';
$scope.updateStatus = function(p) {
$scope.editId = p.ORDER_ID;
$scope.myStatusModel.ID = p.ID;
}
$scope.updateStatusClose = function() {
$scope.editId = '';
$scope.myStatusModel = {
'staus': '',
'description': '',
'ID':''
}
}
// update the status details // update the status details
$scope.statusUpdate = { $scope.statusUpdate = {
submit: function (form, myStatusModel) { submit: function (form, myStatusModel) {
@ -256,16 +279,9 @@ app.controller('daybookapprovalCtrl', ["$scope", "$rootScope", "toaster", "$filt
$http(updateStudyMaterial).then(function (response) { $http(updateStudyMaterial).then(function (response) {
if (response.data.addStatus) { if (response.data.addStatus) {
swal(" ", "Updated successfully,", "success"); swal(" ", "Updated successfully,", "success");
// for success state
$scope.getDayBookList(); $scope.getDayBookList();
$scope.unSelect();
$scope.myStatusModel = {
'staus': '',
'description': '',
}
$scope.allSelected('undefined');
$scope.OpenWindowStatus = false;
$scope.disableStatusUpdateButton = false; $scope.disableStatusUpdateButton = false;
$scope.updateStatusClose();
} else { } else {
swal(" ", response.data.message, "error"); swal(" ", response.data.message, "error");
$scope.disableStatusUpdateButton = false; $scope.disableStatusUpdateButton = false;

View File

@ -61,6 +61,7 @@ app.controller('daybooksuperadminCtrl', ["$scope", "$rootScope", "toaster", "$fi
} }
function getDetails() { function getDetails() {
$scope.todayDate = new Date();
const LOCALTYPE = localDetail.localType; const LOCALTYPE = localDetail.localType;
if(LOCALTYPE === 'R004') { if(LOCALTYPE === 'R004') {
$scope.currentDate = new Date(); $scope.currentDate = new Date();

View File

@ -176,7 +176,7 @@ app.controller('daybooksuperadminapprovalCtrl', ["$scope", "$rootScope", "toaste
$scope.noRecordFoundSearch = false; $scope.noRecordFoundSearch = false;
var getDatBookListDetails = { var getDatBookListDetails = {
method: 'POST', method: 'POST',
url: apiPoint.url + 'getDayBookDetails/', url: apiPoint.url + 'getDayBookApprovalDetails/',
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
@ -189,14 +189,15 @@ app.controller('daybooksuperadminapprovalCtrl', ["$scope", "$rootScope", "toaste
if (response.data.dayBookListStatus) { if (response.data.dayBookListStatus) {
$scope.loadingsearch = false; $scope.loadingsearch = false;
// $scope.data = response.data.dayBookListDetails; // $scope.data = response.data.dayBookListDetails;
$scope.datas = response.data.dayBookListDetails; // $scope.datas = response.data.dayBookListDetails;
const filterAddSelect = $scope.datas.filter(val => { // const filterAddSelect = $scope.datas.filter(val => {
val['Selected'] = false; // val['Selected'] = false;
return val; // return val;
}); // });
$scope.searchResultDetails = filterAddSelect; // $scope.searchResultDetails = filterAddSelect;
$scope.searchResultDetailsCopy = filterAddSelect; $scope.searchResultDetails = response.data.dayBookListDetails;
$scope.searchResultDetailsCopy = response.data.dayBookListDetails;
} else { } else {
$scope.loadingsearch = false; $scope.loadingsearch = false;
} }
@ -224,8 +225,26 @@ app.controller('daybooksuperadminapprovalCtrl', ["$scope", "$rootScope", "toaste
$scope.myStatusModel = { $scope.myStatusModel = {
'staus': '', 'staus': '',
'description': '', 'description': '',
'ID':''
} }
$scope.editId = '';
$scope.updateStatus = function(p) {
$scope.editId = p.ORDER_ID;
$scope.myStatusModel.ID = p.ID;
}
$scope.updateStatusClose = function() {
$scope.editId = '';
$scope.myStatusModel = {
'staus': '',
'description': '',
'ID':''
}
}
// End: select all or individual functionality // End: select all or individual functionality
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
@ -264,15 +283,17 @@ app.controller('daybooksuperadminapprovalCtrl', ["$scope", "$rootScope", "toaste
angular.element('.ng-invalid[name=' + firstError + ']').focus(); angular.element('.ng-invalid[name=' + firstError + ']').focus();
} else { } else {
var selectedItems = []; var selectedItems = [];
var ItemsSelected = $scope.searchResultDetails.filter(function (item) { // var ItemsSelected = $scope.searchResultDetails.filter(function (item) {
if (item.Selected === true && item.Status === 'Pending' ) { // if (item.Selected === true && item.Status === 'Pending' ) {
let itemGetID = new getUpdateDetails(item.ID); // let itemGetID = new getUpdateDetails(item.ID);
// selectedItems.push(itemGetID);
// return true;
// }
// });
let itemGetID = new getUpdateDetails();
selectedItems.push(itemGetID); selectedItems.push(itemGetID);
return true; function getUpdateDetails() {
} this.dabookListId = $scope.myStatusModel.ID;
});
function getUpdateDetails(id) {
this.dabookListId = id;
this.ListCodeStatus = $scope.myStatusModel.staus; this.ListCodeStatus = $scope.myStatusModel.staus;
this.comments = $scope.myStatusModel.description; this.comments = $scope.myStatusModel.description;
} }
@ -294,12 +315,7 @@ app.controller('daybooksuperadminapprovalCtrl', ["$scope", "$rootScope", "toaste
swal(" ", "Updated successfully,", "success"); swal(" ", "Updated successfully,", "success");
// for success state // for success state
$scope.getDayBookList(); $scope.getDayBookList();
$scope.unSelect(); $scope.updateStatusClose();
$scope.myStatusModel = {
'staus': '',
'description': '',
}
$scope.allSelected('undefined');
$scope.OpenWindowStatus = false; $scope.OpenWindowStatus = false;
$scope.disableStatusUpdateButton = false; $scope.disableStatusUpdateButton = false;
} else { } else {
@ -318,6 +334,7 @@ app.controller('daybooksuperadminapprovalCtrl', ["$scope", "$rootScope", "toaste
$scope.myStatusModel = { $scope.myStatusModel = {
'staus': '', 'staus': '',
'description': '', 'description': '',
'ID':''
} }
} }
} }

View File

@ -197,10 +197,9 @@
<table style="width: 100%;" class="table table-hover"> <table style="width: 100%;" class="table table-hover">
<thead> <thead>
<tr> <tr>
<th ng-if="dayBookApprovalAccess == '1'"> <!--<th ng-if="dayBookApprovalAccess == '1'">
<!--<input type="checkbox" ng-hide="allSelectedHide" ng-model="allSelected" ng-change="openUpdateWind()" ng-model-options="{getterSetter: true}"
/>--> </th>-->
</th>
<th ng-click="sort('Date')">Date <th ng-click="sort('Date')">Date
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='Date'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='Date'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
@ -226,17 +225,17 @@
<th ng-click="sort('Status')">Status <th ng-click="sort('Status')">Status
<span class="glyphicon sort-icon" ng-show="sortKey=='Status'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> <span class="glyphicon sort-icon" ng-show="sortKey=='Status'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> </th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody dir-paginate="p in searchResultDetails|itemsPerPage:10"> <tbody dir-paginate="p in searchResultDetails| filter:search:strict |itemsPerPage:10">
<tr> <tr>
<td> <!--<td>
<label ng-if="dayBookApprovalAccess == '1' && p.Status == 'Pending'"> <label ng-if="dayBookApprovalAccess == '1'">
<input type="checkbox" ng-model="p.Selected" ng-change="setOneSelect(p)" /> <input type="checkbox" ng-model="p.Selected" ng-change="setOneSelect(p)" />
<!--{{p.StudentID}}-->
</label> </label>
</td> </td>-->
<td>{{p.Date}}</td> <td>{{p.Date}}</td>
<td>{{p.ListName}}</td> <td>{{p.ListName}}</td>
<td>{{p.VoucherNumber}}</td> <td>{{p.VoucherNumber}}</td>
@ -261,6 +260,81 @@
<span ng-if="p.Status == 'Approved'" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">{{p.Status}}</span> <span ng-if="p.Status == 'Approved'" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">{{p.Status}}</span>
<span ng-if="p.Status == 'Rejected'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">{{p.Status}}</span> <span ng-if="p.Status == 'Rejected'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">{{p.Status}}</span>
</td> </td>
<td ng-if="p.ListName == 'Expense'">
<i class="ti-write" tooltip="Update Status" ng-click="updateStatus(p);"></i>
</td>
</tr>
<tr ng-show="p.ORDER_ID == editId">
<td colspan="8">
<form name="Form" id="form" novalidate ng-submit="statusUpdate.submit(Form, myStatusModel)" method="post">
<div class="container">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-4">
<fieldset style="background-color: #eaeaea;">
<legend>
Update Status
</legend>
<div class="row">
<a id="cancel_button" ng-click="updateStatusClose()" tooltip="Close">
<span class="glyphicon glyphicon-remove-circle"></span>
</a>
<div class="col-md-2">
</div>
<div class="col-md-8 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
<label for="form-field-select-2">
Status <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatusModel.staus"
required>
<option value="" disabled selected>Select Status</option>
<option ng-repeat="itemStatus in statusList" value="{{itemStatus.name}}">{{itemStatus.name}}</option>
</select>
<span class="error text-small block" ng-if="Form.status.$dirty && Form.status.$error.required">Status is Required</span>
</div>
</div>
<div>
<div class="row">
<div class="col-md-12 form-group" ng-class="{'has-error':Form.description.$dirty && Form.description.$invalid}">
<label>
Comments
</label>
<textarea type="text" placeholder="Enter Comments" tabindex="3" class="form-control" name="description" ng-model="myStatusModel.description"
maxlength="100" />
<span class="text-small block">Max 100 Characters.</span>
<span class="error text-small block" ng-if="Form.description.$dirty && Form.description.$error.pattern">Invalid Comments</span>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="center">
<button type="submit" tabindex="8" ladda="ldloading1.zoom_in" class="btn btn-sm btn-success" data-style="zoom-in" ng-disabled="disableStatusUpdateButton">
<i class='fa fa-spinner fa-spin' ng-if="disableStatusUpdateButton"> </i> Update
</button>
<!--<button type="reset" tabindex="9" class="btn btn-warning btn-wide" tabindex="9" ng-click="employeeForm.resetCourse(Form)">
Reset
</button>-->
</div>
</div>
</div>
</fieldset>
</div>
<div class="col-md-4">
</div>
</div>
</div>
</form>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -283,7 +283,7 @@
Update Status Update Status
</legend> </legend>
<div class="row"> <div class="row">
<a id="cancel_button" ng-click="unSelect()" tooltip="Close"> <a id="cancel_button" ng-click="updateStatusClose()" tooltip="Close">
<span class="glyphicon glyphicon-remove-circle"></span> <span class="glyphicon glyphicon-remove-circle"></span>
</a> </a>
<div class="col-md-2"> <div class="col-md-2">

View File

@ -67,6 +67,13 @@
</div> </div>
</div> </div>
<div class="col-md-4">
<label for="form-field-select-2">
Search
</label>
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search" /><br><br>
</div>
</div> </div>
<!--<div class="col-md-12" ng-if="noRecordFound == true" style="min-height: 281px;"> <!--<div class="col-md-12" ng-if="noRecordFound == true" style="min-height: 281px;">
<p style="color: red;" align="center"><strong><h3 class="text-center">No <p style="color: red;" align="center"><strong><h3 class="text-center">No
@ -113,9 +120,15 @@
<th>Paid To / Received From <th>Paid To / Received From
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
<th>Sem/Course/University
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th>
<th ng-click="sort('TypeName')">Type <th ng-click="sort('TypeName')">Type
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
<th>Mode of Payment
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th>
<th>Amount <th>Amount
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='Amount'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='Amount'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
@ -130,15 +143,17 @@
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody dir-paginate="p in data|itemsPerPage:10"> <tbody dir-paginate="p in data | filter:search:strict |itemsPerPage:10">
<tr> <tr>
<td>{{p.Date}}</td> <td>{{p.Date}}</td>
<td>{{p.ListName}}</td> <td>{{p.ListName}}</td>
<td>{{p.VoucherNumber}}</td> <td>{{p.VoucherNumber}}</td>
<td>{{p.PaidTo}}</td> <td>{{p.PaidTo}}</td>
<td> {{p.FeePaymentDetails}}<br>{{p.CourseName}} <br> {{p.UniversityName}}</td>
<td> <td>
<span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span> <span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span>
<span tooltip="Fees Updation" ng-if=" p.PaymentStatus == 0 " style="color:chocolate">{{p.TypeName}}</span></td> <span tooltip="Fees Updation" ng-if=" p.PaymentStatus == 0 " style="color:chocolate">{{p.TypeName}}</span></td>
<td>{{p.ModeOfPayment}}</td>
<td>{{p.Amount}}</td> <td>{{p.Amount}}</td>
<td>{{p.Balance}}</td> <td>{{p.Balance}}</td>
@ -277,14 +292,14 @@
<input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAdd.date" <input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAdd.date"
is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions" is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions"
placeholder="Select Date" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)" placeholder="Select Date" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
show-button-bar="true" /> show-button-bar="true" max-date="todayDate" />
<span class="error text-small block" ng-if="Form.addDate.$dirty && Form.addDate.$invalid" ng-hide="Form.addDate.$error.maxlength">Date is required.</span> <span class="error text-small block" ng-if="Form.addDate.$dirty && Form.addDate.$invalid" ng-hide="Form.addDate.$error.maxlength">Date is required.</span>
<span class="error text-small block" ng-if="Form.addDate.$error.maxlength">Enter a Valid Date </span> <span class="error text-small block" ng-if="Form.addDate.$error.maxlength">Enter a Valid Date </span>
</div> </div>
</div> </div>
<div class="col-md-6 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.addName.$invalid , 'has-success':Form.addName.$valid}"> <div class="col-md-6 form-group" ng-class="{'has-error':Form.addName.$dirty && Form.addName.$invalid , 'has-success':Form.addName.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
Income/Expense <span class="symbol required"></span> Income/Expense <span class="symbol required"></span>
</label> </label>
@ -298,29 +313,29 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4 form-group"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.voucherNumber.$dirty && Form.voucherNumber.$invalid , 'has-success':Form.voucherNumber.$valid}">
<label> <label>
Voucher Number Voucher Number <span class="symbol required"></span>
</label> </label>
<input type="text" name="voucherNumber" tabindex="1" placeholder="Enter Voucher Number" class="form-control" ng-model="myModelAdd.voucherNumber" <input type="text" name="voucherNumber" tabindex="1" placeholder="Enter Voucher Number" class="form-control" ng-model="myModelAdd.voucherNumber"
/> required/>
<span class="error text-small block" ng-if="Form.paidTo.$dirty && Form.paidTo.$invalid" ng-hide="Form.voucherNumber.$error.maxlength || Form.voucherNumber.$error.minlength || Form.voucherNumber.$error.pattern">Voucher Number is required.</span> <span class="error text-small block" ng-if="Form.voucherNumber.$dirty && Form.voucherNumber.$invalid" ng-hide="Form.voucherNumber.$error.maxlength || Form.voucherNumber.$error.minlength || Form.voucherNumber.$error.pattern">Voucher Number is required.</span>
</div> </div>
<div class="col-md-4 form-group"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.paidTo.$dirty && Form.paidTo.$invalid , 'has-success':Form.paidTo.$valid}">
<label> <label>
Paid To / Received From Paid To / Received From <span class="symbol required"></span>
</label> </label>
<input type="text" name="paidTo" tabindex="1" placeholder="Enter Paid To / Received From" class="form-control" ng-model="myModelAdd.paidTo" <input type="text" name="paidTo" tabindex="1" placeholder="Enter Paid To / Received From" class="form-control" ng-model="myModelAdd.paidTo"
/> required/>
<span class="error text-small block" ng-if="Form.paidTo.$dirty && Form.paidTo.$invalid" ng-hide="Form.paidTo.$error.maxlength || Form.paidTo.$error.minlength || Form.paidTo.$error.pattern">Paid To / Reveived From is required.</span> <span class="error text-small block" ng-if="Form.paidTo.$dirty && Form.paidTo.$invalid" ng-hide="Form.paidTo.$error.maxlength || Form.paidTo.$error.minlength || Form.paidTo.$error.pattern">Paid To / Reveived From is required.</span>
</div> </div>
<div class="col-md-4"> <div class="col-md-4" ng-class="{'has-error':Form.description_paid.$dirty && Form.description_paid.$invalid , 'has-success':Form.description_paid.$valid}">
<label> <label>
Description Description <span class="symbol required"></span>
</label> </label>
<textarea type="text" placeholder="Enter Description" tabindex="3" class="form-control" name="description_paid" ng-model="myModelAdd.description_paid" <textarea type="text" placeholder="Enter Description" tabindex="3" class="form-control" name="description_paid" ng-model="myModelAdd.description_paid"
maxlength="100" /> maxlength="100" required/>
<span class="text-small block" style="color: rgba(128, 128, 128, 0.64)">Max 100 Characters.</span> <span class="text-small block" style="color: rgba(128, 128, 128, 0.64)">Max 100 Characters.</span>
<span class="error text-small block" ng-if="Form.description_paid.$dirty && Form.description_paid.$error.pattern">Invalid Description</span> <span class="error text-small block" ng-if="Form.description_paid.$dirty && Form.description_paid.$error.pattern">Invalid Description</span>

View File

@ -119,10 +119,16 @@
</th> </th>
<th>Paid To / Received From <th>Paid To / Received From
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th>
<th>Sem/Course/University
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
<th ng-click="sort('TypeName')">Type <th ng-click="sort('TypeName')">Type
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
<th>Mode of Payment
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th>
<th>Amount <th>Amount
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='Amount'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='Amount'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
@ -144,9 +150,11 @@
<td>{{p.ListName}}</td> <td>{{p.ListName}}</td>
<td>{{p.VoucherNumber}}</td> <td>{{p.VoucherNumber}}</td>
<td>{{p.PaidTo}}</td> <td>{{p.PaidTo}}</td>
<td> {{p.FeePaymentDetails}}<br>{{p.CourseName}} <br> {{p.UniversityName}}</td>
<td> <td>
<span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span> <span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span>
<span tooltip="Fees Updation" ng-if=" p.PaymentStatus == 0 " style="color:chocolate">{{p.TypeName}}</span></td> <span tooltip="Fees Updation" ng-if=" p.PaymentStatus == 0 " style="color:chocolate">{{p.TypeName}}</span></td>
<td>{{p.ModeOfPayment}}</td>
<td>{{p.Amount}}</td> <td>{{p.Amount}}</td>
<td>{{p.Balance}}</td> <td>{{p.Balance}}</td>

View File

@ -42,7 +42,7 @@
<div class="col-md-12"> <div class="col-md-12">
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-3">
<div data-ng-controller="DatepickerDemoCtrl"> <div data-ng-controller="DatepickerDemoCtrl">
<label> <label>
From Date From Date
@ -54,7 +54,7 @@
</div> </div>
</div> </div>
<div class="col-md-4"> <div class="col-md-3">
<div data-ng-controller="DatepickerDemoCtrl"> <div data-ng-controller="DatepickerDemoCtrl">
<label> <label>
To Date To Date
@ -66,7 +66,14 @@
</div> </div>
</div> </div>
<div class="col-md-4 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.addName.$invalid , 'has-success':Form.addName.$valid}"> <div class="col-md-3">
<label for="form-field-select-2">
Search
</label>
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search" /><br><br>
</div>
<div class="col-md-3 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.addName.$invalid , 'has-success':Form.addName.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
Income/Expense Income/Expense
</label> </label>
@ -194,9 +201,9 @@
<table style="width: 100%;" class="table table-hover"> <table style="width: 100%;" class="table table-hover">
<thead> <thead>
<tr> <tr>
<th> <!--<th ng-if="dayBookApprovalAccess == '1'">
</th> </th>-->
<th ng-click="sort('Date')">Date <th ng-click="sort('Date')">Date
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='Date'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='Date'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
@ -222,17 +229,17 @@
<th ng-click="sort('Status')">Status <th ng-click="sort('Status')">Status
<span class="glyphicon sort-icon" ng-show="sortKey=='Status'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span> <span class="glyphicon sort-icon" ng-show="sortKey=='Status'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
</th> </th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody dir-paginate="p in searchResultDetails|itemsPerPage:10"> <tbody dir-paginate="p in searchResultDetails| filter:search:strict |itemsPerPage:10">
<tr> <tr>
<td> <!--<td>
<label ng-if="p.Status == 'Pending'"> <label ng-if="dayBookApprovalAccess == '1'">
<input type="checkbox" ng-model="p.Selected" ng-change="setOneSelect(p)" /> <input type="checkbox" ng-model="p.Selected" ng-change="setOneSelect(p)" />
</label> </label>
</td> </td>-->
<td>{{p.Date}}</td> <td>{{p.Date}}</td>
<td>{{p.ListName}}</td> <td>{{p.ListName}}</td>
<td>{{p.VoucherNumber}}</td> <td>{{p.VoucherNumber}}</td>
@ -257,6 +264,81 @@
<span ng-if="p.Status == 'Approved'" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">{{p.Status}}</span> <span ng-if="p.Status == 'Approved'" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">{{p.Status}}</span>
<span ng-if="p.Status == 'Rejected'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">{{p.Status}}</span> <span ng-if="p.Status == 'Rejected'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">{{p.Status}}</span>
</td> </td>
<td ng-if="p.ListName == 'Expense'">
<i class="ti-write" tooltip="Update Status" ng-click="updateStatus(p);"></i>
</td>
</tr>
<tr ng-show="p.ORDER_ID == editId">
<td colspan="8">
<form name="Form" id="form" novalidate ng-submit="statusUpdate.submit(Form, myStatusModel)" method="post">
<div class="container">
<div class="row">
<div class="col-md-4">
</div>
<div class="col-md-4">
<fieldset style="background-color: #eaeaea;">
<legend>
Update Status
</legend>
<div class="row">
<a id="cancel_button" ng-click="updateStatusClose()" tooltip="Close">
<span class="glyphicon glyphicon-remove-circle"></span>
</a>
<div class="col-md-2">
</div>
<div class="col-md-8 form-group" ng-class="{'has-error':Form.status.$dirty && Form.status.$invalid, 'has-success':Form.status.$valid}">
<label for="form-field-select-2">
Status <span class="symbol required"></span>
</label>
<select class="form-control" tabindex="4" class="cs-select cs-skin-elastic" name="status" ng-model="myStatusModel.staus"
required>
<option value="" disabled selected>Select Status</option>
<option ng-repeat="itemStatus in statusList" value="{{itemStatus.name}}">{{itemStatus.name}}</option>
</select>
<span class="error text-small block" ng-if="Form.status.$dirty && Form.status.$error.required">Status is Required</span>
</div>
</div>
<div>
<div class="row">
<div class="col-md-12 form-group" ng-class="{'has-error':Form.description.$dirty && Form.description.$invalid}">
<label>
Comments
</label>
<textarea type="text" placeholder="Enter Comments" tabindex="3" class="form-control" name="description" ng-model="myStatusModel.description"
maxlength="100" />
<span class="text-small block">Max 100 Characters.</span>
<span class="error text-small block" ng-if="Form.description.$dirty && Form.description.$error.pattern">Invalid Comments</span>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="center">
<button type="submit" tabindex="8" ladda="ldloading1.zoom_in" class="btn btn-sm btn-success" data-style="zoom-in" ng-disabled="disableStatusUpdateButton">
<i class='fa fa-spinner fa-spin' ng-if="disableStatusUpdateButton"> </i> Update
</button>
<!--<button type="reset" tabindex="9" class="btn btn-warning btn-wide" tabindex="9" ng-click="employeeForm.resetCourse(Form)">
Reset
</button>-->
</div>
</div>
</div>
</fieldset>
</div>
<div class="col-md-4">
</div>
</div>
</div>
</form>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -35,7 +35,7 @@
</div> </div>
</div> </div>
<div ng-if="viewStudentDetailsPage"> <div ng-if="viewStudentDetailsPage">
<tabset class="tabbable"> <tabset class="tabbable" ng-init="init()">
<tab heading="View" id="viewDayBook"> <tab heading="View" id="viewDayBook">
<div class="container-fluid container-fullw"> <div class="container-fluid container-fullw">
<div class="row"> <div class="row">
@ -91,6 +91,13 @@
</div> </div>
</div> </div>
<div class="col-md-4">
<label for="form-field-select-2">
Search
</label>
<input class="form-control" type="text" ng-model="search" id="search" autofocus tabindex="1" placeholder="Search" /><br><br>
</div>
</div> </div>
<!--<div class="col-md-12" ng-if="noRecordFound == true" style="min-height: 281px;"> <!--<div class="col-md-12" ng-if="noRecordFound == true" style="min-height: 281px;">
<p style="color: red;" align="center"><strong><h3 class="text-center">No <p style="color: red;" align="center"><strong><h3 class="text-center">No
@ -136,10 +143,16 @@
</th> </th>
<th>Paid To / Received From <th>Paid To / Received From
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th>
<th>Sem/Course/University
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
<th ng-click="sort('TypeName')">Type <th ng-click="sort('TypeName')">Type
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
<th>Mode of Payment
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='TypeName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th>
<th>Amount <th>Amount
<!--<span class="glyphicon sort-icon" ng-show="sortKey=='Amount'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>--> <!--<span class="glyphicon sort-icon" ng-show="sortKey=='Amount'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>-->
</th> </th>
@ -155,15 +168,17 @@
</tr> </tr>
</thead> </thead>
<tbody dir-paginate="p in data|itemsPerPage:10"> <tbody dir-paginate="p in data | filter:search:strict | itemsPerPage:10">
<tr> <tr>
<td>{{p.Date}}</td> <td>{{p.Date}}</td>
<td>{{p.ListName}}</td> <td>{{p.ListName}}</td>
<td>{{p.VoucherNumber}}</td> <td>{{p.VoucherNumber}}</td>
<td>{{p.PaidTo}}</td> <td>{{p.PaidTo}}</td>
<td> {{p.FeePaymentDetails}}<br>{{p.CourseName}} <br> {{p.UniversityName}}</td>
<td> <td>
<span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span> <span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span>
<span tooltip="Fees Updation" ng-if=" p.PaymentStatus == 0 " style="color:chocolate">{{p.TypeName}}</span></td> <span tooltip="Fees Updation" ng-if=" p.PaymentStatus == 0 " style="color:chocolate">{{p.TypeName}}</span></td>
<td>{{p.ModeOfPayment}}</td>
<td>{{p.Amount}}</td> <td>{{p.Amount}}</td>
<td>{{p.Balance}}</td> <td>{{p.Balance}}</td>
@ -172,15 +187,16 @@
<td class="center" tooltip="{{p.Approval_Comments}}"><span ng-if="p.Status == 'Pending'" style="text-transform: uppercase; text-shadow: 1px 1px #286d5f; color: #55d4bb ">{{p.Status}}</span> <td class="center" tooltip="{{p.Approval_Comments}}"><span ng-if="p.Status == 'Pending'" style="text-transform: uppercase; text-shadow: 1px 1px #286d5f; color: #55d4bb ">{{p.Status}}</span>
<span ng-if="p.Status == 'Approved'" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">{{p.Status}}</span> <span ng-if="p.Status == 'Approved'" style="text-transform: uppercase; text-shadow: 1px 1px #166307; color: #2be209 ">{{p.Status}}</span>
<span ng-if="p.Status == 'Rejected'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">{{p.Status}}</span> <span ng-if="p.Status == 'Rejected'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 88, 15); color: rgba(236, 24, 24, 0.98823529);">{{p.Status}}</span>
<span ng-if="p.Status == 'Cancel'" style="text-transform: uppercase; text-shadow: 1px 1px rgb(167, 99, 15); color: rgba(236, 28, 28, 0.98823529);">{{p.Status}}</span>
</td> </td>
<td class="center" ng-if="p.Status != 'Pending' && p.ListName != 'Income' ">-</td> <td class="center" ng-if="p.Status != 'Pending' && p.ListName != 'Income' && p.Status == 'Cancel' ">-</td>
<td class="center" ng-if="p.ListName == 'Income' "> <td class="center" ng-if="p.ListName == 'Income' && p.Status != 'Cancel' ">
<span ng-if=" p.PaymentStatus == 1 "> <i tooltip="EDIT" class="glyphicon glyphicon-pencil" ng-click="setEditId(p.ID)"></i> </span> <span ng-if=" p.PaymentStatus == 1 "> <i tooltip="EDIT" class="glyphicon glyphicon-pencil" ng-click="setEditId(p.ID)"></i> </span>
<span ng-if=" p.PaymentStatus == 0 "> <span ng-if=" p.PaymentStatus == 0 ">
<i tooltip="DELETE" class="glyphicon glyphicon-remove" ng-click="deleteFeePayableEntry(p.ID)"></i> <i tooltip="DELETE" class="glyphicon glyphicon-remove" ng-click="deleteFeePayableEntry(p.ID)"></i>
</span> </span>
</td> </td>
<td class="center" ng-if="p.Status == 'Pending'"> <td class="center" ng-if="p.Status == 'Pending' && p.Status != 'Cancel'">
<span ng-if=" p.PaymentStatus == 1 "> <span ng-if=" p.PaymentStatus == 1 ">
<span> <i tooltip="EDIT" class="glyphicon glyphicon-pencil" ng-click="setEditId(p.ID)"></i> </span> <span> <i tooltip="EDIT" class="glyphicon glyphicon-pencil" ng-click="setEditId(p.ID)"></i> </span>
<span> <i tooltip="DELETE" class="glyphicon glyphicon-remove" ng-click="deleEditEntry(p.ID)"></i> </span> <span> <i tooltip="DELETE" class="glyphicon glyphicon-remove" ng-click="deleEditEntry(p.ID)"></i> </span>
@ -302,14 +318,14 @@
<input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAdd.date" <input type="text" tabindex="1" class="form-control " ng-click="startOpen = !startOpen" datepicker-popup="dd-MM-yyyy" ng-model="myModelAdd.date"
is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions" is-open="startOpen" ng-init="startOpen = false" name="addDate" datepicker-options="dateOptions"
placeholder="Select Date" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)" placeholder="Select Date" close-text="Close" required="required" ng-change="getMaxEndDate(myModel.startDate)"
show-button-bar="true" /> show-button-bar="true" max-date="todayDate" />
<span class="error text-small block" ng-if="Form.addDate.$dirty && Form.addDate.$invalid" ng-hide="Form.addDate.$error.maxlength">Date is required.</span> <span class="error text-small block" ng-if="Form.addDate.$dirty && Form.addDate.$invalid" ng-hide="Form.addDate.$error.maxlength">Date is required.</span>
<span class="error text-small block" ng-if="Form.addDate.$error.maxlength">Enter a Valid Date </span> <span class="error text-small block" ng-if="Form.addDate.$error.maxlength">Enter a Valid Date </span>
</div> </div>
</div> </div>
<div class="col-md-6 form-group" ng-class="{'has-error':Form.gender.$dirty && Form.addName.$invalid , 'has-success':Form.addName.$valid}"> <div class="col-md-6 form-group" ng-class="{'has-error':Form.addName.$dirty && Form.addName.$invalid , 'has-success':Form.addName.$valid}">
<label for="form-field-select-2"> <label for="form-field-select-2">
Income/Expense <span class="symbol required"></span> Income/Expense <span class="symbol required"></span>
</label> </label>
@ -323,29 +339,29 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4 form-group"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.voucherNumber.$dirty && Form.voucherNumber.$invalid , 'has-success':Form.voucherNumber.$valid}">
<label> <label>
Voucher Number Voucher Number <span class="symbol required"></span>
</label> </label>
<input type="text" name="voucherNumber" tabindex="1" placeholder="Enter Voucher Number" class="form-control" ng-model="myModelAdd.voucherNumber" <input type="text" name="voucherNumber" tabindex="1" placeholder="Enter Voucher Number" class="form-control" ng-model="myModelAdd.voucherNumber"
/> required/>
<span class="error text-small block" ng-if="Form.paidTo.$dirty && Form.paidTo.$invalid" ng-hide="Form.voucherNumber.$error.maxlength || Form.voucherNumber.$error.minlength || Form.voucherNumber.$error.pattern">Voucher Number is required.</span> <span class="error text-small block" ng-if="Form.voucherNumber.$dirty && Form.voucherNumber.$invalid" ng-hide="Form.voucherNumber.$error.maxlength || Form.voucherNumber.$error.minlength || Form.voucherNumber.$error.pattern">Voucher Number is required.</span>
</div> </div>
<div class="col-md-4 form-group"> <div class="col-md-4 form-group" ng-class="{'has-error':Form.paidTo.$dirty && Form.paidTo.$invalid , 'has-success':Form.paidTo.$valid}">
<label> <label>
Paid To / Received From Paid To / Received From <span class="symbol required"></span>
</label> </label>
<input type="text" name="paidTo" tabindex="1" placeholder="Enter Paid To / Received From" class="form-control" ng-model="myModelAdd.paidTo" <input type="text" name="paidTo" tabindex="1" placeholder="Enter Paid To / Received From" class="form-control" ng-model="myModelAdd.paidTo"
/> required/>
<span class="error text-small block" ng-if="Form.paidTo.$dirty && Form.paidTo.$invalid" ng-hide="Form.paidTo.$error.maxlength || Form.paidTo.$error.minlength || Form.paidTo.$error.pattern">Paid To / Reveived From is required.</span> <span class="error text-small block" ng-if="Form.paidTo.$dirty && Form.paidTo.$invalid" ng-hide="Form.paidTo.$error.maxlength || Form.paidTo.$error.minlength || Form.paidTo.$error.pattern">Paid To / Reveived From is required.</span>
</div> </div>
<div class="col-md-4"> <div class="col-md-4" ng-class="{'has-error':Form.description_paid.$dirty && Form.description_paid.$invalid , 'has-success':Form.description_paid.$valid}">
<label> <label>
Description Description <span class="symbol required"></span>
</label> </label>
<textarea type="text" placeholder="Enter Description" tabindex="3" class="form-control" name="description_paid" ng-model="myModelAdd.description_paid" <textarea type="text" placeholder="Enter Description" tabindex="3" class="form-control" name="description_paid" ng-model="myModelAdd.description_paid"
maxlength="100" /> maxlength="100" required/>
<span class="text-small block" style="color: rgba(128, 128, 128, 0.64)">Max 100 Characters.</span> <span class="text-small block" style="color: rgba(128, 128, 128, 0.64)">Max 100 Characters.</span>
<span class="error text-small block" ng-if="Form.description_paid.$dirty && Form.description_paid.$error.pattern">Invalid Description</span> <span class="error text-small block" ng-if="Form.description_paid.$dirty && Form.description_paid.$error.pattern">Invalid Description</span>