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\$O/ʺ%|,eF° G: {¶JІg ,vX6ir--Lɼz5,R&){pNR>2v_HX֌CqI \ȐHVCTqX[qwr\Y]Ǔ]QrM&WgNrrtL±x#ܰųGVJɣ&u?f r~VV''y[qpL-ZwI䎝?LR2$7O EJZأiK.} KO9Uw28uс!;F4s2E)GJAvh\iEpL-Ch[o]U tbicbL/opAzB{r7f$D›0p.G8(\ ,) !y3:vCW3$1kKrFް젥rZ6t.8nt0/MՋg6wc3hcW,'$contact1','".$_SESSION['userID']."','$recordType','$partyDate','$guests','$autoid','$eventType','$date_','$hostname','$partyType','$section_','$male')"; if(canSave($conn,"booking")=="0"){ $cur= odbc_exec($conn,$query); $_SESSION['preRecord']=$curRecord; $isUpdate=true; } } }else{ if(canUpdate($conn,"booking")=="0"){ $query="update bookingtbl set partyStatus='$partyStatus',date_='$date_' where autoid='$autoid'"; $cur= odbc_exec($conn,$query); $query="update bookingtbl set djCharges='$djCharges',remarks='$remarks',nationality='$nationality',menuType='$menuType',menu='$menu',tax='$tax',hallCharges='$hallCharges',serviceCharges='$serviceCharges',functionType='$functionType',paymenttype='$paymenttype',advance='$advance',contact2='$contact2',hallids='$hallids',female='$female',contact1='$contact1',userID='".$_SESSION['userID']."',recordType='$recordType',partyDate='$partyDate',guests='$guests',eventType='$eventType',hostname='$hostname',partyType='$partyType',section_='$section_',male='$male' where autoid='$autoid'"; $cur= odbc_exec($conn,$query); $isUpdate=true; } } /* $query="delete from cashintbl where partyNo='$autoid' and Particulars='145' and labid='".$_SESSION['labid']."' "; //Delete Advance $cur= odbc_exec($conn,$query); $autoidCash= getName( $conn, "select isnull(max(autoid),0)+1 from cashintbl" ); $fields="labid,partyNo,userID,recordType,partyDate,amount,autoid,paymenttype,date_,hostname,partyType,section_,Particulars"; $query="insert into cashintbl($fields) select labid,autoid,userID,'CASH_IN',partyDate,advance,'$autoidCash',paymenttype,date_,hostname,partyType,section_,145 from bookingtbl where autoid='$autoid' and labid='".$_SESSION['labid']."' "; $cur= odbc_exec($conn,$query); */ //echo "





".$query; //exit(); if($isUpdate==true and $paymenttype>0 and $advance>0){ $cur= odbc_exec($conn,"delete from ledger where partyNo='$autoid' and labid='".$_SESSION['labid']."' and recordType='$recordType' "); //Booking Ledger IN //if($section_==0) $actID=614; elseif($section_==1) $actID=615; else $actID=616; $actID=getName($conn,"select top 1 ID from student where sectionID in(select ID from AccountHeads where headName='Booking' and headType='Accounts' and labid='".$_SESSION['labid']."' ) "); $query="insert into ledger(tillDate,recordType,accountID,remarks,credit,partyNo,date_,userID,labid) values('$partyDate','$recordType','$actID','Booking Advance','$advance','$autoid','$date_',".$_SESSION['userID'].",".$_SESSION['labid'].")"; $cur= odbc_exec( $conn, $query ); $cur=calculateBalance($conn,$actID); //Cash Debited $query="insert into ledger(tillDate,recordType,accountID,remarks,debit,partyNo,date_,userID,labid) values('$partyDate','$recordType','$paymenttype','Booking Advance','$advance','$autoid','$date_',".$_SESSION['userID'].",".$_SESSION['labid'].")"; $cur= odbc_exec( $conn, $query ); $cur=calculateBalance($conn,$paymenttype); } //echo "



".$query; echo ""; exit2($conn,$conn3); } if(isset($_GET['editID'])){ $autoid=$_GET['editID']; $query = "select * from bookingtbl where autoid='$autoid'"; $cur= odbc_exec( $conn, $query ); while( odbc_fetch_row( $cur ) ) { $date_= date("Y-m-d", strtotime(odbc_result( $cur,"date_"))); $partyDate= date("Y-m-d", strtotime(odbc_result( $cur,"partyDate"))); $section_= odbc_result( $cur, "section_" ); $male= odbc_result( $cur, 'male' ); $hostname= odbc_result( $cur, 'hostname' ); $guests= odbc_result( $cur, 'guests' ); $eventType= odbc_result( $cur, 'eventType' ); $partyType= odbc_result( $cur, 'partyType' ); $contact1= odbc_result( $cur, 'contact1' ); $contact2= odbc_result( $cur, 'contact2' ); $male= odbc_result( $cur, 'male' ); $female= odbc_result( $cur, 'female' ); $advance= odbc_result( $cur, 'advance' ); $paymenttype= odbc_result( $cur, 'paymenttype' ); $functionType= odbc_result( $cur, 'functionType' ); $hallCharges= odbc_result( $cur, 'hallCharges' ); $serviceCharges= odbc_result( $cur, 'serviceCharges' ); $remarks= odbc_result( $cur, 'remarks' ); $tax= odbc_result( $cur, 'tax' ); $menu= odbc_result( $cur, 'menu' ); $menuType= odbc_result( $cur, 'menuType' ); $nationality= odbc_result( $cur, 'nationality' ); $partyStatus= odbc_result( $cur, 'partyStatus' ); $djCharges= odbc_result( $cur, 'djCharges' ); $hallids= odbc_result( $cur, 'hallids' ); $arrhall=explode(',',$hallids); } } ?> HOME

Booking

Booking Date
Party Date
Branch
Hall
Host Name
Contact 1
Contact 2
Event Type
Guests
Menu/Rate
Male
Female
Hall CHarges
Service Charges
DJ Charges
Tax
Advance
Payement Type
Remarks
Status

='$date_' and recordType='BOOKING' order by partyDate asc "; $cur= odbc_exec( $conn, $query ); $cnt=1;$total=0; while( odbc_fetch_row( $cur ) ) { $partyDate=(date('d.m.y',strtotime(odbc_result($cur,'partyDate')))); $date_=(date('d.m.y',strtotime(odbc_result($cur,'date_')))); if ($cnt==1) echo ""; echo "
#DatepDateBranchTimeHallGuestHostContactBillsFoodBalance"; if(odbc_result($cur,'partyStatus')==1) $color='yellow'; else $color=""; echo "
". $cnt++ ; echo "".$date_; echo "".$partyDate; echo "".getBranch(odbc_result($cur,'section_')); echo "".getName($conn,"select headName from AccountHeads where ID='".odbc_result($cur,'partyType')."' "); echo "".getHalls($conn,odbc_result($cur,'hallids')); echo "".(odbc_result($cur,'guests')); echo "".(odbc_result($cur,'hostname')); echo "".(odbc_result($cur,'contact1')); echo "Bills"; echo "Food"; $partyNo=odbc_result($cur,'autoid'); $exp=getName($conn,"select isnull((guests*menu),0)+isnull(serviceCharges,0)+isnull(hallCharges,0)+isnull(stageCharges,0)+isnull(soundSystem,0)+isnull(sofaSets,0)+isnull(mirrorDiningTable,0)+isnull(djCharges,0)+isnull((isnull(roastedLamb,0)*isnull(roastedLambNos,0)),0) from bookingtbl where autoid='$partyNo' "); $exp+=getName($conn,"select isnull(sum(amount),0) from partyExpensestbl where amount>0 and partyNo='$partyNo' and recordType='partyExp' "); $taxamt=round(($exp*odbc_result($cur,'tax'))/100); $remarks=getName($conn,"select isnull(remarks,0) from bookingtbl where autoid='$partyNo' "); $cost=$exp+$taxamt; $cost-=$remarks; $paid=getName($conn,"select isnull((advance),0)+isnull(received,0) from bookingtbl where autoid='$partyNo' "); $bal=$cost-$paid; if(odbc_result($cur,'partyStatus')==2){ $badge="badge bg-warning"; $status='Tentative'; }elseif($bal>0){ $badge="badge bg-danger"; $status='New'; }else{ $badge="badge bg-success";$status='Progress'; } echo "".round(($bal)).""; echo ""; echo ""; //echo ""; echo ""; echo ""; $total+=odbc_result($cur,'guests'); } //echo "
Total".$total; echo "
"; ?>