Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme
This commit is contained in:
commit
6b418033b7
@ -341,6 +341,7 @@ class Servicepurchaseorder extends BaseController
|
||||
//update service po
|
||||
function UpdateServicePurchaseOrder()
|
||||
{
|
||||
// print_r($this->request->getPost());die;
|
||||
$PONO = $this->request->getPost('txtPONO');
|
||||
$newsup = $this->request->getPost('newsup');
|
||||
// $newSupId = split("[ - ]+", $newsup);
|
||||
@ -408,23 +409,30 @@ class Servicepurchaseorder extends BaseController
|
||||
$POList['ReleasedOn'] = get_current_date_time();
|
||||
$POList['ReleasedBy'] = $this->session->get('userId');
|
||||
}
|
||||
|
||||
|
||||
$file = $this->request->getFile('POFile');
|
||||
$requestfilename = $file->getName();
|
||||
if (!empty($requestfilename)) {
|
||||
if ($file && $file->isValid() && !$file->hasMoved()) {
|
||||
$path = ROOTPATH . 'public/uploads/POfiles/';
|
||||
if (!is_dir($path)) {
|
||||
mkdir($path, 0777, true);
|
||||
}
|
||||
if (!empty($this->purchaseorder_model->isFileExists($requestfilename))) {
|
||||
log_message('error', 'File already exists in the database' . $requestfilename);
|
||||
} else {
|
||||
$file->move($path, $requestfilename);
|
||||
$POList['POFile'] = $requestfilename;
|
||||
if ($file !== null) {
|
||||
$requestfilename = $file->getName();
|
||||
if (!empty($requestfilename)) {
|
||||
if ($file->isValid() && !$file->hasMoved()) {
|
||||
$path = ROOTPATH . 'public/uploads/POfiles/';
|
||||
if (!is_dir($path)) {
|
||||
mkdir($path, 0777, true);
|
||||
}
|
||||
if (!empty($this->purchaseorder_model->isFileExists($requestfilename))) {
|
||||
log_message('error', 'File already exists in the database: ' . $requestfilename);
|
||||
} else {
|
||||
$file->move($path, $requestfilename);
|
||||
$POList['POFile'] = $requestfilename;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log_message('error', 'No file was uploaded');
|
||||
}
|
||||
|
||||
|
||||
$POMaster = $this->purchaseorder_model->updatePOMaster($PONO, $POList);
|
||||
|
||||
|
||||
|
||||
@ -2995,16 +2995,16 @@ if (!empty($getlogpodtl)) {
|
||||
var txtTotalOrderValueSummary = $('#txtTotBasicAmount').val();
|
||||
|
||||
if (validate()) {
|
||||
if (document.getElementById('ServiceTable').rows.length < 2) {
|
||||
if (document.getElementById('ServiceTable').rows.length < 2)
|
||||
{
|
||||
alert('Please Select Line item to Create PO');
|
||||
$('#Deliverydt').focus();
|
||||
return false;
|
||||
}
|
||||
// else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
|
||||
// alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
|
||||
|
||||
// else if(parseInt(AvlBudAmt) < parseInt(txtTotalOrderValueSummary)) {
|
||||
// alert('Total Order Amount is exceeding the Budget Limit.Please adjust the product value.');
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
else if ($('#Otherpayment').val() == '' && $('#PaymentTerms').val() == 'PT08') {
|
||||
alert('Please Enter Payable Terms');
|
||||
$('#Otherpayment').focus();
|
||||
@ -3025,7 +3025,16 @@ if (!empty($getlogpodtl)) {
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function(data) {
|
||||
// console.log(data);
|
||||
|
||||
|
||||
|
||||
// var newWindow = window.open("", "_blank", "toolbar=yes,scrollbars=yes,resizable=yes,width=1024,height=768");
|
||||
// newWindow.document.write("<html><head><title>Response</title></head><body>");
|
||||
// newWindow.document.write("<pre>" + data + "</pre>"); // Using <pre> to preserve formatting
|
||||
// newWindow.document.write("</body></html>");
|
||||
// newWindow.document.close();
|
||||
// newWindow.moveTo(0, 0);
|
||||
// newWindow.resizeTo(screen.width, screen.height);
|
||||
if (data) {
|
||||
$('#loader').hide();
|
||||
alert(data);
|
||||
|
||||
@ -2219,20 +2219,20 @@ if (!empty($getlogpodtl)) {
|
||||
<thead>
|
||||
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>Requisition No</th>
|
||||
<th>Item Code</th>
|
||||
<th>Item Description</th>
|
||||
<th>Quantity</th>
|
||||
<th>UOM</th>
|
||||
<th>Rate <?php echo "($INRSYM)" ?></th>
|
||||
<th>Basic Amount <?php echo "($INRSYM)" ?></th>
|
||||
<th>Tax Amount <?php echo "($INRSYM)" ?></th>
|
||||
<th>Total Order Amount <?php echo "($INRSYM)" ?></th>
|
||||
<th style="text-align:center !important">SNo</th>
|
||||
<th style="text-align:center !important">Requisition No</th>
|
||||
<th style="text-align:center !important">Item Code</th>
|
||||
<th style="text-align:center !important">Item Description</th>
|
||||
<th style="text-align:center !important">Quantity</th>
|
||||
<th style="text-align:center !important">UOM</th>
|
||||
<th style="text-align:center !important">Rate <?php echo "($INRSYM)" ?></th>
|
||||
<th style="text-align:center !important">Basic Amount <?php echo "($INRSYM)" ?></th>
|
||||
<th style="text-align:center !important">Tax Amount <?php echo "($INRSYM)" ?></th>
|
||||
<th style="text-align:center !important">Total Order Amount <?php echo "($INRSYM)" ?></th>
|
||||
<!-- <th>Actual Quantity</th>
|
||||
<th>Received Quantity</th>
|
||||
<th>Pending Quantity</th> -->
|
||||
<th>Action</th>
|
||||
<th style="text-align:center !important">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id='RevenueAppend'>
|
||||
@ -2244,12 +2244,12 @@ if (!empty($getlogpodtl)) {
|
||||
$index = $index + 1;
|
||||
?>
|
||||
<tr id="<?php echo $index; ?>">
|
||||
<td align="left"><?php echo $index; ?></td>
|
||||
<td><?php echo $record->ReqNo ?></td>
|
||||
<td><?php echo $record->MaterialCode ?></td>
|
||||
<td><?php echo $record->MaterialName ?></td>
|
||||
<td align="left"><?php echo $record->Quantity ?></td>
|
||||
<td><?php echo $record->UOM ?></td>
|
||||
<td align="center"><?php echo $index; ?></td>
|
||||
<td align="center"><?php echo $record->ReqNo ?></td>
|
||||
<td align="center"><?php echo $record->MaterialCode ?></td>
|
||||
<td align="center"><?php echo $record->MaterialName ?></td>
|
||||
<td align="center"><?php echo $record->Quantity ?></td>
|
||||
<td align="center"><?php echo $record->UOM ?></td>
|
||||
<td align="right"><?php echo $record->Rate ?></td>
|
||||
|
||||
<td align="right"><?php echo number_format($record->BasicValue, 2, '.', ''); ?></td>
|
||||
@ -2297,12 +2297,14 @@ if (!empty($getlogpodtl)) {
|
||||
<?php
|
||||
|
||||
if ($PONOStatus == PO_DRAFT || $PONOStatus == PO_CREATED || $PONOStatus == REQITEM_Emergency_PO_CREATED || $PONOStatus == PO_APPROVED || $PONOStatus == SPECIAL_PO) { ?>
|
||||
<td> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
|
||||
<td align="center"> <a data-target='#EDITREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#EDITREVENUE"><i class="ri-pencil-fill"></i></a>
|
||||
|
||||
<a href='#' onclick="DeleteRow(<?php echo $index; ?>)" class="link" data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" id="Del"><span class="ri-delete-bin-7-fill"></span></a>
|
||||
</td>
|
||||
<?php
|
||||
} else { ?>
|
||||
<td> <a data-target='#VIEWREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i> </a> </td>
|
||||
<td align="center"> <a data-target='#VIEWREVENUE' data-id="<?php echo $index; ?>" data-userid="<?php echo $index; ?>" data-toggle="modal" href="#VIEWREVENUE"><i class="fa fa-eye" title="Click here to view the <?php echo $record->ReqNo; ?> Requisition details"></i> </a>
|
||||
</td>
|
||||
|
||||
<?php
|
||||
} ?>
|
||||
@ -2330,6 +2332,9 @@ if (!empty($getlogpodtl)) {
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
<label>Basic Amount <?php echo "($INRSYM)" ?></label>
|
||||
@ -2378,6 +2383,9 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-3">
|
||||
<label>Total Packaging Amount <?php echo "($INRSYM)" ?></label>
|
||||
@ -2415,6 +2423,10 @@ if (!empty($getlogpodtl)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Special Instructions </label> <?php
|
||||
@ -2424,6 +2436,10 @@ if (!empty($getlogpodtl)) {
|
||||
<input type="hidden" name="SpcialInstruction" id="SpcialInstruction" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<div class="form-row" id="splpodiv" style="display:none;">
|
||||
<div class="form-group col-md-12"><label>Special po Table List</label>
|
||||
|
||||
@ -2610,8 +2626,9 @@ if (!empty($getlogpodtl)) {
|
||||
<?php } else {
|
||||
} ?>
|
||||
<div class="form-row">
|
||||
<div class="form-group col-md-12" align="right"><br />
|
||||
<div class="form-group col-md-12" align="left"><br />
|
||||
<div>
|
||||
<label>Select Purchase Order File</label><br>
|
||||
<input type="file" name="POFile" id="POFile">
|
||||
<?php if ($PrePOFile) { ?>
|
||||
<label><a title="previously uploaded PO File" href="<?php echo base_url() . 'public/uploads/POfiles/' . $PrePOFile ?>"><span>previously uploaded - </span><small><?= $PrePOFile; ?></small></a></label>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user