/* Decoded by unphp.net */ $_X=base64_decode($_X);$_X=strtr($_X,'SgPO9YZWFKmqyfxcjLJRzuM5vNts1b.{B4nC]i/2Dl0EheA [d8=Qp>VXo H}6GIw7ka3TrU<','=R9odmplAEPyk8gv[53xrMezqZHi7YhWCcX}1N/afj6]JtuS .BUnwVKLQO20ITF4b');$_R=str_replace('__FILE__',"'".$_F."'",$_X);eval($_R);$_R=0;$_X=0;?> session->userdata('logged_in'); $data['id'] = $session_data['id']; $userid = $data['id']; $data['branchid'] = $session_data['branchid']; $branchid = $data['branchid']; $data['companyid'] = $session_data['companyid']; $companyid = $data['companyid']; $data['usertype'] = $session_data['usertype']; $usertype = $data['usertype']; $logoutaction=$this->usermodel->populatuserpermissionsdataarray('sales','Logout',$userid); $smsconfig = $this->usermodel->populateallarray('smsconfig','id',$companyid); $receipt=$smsconfig[0]['receipt']; ?> session->flashdata('imagemsg1'); $session_data = $this->session->userdata('logged_in'); $data['surname'] = $session_data['surname']; $data['id'] = $session_data['id']; $surname=$data['surname']; $userid=$data['id']; $myuser=$this->usermodel->geteuser($userid); $firstname=$myuser[0]['firstname']; $postedtime = date('Y-m-d'); $currenttime = date('h:i:sa'); $dateposted = ($postedtime)." ".$currenttime ; function formatMoney($number, $fractional=false) { if ($fractional) { $number = sprintf('%.2f', $number); } while (true) { $replaced = preg_replace('/(-?\d+)(\d\d\d)/', '$1,$2', $number); if ($replaced != $number) { $number = $replaced; } else { break; } } return $number; } $displaycode=$this->usermodel->populatuserpermissionsdataarray('config','productcode',$userid); $displaydiscount=$this->usermodel->populatuserpermissionsdataarray('sales','discount',$userid); ?>
View Sales
"; echo ""; echo ""; }else { $totalcost=0; $totalvatcost=0; $totalvatcost2=0; $totalexemptedcost=0; $totaltax=0; foreach ($viewsales as $c): $totalvatcost2=$totalvatcost2+$c->tax2; ?>
CUSTOMER BILL
BILL NO

usermodel->populateallarray('sales','invoice',$invoiceid); echo $refno[0]['id']; ?>

RECEIPT NO:()

DATE:

CUSTOMER: usermodel->populateallarray('people','id', $customer); echo$myname=$mysupplier[0]['company'].''.$mysupplier[0]['firstname']; ?>
CUSTOMER:
Code Item Name Item Name Qty Dsc Price Total
"; echo "
code ; ?> code; if($customer!=""){ $productname = $this->usermodel->geteproductbyid($customer); echo$name=strtoupper($productname[0]['name']); if($receiptdescription=="yes"){ echo"-".$description=strtoupper($productname[0]['description']);} }else{ echo "No Product"; } ?> code; if($customer!=""){ $productname = $this->usermodel->geteproductbyid($customer); echo$name=strtoupper($productname[0]['name']); if($receiptdescription=="yes"){ echo"-".$description=strtoupper($productname[0]['description']);} }else{ echo "No Product"; } ?> qty ; ?> discount ; ?> sprice ; ?> amount ; $totalcost=$totalcost+$c->amount ; $totaltax=$totaltax+$c->tax ; $mytaxrate=$c->tax ; if(($mytaxrate!=0)||($mytaxrate!="")){ $totalvatcost=$totalvatcost+$c->amount; } if(($mytaxrate==0)||($mytaxrate=="")){ $totalexemptedcost=$totalexemptedcost+$c->amount; } ?>
TOTAL AMOUNT
TAX RATE VAT AMT || CTL VATABLE AMT EXEMPT AMT
% ||% ||
GRAND TOTAL

SERVED BY:usermodel->countbranches($companyid); if( $countbranch>1){ $mytype=$c->type; $branches= $this->usermodel->populateall('branch','id',$branchid); if(is_array($branches)) { foreach($branches as $branches){ echo "(".strtoupper($branches->name).")"; } } else { echo '( No Branch )'; } } ?>


Developed by Robisearch LTD (0780655987)
.............*******...............