issues fixed
This commit is contained in:
parent
c3233bbd13
commit
ef7c0ca459
@ -41,7 +41,7 @@ define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
|
||||
define('ROLE_ADMIN', '1');
|
||||
define('ROLE_MANAGER', '2');
|
||||
define('ROLE_EMPLOYEE', '3');
|
||||
/*define('ROLE_PRODUCTION', '4');
|
||||
/*define('ROLE_PRODUCTION', '4');
|
||||
define('ROLE_QUALITY', '5');
|
||||
define('ROLE_SECURITY', '6');
|
||||
define('ROLE_SALES', '7');
|
||||
@ -49,7 +49,7 @@ define('ROLE_ACCOUNTS', '8');*/
|
||||
|
||||
|
||||
/***** USER DESIGNATION ******/
|
||||
define('SECURITY', 'SECURITY');
|
||||
//define('SECURITY', 'SECURITY');
|
||||
|
||||
define('SEGMENT', 2);
|
||||
|
||||
@ -65,28 +65,28 @@ define('REQ_ONHOLD', 'ST008');
|
||||
define('REQITEM_ONHOLD', 'ST009');
|
||||
define('REQITEM_PARTIALLY_DELIVERED', 'ST010');
|
||||
define('REQITEM_DELIVERED', 'ST011');
|
||||
define('REQ_DELETED', 'ST013');
|
||||
define('REQ_DELETED', 'ST013');
|
||||
define('REQITEM_POCREATED', 'ST022');
|
||||
define('REQITEM_PARTIALLY_PO_CREATED', 'ST023');
|
||||
define('REQITEM_Emergency_PO_CREATED', 'ST024');
|
||||
define('POLINEITEM_IGR_CREATED', 'ST040');
|
||||
define('REQ_READYFORDELIVERY', 'ST049');
|
||||
define('REQ_DELIVERED', 'ST050');
|
||||
define('REQITEM_PARTIALLY_PO_CREATED', 'ST023');
|
||||
define('REQITEM_Emergency_PO_CREATED', 'ST024');
|
||||
define('POLINEITEM_IGR_CREATED', 'ST040');
|
||||
define('REQ_READYFORDELIVERY', 'ST049');
|
||||
define('REQ_DELIVERED', 'ST050');
|
||||
/*IGR Status */
|
||||
define('IGR_CREATED', 'ST027');
|
||||
define('IGR_CLOSED', 'ST028');
|
||||
define('IGR_CANCELLED', 'ST029');
|
||||
define('POLINEITEM_IGRPARTIAL_CREATED', 'ST042');
|
||||
define('IGR_CLOSED', 'ST028');
|
||||
define('IGR_CANCELLED', 'ST029');
|
||||
define('POLINEITEM_IGRPARTIAL_CREATED', 'ST042');
|
||||
/*IGR Status*/
|
||||
|
||||
/*MRIR Status */
|
||||
define('MRIR_CREATED', 'ST041');
|
||||
define('MRIR_CREATED', 'ST041');
|
||||
define('MRIR_APPROVED', 'ST044');
|
||||
define('MRIR_REJECTED', 'ST045');
|
||||
define('PARTIAL_MRIRAPPROVED', 'ST054');
|
||||
define('PARTIAL_MRIRAPPROVED', 'ST054');
|
||||
|
||||
define('REQUISTSTATUS', '0');
|
||||
define('REQUISTITEMSTATUS', '1');
|
||||
define('REQUISTITEMSTATUS', '1');
|
||||
|
||||
/* Purchase Order Status */
|
||||
|
||||
@ -98,17 +98,17 @@ define('PO_DELIVERED', 'ST018');
|
||||
define('PO_CANCELLED', 'ST019');
|
||||
define('PO_ONHOLD', 'ST020');
|
||||
define('PO_CLOSED', 'ST021');
|
||||
define('PO_AMENDED', 'ST030');
|
||||
define('PO_RELEASED', 'ST026');
|
||||
define('PO_AWAITING_RELEASE', 'ST025');
|
||||
define('PO_APPROVED', 'ST025');
|
||||
define('PO_AMENDED', 'ST030');
|
||||
define('PO_RELEASED', 'ST026');
|
||||
define('PO_AWAITING_RELEASE', 'ST025');
|
||||
define('PO_APPROVED', 'ST025');
|
||||
define('PO_APPROVER_ONHOLD', 'ST051');
|
||||
define('PO_RELEASER_ONHOLD', 'ST052');
|
||||
define('SPECIAL_PO', 'ST056');
|
||||
define('SPECIAL_PO', 'ST056');
|
||||
/*store Status*/
|
||||
|
||||
define('STORE_DRAFT', 'ST043');
|
||||
define('STORE_CREATED', 'ST015');
|
||||
define('STORE_CREATED', 'ST015');
|
||||
|
||||
/*store requisition*/
|
||||
define('STORE REQUISTION STATUS', '6');
|
||||
@ -122,8 +122,8 @@ define('STORE_REJECT', 'ST039');
|
||||
|
||||
/* Work status code */
|
||||
|
||||
define('SERVICE_COMPLETED', 'ST046');
|
||||
define('PO_SERVICE_COMPLETED', 'ST053');
|
||||
define('SERVICE_COMPLETED', 'ST046');
|
||||
define('PO_SERVICE_COMPLETED', 'ST053');
|
||||
|
||||
/* Department Code */
|
||||
define('ADMIN', 'DEP01');
|
||||
@ -137,8 +137,9 @@ define('COATING', 'DEP08');
|
||||
define('MAINTENANANCE', 'DEP09');
|
||||
define('FINANCE', 'DEP10');
|
||||
define('PURCHASE', 'DEP11');
|
||||
define('MANAGEMENT', 'DEP12');
|
||||
define('HR', 'DEP13');
|
||||
define('MANAGEMENT', 'DEP12');
|
||||
define('HR', 'DEP13');
|
||||
define('SECURITY', 'DEP14');
|
||||
define('SYSTEM_ADMIN', '1');
|
||||
/* PO Type */
|
||||
define('REVENUE', 'REVENUE');
|
||||
@ -147,7 +148,7 @@ define('IMPORT', 'IMPORT');
|
||||
define('CAPITAL', 'CAPITAL');
|
||||
|
||||
// Tax Type
|
||||
define('PERCENTAGE', 'PERCENTAGE');
|
||||
define('PERCENTAGE', 'PERCENTAGE');
|
||||
define('LUMPSUM', 'LUMP SUM');
|
||||
define('NILTYPE', 'NIL');
|
||||
|
||||
|
||||
@ -197,8 +197,8 @@
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<img id="slip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/>
|
||||
<img id="receiptslip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,this.id);" id="receiptfile" name="myfile" accept="image/*"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -302,8 +302,8 @@
|
||||
</div></div>
|
||||
|
||||
<div class="col-md-3"><div class="form-group">
|
||||
<b><span for="Decription"><b>Account Description:</b></span><span style="color:red">*</span>
|
||||
<input type="text" class="form-control" required style="text-align:right;" id="subdescription1" name="mydata1[subdescription1]" requried>
|
||||
<b><span for="Decription"><b>Account Description:</b></span>
|
||||
<input type="text" class="form-control" style="text-align:right;" id="subdescription1" name="mydata1[subdescription1]" requried>
|
||||
</div></div>
|
||||
|
||||
<div class="col-md-3"><div class="form-group">
|
||||
@ -338,10 +338,12 @@
|
||||
<textarea class="form-control" id="Paymentdescription" name="Paymentdescription" >
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<b><span for="fileupload">File Upload:</span></b>
|
||||
<img id="slip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/>
|
||||
<!-- <b><span for="fileupload">File Upload:</span></b> -->
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<img id="paymentslip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,this.id);" id="paymentfile" name="myfile" accept="image/*"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -423,25 +425,39 @@ $("#PaymentDate").datepicker({
|
||||
|
||||
});
|
||||
|
||||
function readURL(input) {
|
||||
function readURL(input,id) {
|
||||
|
||||
|
||||
if (input.files && input.files[0]) {
|
||||
//alert(id);
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function (e) {
|
||||
$('#slip')
|
||||
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
//alert(e.target.result);
|
||||
}
|
||||
else{
|
||||
$('#paymentslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
}
|
||||
// alert(e.target.result);
|
||||
};
|
||||
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
$('#slip').val(input.files[0]['name']);
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip').val(input.files[0]['name']);}
|
||||
else{
|
||||
$('#paymentslip').val(input.files[0]['name']);}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
@ -718,13 +734,12 @@ function add_more()
|
||||
$('#Paymentaccode1').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#subdescription1').val() == '')
|
||||
{
|
||||
alert("Provide Account description..!");
|
||||
$('#subdescription1').focus();
|
||||
return false;
|
||||
|
||||
}
|
||||
// else if($('#subdescription1').val() == '')
|
||||
// {
|
||||
// alert("Provide Account description..!");
|
||||
// $('#subdescription1').focus();
|
||||
// return false;
|
||||
// }
|
||||
else if($('#Paymentamount1').val() == '')
|
||||
{
|
||||
alert("Provide Amount data..!");
|
||||
|
||||
@ -213,12 +213,12 @@ if(!empty($PaymentMultiple))
|
||||
</div>
|
||||
<div class="col-md-4" style="border:0px solid;">
|
||||
|
||||
<img id="receipt" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
<img id="receiptslip" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
|
||||
<input type="button" onclick="DeleteRow();"class="btn btn-primary" value="Delete" />
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="recepitfile" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
@ -442,10 +442,10 @@ if(!empty($PaymentMultiple))
|
||||
</div>
|
||||
<div class="col-md-4" style="border:0px solid;">
|
||||
|
||||
<img id="receipt" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
<img id="paymentslip" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
<input type="button" onclick="DeleteRow();"class="btn btn-primary" value="Delete" />
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="paymentreadURL(this);" id="paymentfile" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
@ -573,25 +573,58 @@ if(type == "RECEIPT")
|
||||
});
|
||||
|
||||
|
||||
function readURL(input) {
|
||||
function readURL(input,id) {
|
||||
|
||||
|
||||
if (input.files && input.files[0]) {
|
||||
//alert(id);
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function (e) {
|
||||
$('#receipt')
|
||||
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
//alert(e.target.result);
|
||||
}
|
||||
else{
|
||||
$('#paymentslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
}
|
||||
// alert(e.target.result);
|
||||
};
|
||||
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
$('#receipt').val(input.files[0]['name']);
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip').val(input.files[0]['name']);}
|
||||
else{
|
||||
$('#paymentslip').val(input.files[0]['name']);}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function paymentreadURL(input) {
|
||||
|
||||
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function (e) {
|
||||
$('#payment')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
//alert(e.target.result);
|
||||
};
|
||||
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
$('#payment').val(input.files[0]['name']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
@ -793,7 +826,7 @@ $.ajax({
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
alert('Delete Successfully');
|
||||
$('#receipt').attr('src', '');
|
||||
$('#receiptslip').attr('src', '');
|
||||
//window.location ="cashbook/incomeExpenseList";
|
||||
|
||||
}
|
||||
@ -901,13 +934,13 @@ function add_more()
|
||||
$('#Paymentaccode1').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#subdescription1').val() == '')
|
||||
{
|
||||
alert("Provide Account description..!");
|
||||
$('#subdescription1').focus();
|
||||
return false;
|
||||
// else if($('#subdescription1').val() == '')
|
||||
// {
|
||||
// alert("Provide Account description..!");
|
||||
// $('#subdescription1').focus();
|
||||
// return false;
|
||||
|
||||
}
|
||||
// }
|
||||
else if($('#Paymentamount1').val() == '')
|
||||
{
|
||||
alert("Provide Amount data..!");
|
||||
@ -934,7 +967,7 @@ div.innerHTML='<div class="col-md-12"><div class="col-md-3"><div class="form-gro
|
||||
'</div></div>'+
|
||||
'<div class="col-md-3"><div class="form-group">'+
|
||||
'<span for="Decription"><b>Account Description:</b></span> '+
|
||||
'<input type="text" class="form-control required" style="text-align:right;" id="subdescription'+counterConstant+'" name="mydata'+counterConstant+'[subdescription'+counterConstant+']">'+
|
||||
'<input type="text" class="form-control" style="text-align:right;" id="subdescription'+counterConstant+'" name="mydata'+counterConstant+'[subdescription'+counterConstant+']">'+
|
||||
'</div></div>'+
|
||||
'<div class="col-md-3"><div class="form-group">'+
|
||||
'<span for="amount"><b>Amount(₹):</b></span> '+
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -40,23 +40,23 @@
|
||||
{
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo '<a href="'.$base.'cashbook/incomeExpenseList/'.$l->id.'">'.$l->type.'</a>';?></td>
|
||||
<td style="text-align:right;"><?php echo date_format(date_create($l->date),'d-m-Y');?></td>
|
||||
<td><?php if($l->type == 'PAYMENT' && $l->account_code == '999') { echo " "; } else {echo $l->name;}?></td>
|
||||
<td style="text-align:right;"><?php echo $l->total;?></td>
|
||||
<td><?php echo $l->description;?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url(); ?>cashbook/editcashbook?sid=<?php echo $l->id;?>"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the RECEIPT OR PAYMENT"></i> </a>
|
||||
<!-- <span data-toggle="modal" data-target="#myModal" data-id="<?php echo $l->id; ?>" >
|
||||
<a data-toggle="tooltip" title="Click here to view multiple payment details"><i class="fa fa-clone"></i></a></span> -->
|
||||
<?php if($l->type == 'PAYMENT' && $l->account_code == '999') { ?>
|
||||
<span data-toggle="tooltip" title="Click here to view multiple payment details">
|
||||
<a data-toggle="modal" onclick="inex(<?php echo $l->id; ?>)" data-id="<?php echo $l->id; ?>"><i class="fa fa-clone"></i></a></span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo '<a href="'.$base.'cashbook/incomeExpenseList/'.$l->id.'">'.$l->type.'</a>';?></td>
|
||||
<td style="text-align:right;"><?php echo date_format(date_create($l->date),'d-m-Y');?></td>
|
||||
<td><?php if($l->type == 'PAYMENT' && $l->account_code == '999') { echo $l->description; } else {echo $l->name;}?></td>
|
||||
<td style="text-align:right;"><?php echo $l->total;?></td>
|
||||
<td><?php echo $l->description;?></td>
|
||||
<td>
|
||||
<a href="<?php echo base_url(); ?>cashbook/editcashbook?sid=<?php echo $l->id;?>"><i class="fa fa-pencil" data-toggle="tooltip" title="Click here to view/Edit the RECEIPT OR PAYMENT"></i> </a>
|
||||
<!-- <span data-toggle="modal" data-target="#myModal" data-id="<?php echo $l->id; ?>" >
|
||||
<a data-toggle="tooltip" title="Click here to view multiple payment details"><i class="fa fa-clone"></i></a></span> -->
|
||||
<?php if($l->type == 'PAYMENT' && $l->account_code == '999') { ?>
|
||||
<span data-toggle="tooltip" title="Click here to view multiple payment details">
|
||||
<a data-toggle="modal" onclick="inex(<?php echo $l->id; ?>)" data-id="<?php echo $l->id; ?>"><i class="fa fa-clone"></i></a></span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
BIN
uploads/Igrfiles/avatar.png
Executable file
BIN
uploads/Igrfiles/avatar.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
uploads/cashbook/avatar.png
Executable file
BIN
uploads/cashbook/avatar.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue
Block a user