ExpDetChkDailyStock($_SESSION['CustomerCd']); } //print_r($AllowNew); $TargetPOAllow='1'; if ($IsTradeSector && $_SESSION['IsCustomer']) { $curMonth = date('n'); $curYear = date('Y'); $curYear = $curYear-($curMonth<=2 ? 1 : 0); // till Feb, working in Last-to-Cur Year. From March, working in Cur-to-Next Year. => Financial Year Begin eg 2011 for 2011-2012 $curYear = $curYear . '-' . ($curYear+1); // eg 2011-2012 $curLogMonth= ((($curMonth+1)+8) % 12) + 1; // Logical Month: April-1, May-2, ..., Dec-9, Jan-10, Feb-11, Mar-12 $chkDateMin = "25-".date('m-Y'); $chkDateMax = "31-".date('m-Y'); //echo $curYear; // echo $curLogMonth; if(date('d-m-Y') > $chkDateMin && date('d-m-Y') <= $chkDateMax ){ // echo date('d-m-Y'); $TargetPOAllow = $objSolarCustomer->isExistTargetMonth($_SESSION['CustomerCd'],$curYear,$curLogMonth); //echo $TargetPOAllow; } } $IsAdmin = $_SESSION['IsAdmin'] || $_SESSION['IsSubAdmin']; $IsPOReadier = $_SESSION['IsPOReadier']; $IsSemiActive = $_SESSION['IsSemiActive']; $IsCustomer = $_SESSION['IsCustomer']; $BlockPO = 0; if($_SESSION['SectorCd'] == 'T' && ($IsPhoneActive == 1 && empty($nillReport))){ $BlockPO = 1; } //echo $IsPhoneActive; //echo $BlockPO; //print_r($nillReport); $AllowNew = $AllowNew && $StatusFilter>=100 && !$IsPOReadier && !$IsSemiActive; $StatusFilter %= 100; if (!isset($searchVal)) $searchVal=''; $ApproveCB = $StatusFilter==$POStatus['Unapprove'] && $IsAdmin; $ConfirmCB = !$IsTradeSector && $StatusFilter==$POStatus['Ready'] && $IsAdmin; $PendingCB = $IsTradeSector && $StatusFilter==$POStatus['Pending'] && $IsAdmin; $ShowTokenNo = in_array($StatusFilter, array($POStatus['Approve'],$POStatus['Complete'],$POStatus['GoodsReceipt'], $POStatus['All'])); $ExpiredAllow = $StatusFilter==$POStatus['Expired'] && $IsAdmin; $GuardPhotoverifyCB = $StatusFilter==$POStatus['GuardPhotoVerify']; $ExpandButtonCB = ($IsAdmin || $IsCustomer); if($_SESSION['UserName'] == 'karanje'){ $AllowNew ='1'; } ?>

P.O. + Contract List

Create P.O. + Contract   View All   Approve P.O. + Contract   Confirm P.O. + Contract   Terminate P.O. + Contract   RTGS Due Mail
Status > > >
Take Photo Verify Pics RTGS Det. Amount Inti Inti Date PO No Date Customer City Desp. Mode Comp Vehicle No. Token RE11 RTGS UTR Van Change Van Terminate Status To Add Stock
Days Date
RandomColor()."'"; $style3 = "style='background:#ffd780'"; $prestatus =""; $curstatus =""; $RE11Stat=""; foreach ($listData as $curRow) { $class = ($icnt%2==0) ? 'class="even_row"' : 'class="odd_row"'; if($curRow['RE11CheckStatus']==1){ $RE11Stat = 'Ok'; $style1 = "style='background: #44DB5E;'"; //$style1 = "style='background: #00e600;'"; }else{ $RE11Stat = 'Not Ok'; $style1 = "style='background: #ffd780;'"; } if($curRow['PaymentStatus']==1){ $RTGSStat = 'Ok'; $style2 = "style='background: #44DB5E;'"; } elseif($curRow['PaymentStatus']==2){ $RTGSStat = 'Pen'; $style2 = "style='background: #0076FF; color:white'"; } else{ $RTGSStat = 'Not Ok'; //$style2 = "style='background: #ffd16d;'"; $style2 = "style='background: #ffd780;'"; } $curstatus = $curRow['Status']; $ShowHead = $curRow['Status']; //if($IsTradeSector){ if($curstatus=='Unapp'){ $ShowHead = "RE11 / Intimation"; } if($curstatus=='Pen'){ $ShowHead = "Holded"; $curRow['Status']='Holded'; } if($curstatus=='App'){ $ShowHead = "Token No."; } if($curstatus=='Comp'){ $ShowHead = "Despatched"; } if($curstatus=='GudRcpt'){ $ShowHead = "Goods Receipt"; } if($curstatus=='Termtd'){ $ShowHead = "Terminated"; } //} if($curstatus != $prestatus){ ?> > "; } ?> execSelectQuery($sql); $countToken= $result[0]['count']; $showcount = '_'.$countToken; } ?> "; } } if($_SESSION['StatusFilter']==101 && $IsTradeSector){ $TerminationDate = date('d-m-Y', strtotime("+ 27 day", strtotime($curRow['Date']))); $TerminationDays = $curRow['TerminationDays']; if($TerminationDays > 0){ $stylecolor = "color:red"; } else{ $stylecolor =""; } ?> style="display:none;">
View Send
>
>
> ' href="javascript:void(0)"> "; } echo ""; ?>
>
get_RE11_n_PO_details_magazine($curRow['IdExpDet']); for($i=0;$iget_RE11_n_PO_details($curRow['IdExpDet'], $getData[$i]['MagazineCd'] ); } //print_r($getDataMagazine); ?>
RE-11 Details Check
Magazine Lic
RE11 No >
RE11 Company > disabled class='onlinecheckbox'>
RE11 Date > "; ?>
RE11 Product Name & Cd > "; ?>
RE11 Magazine Lic > "; ?>
RE11 Qty > "; ?>
RE11 Digital Sign > "; ?>
RE11 Digital Sign Single Side > "; ?>
execSelectQuery($sql); ?>
Customer Bank Payment Check
UTR
Remitter Type >
CNN No
Remitter Code >
Value Date
Bank Amt
PO Amt
Diff Amt >
execSelectQuery($sql); $PendingReasonCd= $result[0]['PendingReason']; $PendingReason = array('1' => 'WrongRE11 No', '2'=>'Digital sign missing / single side sign', '3'=>'Corrupt Re-11', 4 =>'Missing van no', 5 =>'Holded by customer', 6=>'Route map not available', 7=> 'Van provided already servicing PO' ); $PendingReason = $PendingReason[$PendingReasonCd] ; ?>
Pending Reason
>Missing Vehicle No >
execSelectQuery("SELECT UTR FROM so_expdet WHERE IdExpDet = '".$curRow['IdExpDet']."'"); if(!empty($getUTRdata[0]['UTR'])){ $utr = explode(',',$getUTRdata[0]['UTR']); $n= 1; foreach($utr As $row){ if(!in_array($row,$UtrArr)){ $tdColor = 'style="width:200px;background:#d27979"'; }else{ $tdColor ='style="width:200px;"'; } ?>
UTR
readonly name="UTRNo_" id='UTRNo_' size='60' value="" >
Sorry! No Data Available To Show.
' > ' >
Vehicle No : Vehicle Capacity :
S No. PO NO Customer Club Cust Date Total Box PO Status RE11 Status RTGS Status Action