day book changes
This commit is contained in:
parent
fe455c2da0
commit
2b237e1406
@ -66,7 +66,7 @@ class DayBook_model extends CI_Model
|
|||||||
$reqpayType = $reqDataBy['localBranchID'];
|
$reqpayType = $reqDataBy['localBranchID'];
|
||||||
|
|
||||||
$querys = "SELECT t1.ID as ORDER_ID, t1.*, t2.ListName, t3.TypeName , t5.Firstname as Approved_by_name ,
|
$querys = "SELECT t1.ID as ORDER_ID, t1.*, t2.ListName, t3.TypeName , t5.Firstname as Approved_by_name ,
|
||||||
t7.UniversityName as UniversityName, t6.CourseName as CourseName
|
t7.UniversityName as UniversityName, t6.CourseName as CourseName,t8.Lastname
|
||||||
FROM ".DAYBOOKMASTER." as t1
|
FROM ".DAYBOOKMASTER." as t1
|
||||||
LEFT JOIN ".PICK_LIST_DETAILS." as t2 ON t2.ListCode = t1.Name
|
LEFT JOIN ".PICK_LIST_DETAILS." as t2 ON t2.ListCode = t1.Name
|
||||||
LEFT JOIN ".INCOMEOUTCOMEMASTER." as t3 ON t3.ID = t1.Type AND t3.BranchCode = t1.BranchCode
|
LEFT JOIN ".INCOMEOUTCOMEMASTER." as t3 ON t3.ID = t1.Type AND t3.BranchCode = t1.BranchCode
|
||||||
@ -74,6 +74,7 @@ class DayBook_model extends CI_Model
|
|||||||
LEFT JOIN ".STAFF." as t5 ON t5.StaffID = t4.StaffID
|
LEFT JOIN ".STAFF." as t5 ON t5.StaffID = t4.StaffID
|
||||||
LEFT JOIN ".COURSE." as t6 ON t6.CourseID = t1.CourseID AND t6.BranchCode = t1.BranchCode
|
LEFT JOIN ".COURSE." as t6 ON t6.CourseID = t1.CourseID AND t6.BranchCode = t1.BranchCode
|
||||||
LEFT JOIN ".UNIVERSITY." as t7 ON t7.UniversityID = t6.UniversityID AND t7.BranchCode = t1.BranchCode
|
LEFT JOIN ".UNIVERSITY." as t7 ON t7.UniversityID = t6.UniversityID AND t7.BranchCode = t1.BranchCode
|
||||||
|
left join ".STUDENTS." as t8 on t8.StudentID = t1.StudentID
|
||||||
WHERE date_format(t1.CreatedOn,'%Y-%m-%d') BETWEEN '$fromDate'
|
WHERE date_format(t1.CreatedOn,'%Y-%m-%d') 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();
|
||||||
|
|||||||
@ -520,6 +520,9 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
//delete the income entry From the fees payable
|
//delete the income entry From the fees payable
|
||||||
$scope.deleteFeePayableEntry = function (reason, id) {
|
$scope.deleteFeePayableEntry = function (reason, id) {
|
||||||
// alert(id);
|
// alert(id);
|
||||||
|
|
||||||
|
if(reason !='')
|
||||||
|
{
|
||||||
SweetAlert.swal({
|
SweetAlert.swal({
|
||||||
title: "Warning!",
|
title: "Warning!",
|
||||||
text: "Do you want to Delete this Entry ?",
|
text: "Do you want to Delete this Entry ?",
|
||||||
@ -566,6 +569,12 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
swal(" ","Reason is Mandatorary","error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.deleted = function (id) {
|
$scope.deleted = function (id) {
|
||||||
|
|
||||||
var id=id;
|
var id=id;
|
||||||
|
|||||||
@ -511,6 +511,9 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
|
|
||||||
//delete the income entry From the fees payable
|
//delete the income entry From the fees payable
|
||||||
$scope.deleteFeePayableEntry = function (reason,id) {
|
$scope.deleteFeePayableEntry = function (reason,id) {
|
||||||
|
|
||||||
|
if(reason !='')
|
||||||
|
{
|
||||||
SweetAlert.swal({
|
SweetAlert.swal({
|
||||||
title: "Warning!",
|
title: "Warning!",
|
||||||
text: "Do you want to Delete this Entry ?",
|
text: "Do you want to Delete this Entry ?",
|
||||||
@ -556,6 +559,11 @@ $scope.dayBookApprovalAccess = '';
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
swal(" ","Reason is Mandatorary","error");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$scope.deleted = function (id) {
|
$scope.deleted = function (id) {
|
||||||
|
|
||||||
|
|||||||
@ -641,6 +641,7 @@ $scope.loadStaring = true;
|
|||||||
//delete the income entry From the fees payable
|
//delete the income entry From the fees payable
|
||||||
$scope.deleteFeePayableEntry = function (reason, id) {
|
$scope.deleteFeePayableEntry = function (reason, id) {
|
||||||
// alert(id);
|
// alert(id);
|
||||||
|
if(reason != ''){
|
||||||
SweetAlert.swal({
|
SweetAlert.swal({
|
||||||
title: "Warning!",
|
title: "Warning!",
|
||||||
text: "Do you want to Delete this Entry ?",
|
text: "Do you want to Delete this Entry ?",
|
||||||
@ -659,7 +660,11 @@ $scope.loadStaring = true;
|
|||||||
if(reason == '')
|
if(reason == '')
|
||||||
{
|
{
|
||||||
|
|
||||||
alert('Please Enter Reason for Deletion');
|
|
||||||
|
|
||||||
|
//reason = prompt("Reason For Deletion!", "");
|
||||||
|
|
||||||
|
//$scope.deleteFeePayableEntry(reason, $scope.ID);
|
||||||
|
|
||||||
// swal("Please Enter Reason!", "", "error");
|
// swal("Please Enter Reason!", "", "error");
|
||||||
|
|
||||||
@ -693,6 +698,9 @@ $scope.loadStaring = true;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}else{
|
||||||
|
swal(" ","Reason is Mandatorary","error");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -192,7 +192,7 @@
|
|||||||
<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}} {{ p.Lastname}}</td>
|
||||||
<td> {{p.UniversityName}},{{p.CourseName}},{{p.FeePaymentDetails}}</td>
|
<td> {{p.UniversityName}},{{p.CourseName}},{{p.FeePaymentDetails}}</td>
|
||||||
<td>
|
<td>
|
||||||
<span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span>
|
<span ng-if=" p.PaymentStatus == 1 ">{{p.TypeName}}</span>
|
||||||
|
|||||||
@ -191,7 +191,7 @@
|
|||||||
<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}} {{ p.Lastname}}</td>
|
||||||
<!-- <td> {{p.FeePaymentDetails}}</td>
|
<!-- <td> {{p.FeePaymentDetails}}</td>
|
||||||
<td>{{p.CourseName}}</td> -->
|
<td>{{p.CourseName}}</td> -->
|
||||||
<td>{{p.UniversityName}},{{p.CourseName}},{{p.FeePaymentDetails}}</td>
|
<td>{{p.UniversityName}},{{p.CourseName}},{{p.FeePaymentDetails}}</td>
|
||||||
|
|||||||
@ -150,9 +150,9 @@
|
|||||||
<th style="width: 7.5%">
|
<th style="width: 7.5%">
|
||||||
Receipt No
|
Receipt No
|
||||||
</th>
|
</th>
|
||||||
<th style="width: 7.5%">
|
<!-- <th style="width: 7.5%">
|
||||||
Comments
|
Comments
|
||||||
</th>
|
</th> -->
|
||||||
<th style="width: 7.5%">Mode of Payment
|
<th style="width: 7.5%">Mode of Payment
|
||||||
|
|
||||||
</th>
|
</th>
|
||||||
@ -162,6 +162,10 @@
|
|||||||
<th style="width: 7%">Balance
|
<th style="width: 7%">Balance
|
||||||
|
|
||||||
</th>
|
</th>
|
||||||
|
|
||||||
|
<th style="width: 7.5%">
|
||||||
|
Comments
|
||||||
|
</th>
|
||||||
<th style="width: 7%">Reason</th>
|
<th style="width: 7%">Reason</th>
|
||||||
<th class="center" ng-click="sort('Status')" style="width: 7.5%">Status
|
<th class="center" ng-click="sort('Status')" style="width: 7.5%">Status
|
||||||
|
|
||||||
@ -176,18 +180,20 @@
|
|||||||
<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}} {{ p.Lastname}}</td>
|
||||||
|
|
||||||
<td>{{p.UniversityName}},{{p.CourseName}},{{p.FeePaymentDetails}}</td>
|
<td>{{p.UniversityName}},{{p.CourseName}},{{p.FeePaymentDetails}}</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.ReceiptNo}}</td>
|
<td>{{p.ReceiptNo}}</td>
|
||||||
<td>
|
<!-- <td>
|
||||||
<div class="containersPara"><span style="white-space:pre-wrap;">{{p.ReceiptNoComments}}</span></div> </td>
|
<div class="containersPara"><span style="white-space:pre-wrap;">{{p.ReceiptNoComments}}</span></div> </td> -->
|
||||||
<td>{{p.ModeOfPayment}}</td>
|
<td>{{p.ModeOfPayment}}</td>
|
||||||
<td>{{p.Amount}}</td>
|
<td>{{p.Amount}}</td>
|
||||||
<td>{{p.Balance}}</td>
|
<td>{{p.Balance}}</td>
|
||||||
|
<td>
|
||||||
|
<div class="containersPara"><span style="white-space:pre-wrap;">{{p.ReceiptNoComments}}</span></div> </td>
|
||||||
<td>{{p.Reason}}</td>
|
<td>{{p.Reason}}</td>
|
||||||
<!--<td class="center" tooltip="{{p.Approval_Comments}}" ng-if="p.ListName == 'Income'">
|
<!--<td class="center" tooltip="{{p.Approval_Comments}}" ng-if="p.ListName == 'Income'">
|
||||||
- </td>-->
|
- </td>-->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user