FIX_Supplier : ps
This commit is contained in:
parent
9cd30ab31c
commit
cbd918370a
@ -979,7 +979,7 @@ mstr.CourierNo,pom.Status,pom.POType') //,bill.BillNo,bill.FilePath,
|
||||
function GetServicePurchaseOrder($PONO = '')
|
||||
{
|
||||
$builder = $this->db->table('t_purchaseorder_master POMast')->distinct()
|
||||
->select('ReqNo,POMast.PONO,POMast.PaymentTerms,POMast.PaymentOtherDescription,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,POMast.PaymentTerms,POMast.ExchangeRate,POMast.UpdatedOn,Stat.StatusCode,POMast.ServiceWorkStatus,POMast.*,POMast.TotalOrderValue,POMast.BudgetType,IGR.IGRNO')
|
||||
->select('ReqNo,POMast.PONO,POMast.PaymentTerms,POMast.PaymentOtherDescription,ServiceDescription,supp.SupplierID,supp.SupplierName,supp.Address,supp.MSME,PODate,Stat.StatusName,DeliveryOption,DeliverySchedule,DeliveryDate,DeliveryAddress,POMast.PaymentTerms,POMast.ExchangeRate,POMast.UpdatedOn,Stat.StatusCode,POMast.ServiceWorkStatus,POMast.*,POMast.TotalOrderValue,POMast.BudgetType,IGR.IGRNO')
|
||||
->join('t_supplierdetailsn supp', 'supp.SupplierID = POMast.SupplierID')
|
||||
->join('t_status Stat', 'Stat.StatusCode = POMast.Status')
|
||||
->join('t_purchaseorder_lineitem LineItem', 'POMast.PONO = LineItem.PONO')
|
||||
@ -1573,7 +1573,7 @@ QuantityRejected,ROUND(Quantity-ReceivedQuantity)as PendingQty,Per,
|
||||
|
||||
$builder = $this->db->table('t_purchaseorder_master mast')->distinct()
|
||||
->select('mast.PONO,mast.TotalOrderValue,st.StatusCode,st.StatusName,emp.FirstName,mast.CreatedDate,ccm.CostCenterName,ccm.CostCenterCode,mast.POType as RType,mast.Remarks,DepartmentName,mast.ApprovedBy,(select EmpID from tbl_users where userId=mast.ApprovedBy )as EID,rmast.ReqType,mast.Status,mast.CapitalRange,
|
||||
(select FirstName from t_employee_details where EmpID=EID)as Approver,sup.SupplierName')
|
||||
(select FirstName from t_employee_details where EmpID=EID)as Approver,sup.SupplierName,sup.MSME')
|
||||
// ->orderBy('mast.Status',"PO_CREATED");
|
||||
|
||||
->join('t_supplierdetailsn sup', 'sup.SupplierID = mast.SupplierID')
|
||||
|
||||
@ -55,7 +55,7 @@ if (!empty($POMaster)) {
|
||||
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
$pdt = new DateTime($Req->PODate);
|
||||
$PODate = $pdt->format('d-m-Y');
|
||||
$DeliverOption = $Req->DeliveryOption;
|
||||
@ -292,8 +292,11 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
|
||||
@ -769,7 +772,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.')' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -2324,13 +2327,12 @@ if (!empty($getlogpodtl)) {
|
||||
<td><?php echo $oldpo->PONO ?></td>
|
||||
|
||||
<!--
|
||||
<?php if ($oldpo->logDate != '-') {
|
||||
$logdate = date('d-m-Y', strtotime($oldpo->logDate));
|
||||
} else {
|
||||
$logdate = '-';
|
||||
} ?>
|
||||
|
||||
<td><?= $logdate; ?></td> -->
|
||||
<?php // if ($oldpo->logDate != '-') {
|
||||
// $logdate = date('d-m-Y', strtotime($oldpo->logDate));
|
||||
// } else {
|
||||
// $logdate = '-';
|
||||
// } ?>
|
||||
-->
|
||||
<td><?php echo $oldpo->LineItemNos; ?></td>
|
||||
<td><?php echo $oldpo->entity ?></td>
|
||||
<?php if ($oldpo->entity == 'PO DateChanged') {
|
||||
|
||||
@ -386,7 +386,7 @@ function vaildateBeforeOpenModal()
|
||||
if(!empty($Suplist))
|
||||
{
|
||||
foreach ($Suplist as $SID):
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -2735,8 +2735,12 @@ $('#PoTypeOptions').change(function()
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
supPaymentTerms=obj.PaymentID;
|
||||
}
|
||||
supPaymentTerms=obj.PaymentID;
|
||||
|
||||
//$("#PaymentMethod").val(obj.PaymentID);
|
||||
|
||||
|
||||
@ -125,7 +125,7 @@ if(!empty($POMaster))
|
||||
$SupId = $Req->SupplierID;
|
||||
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
$pdt = new DateTime($Req->PODate);
|
||||
$PODate = $pdt->format('d-m-Y');
|
||||
$DeliverOption = $Req->DeliveryOption;
|
||||
@ -497,7 +497,7 @@ document.getElementById('dispatchinternational').style.display = 'block';
|
||||
if(!empty($Suplist))
|
||||
{
|
||||
foreach ($Suplist as $SID):
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.')' : '');
|
||||
$options2[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -2414,7 +2414,11 @@ var myArray = <?php echo json_encode($res_arr_values); ?>;
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME :" + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
supPaymentTerms=obj.PaymentTerms;
|
||||
supPaymentAT=obj.PayableAT;
|
||||
subPaymentDate=obj.PaymentDays;
|
||||
|
||||
@ -122,7 +122,7 @@ if(!empty($POMaster))
|
||||
$SupId = $Req->SupplierID;
|
||||
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
$pdt = new DateTime($Req->PODate);
|
||||
$PODate = $pdt->format('d-m-Y');
|
||||
$DeliverOption = $Req->DeliveryOption;
|
||||
@ -545,7 +545,7 @@ $("#PaymentMethod").select2();
|
||||
if(!empty($Suplist))
|
||||
{
|
||||
foreach ($Suplist as $SID):
|
||||
$options2[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options2[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -4084,8 +4084,11 @@ var PaymentOtherData = '<?php echo $otherPayment; ?>';
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
supPaymentTerms=obj.PaymentID;
|
||||
} supPaymentTerms=obj.PaymentID;
|
||||
|
||||
$("#PaymentMethod").val(obj.PaymentID);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ if(!empty($POMaster))
|
||||
{
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
|
||||
$Pdt = new DateTime($Req->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
@ -388,7 +388,7 @@ if(!empty($RequistionDetails))
|
||||
if(!empty($Suplist))
|
||||
{
|
||||
foreach ($Suplist as $SID):
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -2131,7 +2131,11 @@ $('#drpSupplier').change(function() {
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
//$("#PayableAT").val(obj.PayableAT);
|
||||
var a=obj.PaymentDays;
|
||||
|
||||
@ -77,7 +77,7 @@ if(!empty($POMaster))
|
||||
{
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
|
||||
$Pdt = new DateTime($Req->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
@ -287,7 +287,32 @@ $(function() {
|
||||
maxDate : 'now',
|
||||
dateFormat: 'mm/dd/yy',changeMonth: true, changeYear: true,yearRange: '-100:+0'
|
||||
}); */
|
||||
$('#drpSupplier').change(function() {
|
||||
var cd = $("#drpSupplier option:selected").text();
|
||||
//alert(cd);
|
||||
$("#changeSup").val(cd);
|
||||
|
||||
var id = $('#drpSupplier').val();
|
||||
$("#SupAddress").val('');
|
||||
|
||||
if (id != '0') {
|
||||
var y = <?php echo json_encode($Suplist, JSON_PRETTY_PRINT) ?>;
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
} else {
|
||||
alert('Please select the SupplierID');
|
||||
return false;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('#EditDiscountType').change(function() {
|
||||
selValue = $("#EditDiscountType").val();
|
||||
@ -1029,7 +1054,7 @@ function calculateEditTaxValue()
|
||||
if(!empty($Suplist))
|
||||
{
|
||||
foreach ($Suplist as $SID):
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.')' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
|
||||
@ -65,7 +65,7 @@ if (!empty($POMaster)) {
|
||||
foreach ($POMaster as $Req) {
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
|
||||
$Pdt = new DateTime($Req->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
@ -341,7 +341,11 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
|
||||
@ -1882,7 +1886,7 @@ if (!empty($getlogpodtl)) {
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ if (!empty($POMaster)) {
|
||||
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
$pdt = new DateTime($Req->PODate);
|
||||
$PODate = $pdt->format('d-m-Y');
|
||||
$DeliverOption = $Req->DeliveryOption;
|
||||
@ -251,8 +251,11 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
$("#PaymentTerms").val(obj.PaymentID);
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME :" + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
} $("#PaymentTerms").val(obj.PaymentID);
|
||||
|
||||
|
||||
|
||||
@ -696,7 +699,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -1309,10 +1312,9 @@ foreach ($PaymentTerms as $TER) {
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<label>Service Description<span class="badge" style="color:red;text-align:right;background-color: #ecf0f5 ;">*</label> <?php
|
||||
$data = array('name' => 'EdittxtSpcialInstruction', 'value' => set_value('EdittxtSpcialInstruction', $ServiceMaterialDescription), 'id' => 'EdittxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data);
|
||||
?> <input type="hidden" name="beforeEdittxtSpcialInstruction" id="beforeSpcialInstruction" value="<?php echo $ServiceMaterialDescription; ?>">
|
||||
<label>Service Description </label> <?php $data = array('name' => 'EdittxtSpcialInstruction', 'value' => set_value('EdittxtSpcialInstruction', $ServiceMaterialDescription), 'id' => 'EdittxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data);
|
||||
?> <input type="hidden" name="beforeEdittxtSpcialInstruction" id="beforeSpcialInstruction" value="<?php echo $ServiceMaterialDescription; ?>">
|
||||
</div>
|
||||
<br />
|
||||
|
||||
@ -2120,11 +2122,7 @@ foreach ($PaymentTerms as $TER) {
|
||||
else if (ExceedBudget($('#txtEditBasicValue').val(), $('#EditAvlBudAmt').val()) == false) {
|
||||
$('#EditRate').focus();
|
||||
return false;
|
||||
} else if ($('#EdittxtSpcialInstruction').val() == '') {
|
||||
alert('Please Enter the Service Description');
|
||||
$('#EdittxtSpcialInstruction').focus();
|
||||
return false;
|
||||
} else {
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@ -128,7 +128,7 @@ if(!empty($POMaster))
|
||||
{
|
||||
$SupId = $Req->SupplierID;
|
||||
$SupName = $Req->SupplierName;
|
||||
$Address = $Req->Address;
|
||||
$Address = $Req->MSME ? "MSME : ".$Req->MSME."\n".$Req->Address :$Req->Address ;
|
||||
|
||||
$Pdt = new DateTime($Req->PODate);
|
||||
$PODate = $Pdt->format('d-m-Y');
|
||||
@ -473,7 +473,7 @@ else
|
||||
if(!empty($Suplist))
|
||||
{
|
||||
foreach ($Suplist as $SID):
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.')' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -3442,7 +3442,11 @@ $('#drpSupplier').change(function() {
|
||||
$.each(y, function(idx, obj) {
|
||||
if(obj.SupplierID === id)
|
||||
{
|
||||
$("#SupAddress").val(obj.Address);
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
$("#PayableAT").val(obj.PayableAT);
|
||||
var a=obj.PaymentDays;
|
||||
|
||||
@ -309,7 +309,7 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
//print_r( $options);
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -2172,8 +2172,12 @@ if (isset($AvlimportBudAmt) && !empty($AvlimportBudAmt)) {
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
PaymentID = obj.PaymentID;
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
//PaymentID = obj.PaymentID;
|
||||
$('#PaymentTerms').val(obj.PaymentTerms);
|
||||
}
|
||||
|
||||
@ -141,6 +141,7 @@
|
||||
$SuplierAddress = (!empty($POItem) && !empty($POItem[0]->Address)) ? $POItem[0]->Address : "-";
|
||||
$DeliveryAddress = (!empty($POItem) && !empty($POItem[0]->DeliveryAddress)) ? $POItem[0]->DeliveryAddress : "-";
|
||||
$SplserviceDescription = (!empty($POItem) && !empty($POItem[0]->ServiceDescription)) ? $POItem[0]->ServiceDescription : "-";
|
||||
$SplserviceDescription = ($POType == 'SERVICE') ? $POItem[0]->Description_Of_Service : $SplserviceDescription;
|
||||
$supRef = (!empty($POItem) && !empty($POItem[0]->Supplier_Reference)) ? $POItem[0]->Supplier_Reference : "-";
|
||||
$supOfferNo = (!empty($POItem) && !empty($POItem[0]->Supplier_Offer_No)) ? $POItem[0]->Supplier_Offer_No : "-";
|
||||
$supplierEmail = (!empty($POItem) && !empty($POItem[0]->EmailAddress)) ? $POItem[0]->EmailAddress : "-";
|
||||
|
||||
@ -257,8 +257,11 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
|
||||
@ -1866,7 +1869,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
|
||||
@ -153,8 +153,11 @@ if (!empty($INRSYMBOL)) {
|
||||
$.each(y, function(idx, obj) {
|
||||
if (obj.SupplierID === id) {
|
||||
|
||||
$("#SupAddress").val(obj.Address);
|
||||
$("#SupAddress").val(obj.Address);
|
||||
if (obj.MSME) {
|
||||
$("#SupAddress").val("MSME : " + obj.MSME + "\n" + obj.Address);
|
||||
} else {
|
||||
$("#SupAddress").val(obj.Address);
|
||||
}
|
||||
PaymentID = obj.PaymentID;
|
||||
|
||||
}
|
||||
@ -662,7 +665,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
if (!empty($Suplist)) {
|
||||
foreach ($Suplist as $SID) :
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName . (!empty($SID->MSME) ? ' ( MSME - ' . $SID->MSME.' )' : '');
|
||||
$options[$SID->SupplierID] = $SID->SupplierID . ' - ' . $SID->SupplierName ;
|
||||
endforeach;
|
||||
}
|
||||
|
||||
@ -1244,7 +1247,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<label>Service Description <span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span></label>
|
||||
<label>Service Description </label>
|
||||
|
||||
|
||||
<?php
|
||||
@ -1532,7 +1535,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<label>Service Description<span class="badge" style="color:red;text-align:right;background-color: #fff ;">*</span> </label>
|
||||
<label>Service Description </label>
|
||||
<?php
|
||||
$data = array('name' => 'EdittxtSpcialInstruction', 'value' => set_value('EdittxtSpcialInstruction'), 'id' => 'EdittxtSpcialInstruction', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data); ?>
|
||||
@ -2244,10 +2247,6 @@ if (!empty($INRSYMBOL)) {
|
||||
return false;
|
||||
} else if (ExceedQuantityCheck() == false) {
|
||||
return false;
|
||||
} else if ($('#txtSpcialInstruction').val() == '') {
|
||||
alert('Please Enter the Service Description');
|
||||
$('#txtSpcialInstruction').focus();
|
||||
return false;
|
||||
} else if (ExceedBudget($('#txtBasicValue').val(), $('#AvlBudAmt').val()) == false) {
|
||||
$('#Rate').focus();
|
||||
return false;
|
||||
@ -2285,10 +2284,6 @@ if (!empty($INRSYMBOL)) {
|
||||
return false;
|
||||
} else if (EditExceedQuantityCheck() == false) {
|
||||
return false;
|
||||
} else if ($('#EdittxtSpcialInstruction').val() == '') {
|
||||
alert('Please Enter the Service Description');
|
||||
$('#EdittxtSpcialInstruction').focus();
|
||||
return false;
|
||||
} else if (ExceedBudget($('#txtEditBasicValue').val(), $('#EditAvlBudAmt').val()) == false) {
|
||||
$('#EditRate').focus();
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user