diff --git a/application/controllers/report.php b/application/controllers/report.php index 2ad40135..4c830e06 100755 --- a/application/controllers/report.php +++ b/application/controllers/report.php @@ -615,8 +615,8 @@ class report extends BaseController } else{ $this->global['pageTitle'] = 'Siddharth : Reports'; //$this->input->post('btn_submit'); - $cname = $this->input->get('cname'); $cat = $this->input->get('cat'); + $cname = $this->input->get('cname'); $prod = $this->input->get('prod'); $ab=$this->input->get('ab'); $fa=substr($ab,0,-5); @@ -628,7 +628,7 @@ class report extends BaseController $mid = $this->input->get('mid'); $d = $this->input->get('d'); - //print_r($prod); + //print_r($m);die(); $data['material']=$this->dahsboard_Model->material_name(); $data['cust']=$this->dahsboard_Model->customer_name(); $data['finyear']=$this->dahsboard_Model->report_finyear(); @@ -766,6 +766,8 @@ class report extends BaseController //$this->input->post('btn_submit'); $sid=$this->input->get('sid'); $mid = $this->input->get('mid'); + $cname = $this->input->get('cname'); + $prod = $this->input->get('prod'); //$mat = $this->input->get('mid'); $m = $this->input->get('m'); $ab=$this->input->get('ab'); @@ -775,7 +777,7 @@ class report extends BaseController $data['material']=$this->dahsboard_Model->material_name(); $data['cust']=$this->dahsboard_Model->customer_name(); $data['finyear']=$this->dahsboard_Model->report_finyear(); - $data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$sid,$mid,$fa,$aa); + $data['spurchse']=$this->dahsboard_Model->i_consolidate_month($m,$cname,$prod,$fa,$aa); // print_r( $data['spurchse']); if($this->DEPCode == MANAGEMENT) { @@ -794,6 +796,8 @@ class report extends BaseController //$this->input->post('btn_submit'); $sid=$this->input->get('sid'); $mid = $this->input->get('mid'); + $cname = $this->input->get('cname'); + $prod = $this->input->get('prod'); //$mat = $this->input->get('mid'); $ab=$this->input->get('ab'); $fa=substr($ab,0,-5); @@ -802,7 +806,7 @@ class report extends BaseController $data['material']=$this->dahsboard_Model->material_name(); $data['cust']=$this->dahsboard_Model->customer_name(); $data['finyear']=$this->dahsboard_Model->report_finyear(); - $data['spurchse']=$this->dahsboard_Model->i_consolidate_year($sid,$mid,$fa,$aa); + $data['spurchse']=$this->dahsboard_Model->i_consolidate_year($cname,$prod,$fa,$aa); // print_r( $data['spurchse']); if($this->DEPCode == MANAGEMENT) { @@ -1040,7 +1044,6 @@ class report extends BaseController $data['yearincome']=$this->dahsboard_Model->yearwise_data($income); $data['yearexpense']=$this->dahsboard_Model->yearwise_data($expense); $data['gettoptotal1'] = $this->dahsboard_Model->gettoptotal(); - $data['tdy']=$this->dahsboard_Model->today(); $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); //print_r($data['gettoptotal1']); // $data['monthlywiseincome']=$this->dahsboard_Model->monthwise_data_income(); @@ -1106,39 +1109,18 @@ class report extends BaseController } public function cashbookdepartment() { - $this->global['pageTitle'] = 'Cashbook - department - '; $sid=$_GET['sid']; $d=$_GET['d']; - $c=$_GET['c']; - if ($c=='PAYMENT') - { - - $data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c); + $this->global['pageTitle'] = 'Cashbook - department - '; + $data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d); $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); //print_r($data['departmentwise']); $this->loadviews("cashbookmonthlydep",$this->global,$data, NULL); } - else{ - $data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c); - $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); - $this->loadviews("cashbookmonthlyexp",$this->global,$data, NULL); - } - } - public function cashbookdepartmentexp() - { - $sid=$_GET['sid']; - $d=$_GET['d']; - $c=$_GET['c']; - $this->global['pageTitle'] = 'Cashbook - department - '; - $data['departmentwise']=$this->dahsboard_Model->departmentwise($sid,$d,$c); - $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); - //print_r($data['departmentwise']); - $this->loadviews("cashbookmonthlyexp",$this->global,$data, NULL); - } //for cashbook menu link// public function cashbookmonthmenu() { - + $this->global['pageTitle'] = 'Cashbook monthly '; $data['yearmonthwise']=$this->dahsboard_Model->yearmonthwise(); $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); @@ -1158,20 +1140,15 @@ class report extends BaseController { $this->global['pageTitle'] = 'Cashbook - viewtoday '; $data['tdy']=$this->dahsboard_Model->today(); - //print_r($data['tdy']); $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); $this->loadviews("cashbooktoday",$this->global,$data, NULL); } public function depmenu() { - $this->global['pageTitle'] = 'Cashbook - AllReport '; - $fdate = $this->input->post('from_date'); - $tdate = $this->input->post('to_date'); - //echo $fdate; - //echo $tdate; - $data['depmenu']=$this->dahsboard_Model->departmentmenu($fdate,$tdate); + $this->global['pageTitle'] = 'Cashbook - viewtoday '; + $data['depmenu']=$this->dahsboard_Model->departmentmenu(); $data['Indiancurrency']=$this->dahsboard_Model->INRSymbol(); - $this->loadviews("cashbookall",$this->global,$data, NULL); + $this->loadviews("cashbookdepmenu",$this->global,$data, NULL); } public function cashbookmenudepartment() { diff --git a/application/models/dahsboard_model.php b/application/models/dahsboard_model.php index 5476cbc7..432203ac 100755 --- a/application/models/dahsboard_model.php +++ b/application/models/dahsboard_model.php @@ -501,12 +501,23 @@ function servicebudgt () } function servicebal () { - $sql="SELECT ROUND(sum(BudgetAmount)-(SELECT -ifnull((sum(distinct PO_Line_Item.Quantity * PO_Line_Item.Rate)),0) -as Util_Amount + $sql="SELECT Cost_Center_Budget.CostCenterCode as Cost_Center_Code, CostCenterName as Cost_Center_Name,group_concat(distinct Dept_Details.DepartmentName) as Dept_Name,Cost_Center_Budget.BudgetType as BudgetType,Cost_Center_Budget.BudgetYear as BudgetYear, +case Cost_Center_Budget.BudgetType +when 'SERVICE' +then ifnull((sum(distinct PO_Line_Item.Quantity * PO_Line_Item.Rate)),0) +end as service from T_CostCenter_Budget Cost_Center_Budget -join T_PurchaseOrder_LineItem PO_Line_Item on Cost_Center_Budget.CostCenterCode=PO_Line_Item.CostCenterCode -WHERE Cost_Center_Budget.BudgetType='SERVICE' and YEAR(STR_TO_DATE(`BudgetYear`,'%Y')) = YEAR(NOW())),2) as balservicebudget FROM T_CostCenter_Budget where BudgetType ='SERVICE' and YEAR(STR_TO_DATE(`BudgetYear`,'%Y')) = YEAR(NOW())"; +left join T_PurchaseOrder_LineItem PO_Line_Item on Cost_Center_Budget.CostCenterCode=PO_Line_Item.CostCenterCode +left JOIN T_PurchaseOrder_Master po on po.PONO=PO_Line_Item.PONO and po.Status !='ST030' +left JOIN T_Revenue_Tax T_Rev_Tax on PO_Line_Item.LineItemNo=T_Rev_Tax.LineItemNo +JOIN T_CostCenter_Master Cost_Mast on Cost_Center_Budget.CostCenterCode=Cost_Mast.CostCenterCode +JOIN T_CostCenter_Departments CostCentDept on CostCentDept.CostCenterCode=Cost_Mast.CostCenterCode +JOIN T_DepartmentDetails Dept_Details on Dept_Details.DEPCode= CostCentDept.DEPCode +left JOIN T_Service_Tax st on st.LineItemNo = PO_Line_Item.LineItemNo +WHERE Cost_Center_Budget.BudgetType = po.POType and date(po.PODate) >= '2017-04-01' and date(po.PODate) <= '2018-03-31' +group by +Cost_Center_Budget.BudgetType +"; $query = $this->db->query($sql); return $query->result(); } @@ -1352,7 +1363,7 @@ left join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo where -pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) "; +pm.Status != 'ST030' "; if ($cname!= ''){ @@ -1408,9 +1419,11 @@ if ($cname!= ''){ } - +$sql.="and pm.PONO in (select PONO from T_IGR_Master) "; $sql.="group by pono,material_name,category,supplier_name"; -//ho $sql; +// echo $m; +// echo $sid; +//echo $sql; $query = $this->db->query($sql); return $query->result(); } @@ -1575,6 +1588,8 @@ FROM T_PurchaseOrder_Master pm join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID +left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo +left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) "; if ($cname!= ''){ @@ -1597,7 +1612,7 @@ if ($cname!= ''){ return $query->result(); } - function i_consolidate_month($m=null,$sid=null,$mid=null,$fa=null,$aa=null){ + function i_consolidate_month($m=null,$cname=null,$prod=null,$fa=null,$aa=null){ $sql="select mm.Category as category,sd.SupplierID as sid,sd.SupplierName as supplier_name,mm.MaterialCode as mid,mm.MaterialName as material_name, sum(pl.Quantity) as quantity, @@ -1606,8 +1621,10 @@ FROM T_PurchaseOrder_Master pm join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID +left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo +left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and -monthname(pm.PODate) = '".$m."' and sd.SupplierID = '".$sid."' and mm.MaterialCode = '".$mid."' "; +monthname(pm.PODate) = '".$m."' and sd.SupplierName = '".$cname."' and mm.MaterialName = '".$prod."' "; if ($fa and $aa != ''){ $sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')"; @@ -1618,7 +1635,7 @@ if ($fa and $aa != ''){ //echo $sql; return $query->result(); } - function i_consolidate_year($sid=null,$mid=null,$fa=null,$aa=null){ + function i_consolidate_year($cname=null,$prod=null,$fa=null,$aa=null){ $sql="select mm.Category as category,sd.SupplierID as sid,sd.SupplierName as supplier_name,mm.MaterialCode as mid,mm.MaterialName as material_name, sum(pl.Quantity) as quantity, @@ -1627,8 +1644,9 @@ FROM T_PurchaseOrder_Master pm join T_PurchaseOrder_LineItem pl on pl.PONO = pm.PONO join T_MaterialMaster mm on mm.MaterialCode = pl.MaterialCode join T_SupplierDetailsN sd on sd.SupplierID = pm.SupplierID -where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and -sd.SupplierID = '".$sid."' and mm.MaterialCode = '".$mid."' "; +left join T_Service_Tax st on st.LineItemNo = pl.LineItemNo +left join T_Revenue_Tax rt on rt.LineItemNo = pl.LineItemNo +where pm.Status != 'ST030' and pm.PONO in (select PONO from T_IGR_Master) and sd.SupplierName = '".$cname."' and mm.MaterialName = '".$prod."' "; if ($fa and $aa != ''){ $sql.=" and (pm.PODate >= '".$fa."-04-01' and pm.PODate <= '".$aa."-03-31')"; @@ -1935,49 +1953,15 @@ if ($fa and $aa != ''){ function monthexpensereport() { - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date, - ifnull(case - when tinc.type = 'PAYMENT' - then sum(tinc.total) - end,'0') as expense, - ifnull(case - when tinc.type = 'RECEIPT' - then sum(tinc.total) - end, '0') as income, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.towhom - end,'-') as paymentname, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.towhom - end, '-') as receiptname, - tinc.total,tinc.towhom,tinc.description,monthname(tinc.date)as month,tinc.type,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code where month(tinc.date)= month(current_date())group by tinc.account_code"; - $query = $this->db->query($sql); - return $query->result(); + $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,tinc.towhom,tinc.description,tinc.account_code,monthname(tinc.date)as month,ac.name FROM t_income_expense as tinc join t_accountcode ac on ac.code=tinc.account_code where tinc.type='PAYMENT' and month(tinc.date)= month(current_date()) group by account_code order by total desc limit 10 "; + $query = $this->db->query($sql); + return $query->result(); } function yearexpensereport() { - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.total - end,'0') as expense, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.total - end, '0') as income, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.towhom - end,'-') as paymentname, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.towhom - end, '-') as receiptname, - date_format(date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,tinc.towhom,tinc.description,tinc.account_code,monthname(tinc.date)as month FROM t_income_expense tinc where year(date)= year(current_date()) group by month order by total desc limit 10 "; + $sql="SELECT date_format(date,'%d-%m-%Y')as date,type,sum(total)as total,towhom,description,account_code,monthname(date)as month FROM t_income_expense where type='PAYMENT' and year(date)= year(current_date()) group by month order by total desc limit 10 "; $query = $this->db->query($sql); return $query->result(); @@ -2007,28 +1991,11 @@ if ($fa and $aa != ''){ return $query->result(); } - function departmentwise($sid='',$d='',$c='') + function departmentwise($sid='',$d='') { - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.total - end,'0') as expense, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.total - end, '0') as income, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.towhom - end,'-') as paymentname, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.towhom - end, '-') as receiptname, - date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,.tinc.description, ac.name FROM + $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,.tinc.description, ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code - WHERE account_code = '$sid' and monthname(date)='$d' and tinc.type='$c'"; + WHERE tinc.type='PAYMENT' and account_code = '$sid' and monthname(date)='$d'"; $query = $this->db->query($sql); //print_r($this->db->last_query()); //echo $sql; @@ -2037,26 +2004,9 @@ if ($fa and $aa != ''){ } function yearmonthwise($sid='') { - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date, - ifnull(case - when tinc.type = 'PAYMENT' - then sum(tinc.total) - end,'0') as expense, - ifnull(case - when tinc.type = 'RECEIPT' - then sum(tinc.total) - end, '0') as income, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.towhom - end,'-') as paymentname, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.towhom - end, '-') as receiptname, - date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.account_code,sum(tinc.total)as total,monthname(tinc.date)as month,tinc.description,tinc.towhom,tinc.account_code,ac.name FROM t_income_expense tinc + $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,sum(tinc.total)as total,monthname(tinc.date)as month,tinc.description,tinc.towhom,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code - WHERE monthname(date) = ? group by tinc.account_code"; + WHERE tinc.type='PAYMENT' and monthname(date) = ? group by account_code"; $query = $this->db->query($sql,array($sid)); //print_r($this->db->last_query()); return $query->result(); @@ -2090,33 +2040,12 @@ function INRSymbol() } function today() { - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.total - end,'0') as expense, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.total - end, '0') as income, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.towhom - end,'-') as paymentname, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.towhom - end, '-') as receiptname, - tinc.total,tinc.towhom,tinc.description,tinc.type,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code WHERE DATE(date) = CURRENT_DATE"; - $query = $this->db->query($sql); - return $query->result(); - } - // $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,tinc.description,tinc.account_code,tac.name FROM t_income_expense tinc - // LEFT JOIN t_accountcode tac ON tac.code = tinc.account_code - // WHERE DATE(date) = CURRENT_DATE"; - // $query = $this->db->query($sql); - // return $query->result(); - //} + $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date,tinc.type,tinc.total,tinc.towhom,tinc.description,tinc.account_code,tac.name FROM t_income_expense tinc + LEFT JOIN t_accountcode tac ON tac.code = tinc.account_code + WHERE DATE(date) = CURRENT_DATE"; + $query = $this->db->query($sql); + return $query->result(); + } //for menu link in monthly payments// function monthlypayments() { @@ -2126,30 +2055,12 @@ function INRSymbol() return $query->result(); } - function departmentmenu($fdate,$tdate) + function departmentmenu() { - $fdate= date("Y-m-d",strtotime($fdate)); - $tdate=date("Y-m-d",strtotime($tdate)); - $sql="SELECT date_format(tinc.date,'%d-%m-%Y')as date, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.total - end,'0') as expense, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.total - end, '0') as income, - ifnull(case - when tinc.type = 'PAYMENT' - then tinc.towhom - end,'-') as paymentname, - ifnull(case - when tinc.type = 'RECEIPT' - then tinc.towhom - end, '-') as receiptname, - tinc.total,tinc.towhom,tinc.description,tinc.type,tinc.account_code,ac.name FROM t_income_expense tinc join t_accountcode ac on ac.code=tinc.account_code where tinc.date >= '".$fdate."' and tinc.date <= '".$tdate."'"; + $sql="SELECT tinc.type,sum(tinc.total)as total,tinc.account_code,ac.name FROM t_income_expense tinc + join t_accountcode ac on ac.code=tinc.account_code + group by account_code"; $query = $this->db->query($sql); - //echo $fdate; //print_r($this->db->last_query()); return $query->result(); diff --git a/application/views/Report_consolidate_inward.php b/application/views/Report_consolidate_inward.php index edd92a37..d0977fb2 100755 --- a/application/views/Report_consolidate_inward.php +++ b/application/views/Report_consolidate_inward.php @@ -170,7 +170,7 @@ foreach ($spurchse as $result) { ?> - supplier_name;?> + supplier_name;?> material_name)) { echo $result->material_name ; } else {echo "-";} @@ -178,67 +178,67 @@ April); ?> - April);?> + April);?> May); ?> - May);?> + May);?> June); ?> - June);?> + June);?> July); ?> - July);?> + July);?> August); ?> - August);?> + August);?> September; ?> - September);?> + September);?> October); ?> - October);?> + October);?> November); ?> - November);?> + November);?> December); ?> - December);?> + December);?> January); ?> - January);?> + January);?> February); ?> - February);?> + February);?> March); ?> - March);?> + March);?> qtotal); ?> - qtotal);?> + qtotal);?> @@ -435,7 +435,7 @@ foreach ($spurchse as $result) { ?> - supplier_name;?> + supplier_name;?> material_name)) { echo $result->material_name ; } else {echo "-";} @@ -443,67 +443,67 @@ vApril,2,'.',''); ?> - vApril,2,'.','');?> + vApril,2,'.','');?> vMay,2,'.',''); ?> - vMay,2,'.','');?> + vMay,2,'.','');?> vJune,2,'.',''); ?> - vJune,2,'.','');?> + vJune,2,'.','');?> vJuly,2,'.',''); ?> - vJuly,2,'.','');?> + vJuly,2,'.','');?> vAugust,2,'.',''); ?> - vAugust,2,'.','');?> + vAugust,2,'.','');?> vSeptember,2,'.',''); ?> - vSeptember,2,'.','');?> + vSeptember,2,'.','');?> vOctober,2,'.',''); ?> - vOctober,2,'.','');?> + vOctober,2,'.','');?> vNovember,2,'.',''); ?> - vNovember,2,'.','');?> + vNovember,2,'.','');?> vDecember,2,'.',''); ?> - vDecember,2,'.','');?> + vDecember,2,'.','');?> vJanuary,2,'.',''); ?> - vJanuary,2,'.','');?> + vJanuary,2,'.','');?> vFebruary,2,'.',''); ?> - vFebruary,2,'.','');?> + vFebruary,2,'.','');?> vMarch,2,'.',''); ?> - vMarch,2,'.','');?> + vMarch,2,'.','');?> vtotal,2,'.',''); ?> - vtotal,2,'.','');?> + vtotal,2,'.','');?> diff --git a/application/views/Report_consolidate_month_inward.php b/application/views/Report_consolidate_month_inward.php index 5fd43d10..a9216c5f 100755 --- a/application/views/Report_consolidate_month_inward.php +++ b/application/views/Report_consolidate_month_inward.php @@ -77,7 +77,7 @@ if(!empty($mms)) - supplier_name;?> + supplier_name;?> material_name;?> - supplier_name;?> + supplier_name;?> material_name;?> totalservicebudget-$serviceb->service; { ?>
SERVICE BUDGET
- balservicebudget;?> data-min="20" data-max=totalservicebudget;?> data-width="" data-height="" data-fgColor="#00c0ef ">
+ data-min="20" data-max=totalservicebudget;?> data-width="" data-height="" data-fgColor="#00c0ef ">
TOTAL       :  totalservicebudget;?>
-
BALANCE :  balservicebudget;?>
+
BALANCE :