?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Documents/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Documents/viewpslippayment.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <style> #topbar1 { width:48%; font-size: 12px; color:#000; float:left; height:25px; margin-top: 20px; padding: 5px 0 0 5px;; } #topbar { width:48%; font-size: 11px; color:#000; float:left; padding: 10px 0 0 5px;; } .tables { width:100%; margin-top: 10px 0 0 10px; float:left; } .ins { width: 50%; float:left; } .ins2 { width: 50%; float:left; color:gray; } </style> <?php foreach($viewinfo as $updata) { $cover_id=$updata['cover_id']; $header=$updata['template_header']; $customer_id=$updata['customer_id']; $qdate=$updata['quotation_date']; $placingslip_id=$updata['id']; $qrefno=$updata['quotation_ref']; $typeof_policy=$updata['typeof_policy']; $currency=$updata['currencytype']; } $qdate=$this->mastermodel->convdatformat($qdate); $currency_type=$this->mastermodel->get_data_srow('country',$currency,'id'); $cr=$this->mastermodel->get_data_srow('covers',$cover_id,'id'); $type=$this->customermodel->getSingleFieldValue('customers','type','id',$customer_id); if($type=='Individual') { $name=$this->customermodel->getSingleFieldValue('customer_personal_ind','insured','customer_id',$customer_id); $business='NIL'; } else { $name=$this->customermodel->getSingleFieldValue('customer_corp_info','insured','customer_id',$customer_id); $business=$this->customermodel->getSingleFieldValue('customer_corp_info','business_activity','customer_id',$customer_id); } //$templatetype=$this->mastermodel->get_data_srow('template_type',$templatetype_id,'id'); $placingslipform=$this->mastermodel->get_data(' placing_slip_form',$placingslip_id,'placing_slip_id'); $covername=$this->customermodel->getSingleFieldValue('covers','cover','id',$cover_id); $viewpslip_section_insured=$this->mastermodel->get_data('placing_slip_section',$placingslip_id,'placing_slip_id'); $premiumdetails=$this->mastermodel->get_data_srow('placing_slip_premiumdetails',$placingslip_id,'placing_slip_id'); $companyname=$this->mastermodel->get_data_srow('insurance_company',$premiumdetails->insurance_company_id,'id'); $stakeholders=$this->mastermodel->get_data('placing_slip_stakeholders',$placingslip_id,'placing_slip_id'); //$placing_slip_paymentdetails=$this->mastermodel->get_data('placing_slip_paymentdetails',$placingslip_id,'placing_slip_id'); $policyfeesname=$this->documentsmodel->getpolicyfeesname($placingslip_id); $paybankdetails=$this->mastermodel->get_data_srow('placing_slip_bank',$placingslip_id,'id'); $paynetbankdetails=$this->mastermodel->get_data_srow('placing_slip_netbankdetails',$placingslip_id,'id'); $premium=$premiumdetails->premium; $policyno= $this->customermodel->getSingleFieldValue('policynote','policyno','quotation_ref',$qrefno); $placing_slip_paymentdesc=$this->mastermodel->get_data_srow('placing_slip_paymentdetails',$placingslip_id,'placing_slip_id'); if(count($companyname)==0) { $comp_name=''; } else { $comp_name=$companyname->company_name; } ?> <link href="<?=base_url()?>/assets/css/template.css" rel="stylesheet" type="text/css" /> <div style=" width:100%;background-color:#fff;font-size:11px;font-family:Arial; border:solid 1px #393939;color:#000; overflow:hidden;"> <div> <div style="background-color: #cfd9db; margin-left: 5px;" id="topbar1"><div class="ins">Quotation Ref No:</div> <div class="ins2"> <?=$qrefno?></div></div><div style="background-color: #cfd9db;" id="topbar1"><div class="ins">Policy No : </div><div class="ins2"><?=$policyno?></div></div> </div> <div> <div id="topbar"><div class="ins">Insured :</div><div class="ins2"> <?=$name;?></div></div> <div id="topbar"><div class="ins">Type Of Cover : </div><div class="ins2"><?=$covername;?></div></div> </div> <div> <div id="topbar"><div class="ins">Premium :</div><div class="ins2"> <?=$currency_type->currencycode?>.<?=number_format($premium, 2)?></div></div> <div id="topbar"><div class="ins">Period Of Insurance : </div><div class="ins2"><?=$this->mastermodel->convdatformat($premiumdetails->fromdate)?> To <?=$this->mastermodel->convdatformat($premiumdetails->todate)?></div></div> </div> <div> <div id="topbar"><div class="ins">Insurance Company :</div><div class="ins2"> <?=$comp_name?></div></div> <div id="topbar"><div class="ins">Payment Mode : </div><div class="ins2"><?=ucfirst($premiumdetails->payment_method)?></div></div> </div> <div> <div id="topbar"><div class="ins"><?=$policyfeesname?> :</div><div class="ins2"> <?=$currency_type->currencycode?>.<?=number_format($premiumdetails->policy_fees, 2)?></div></div> </div> <!-- <div> <div id="topbar"><div class="ins"></div><div class="ins2"></div></div> <div id="topbar"><div class="ins">Amount: </div><div class="ins2"><?//=$placing_slip_paymentdesc->amount?></div></div> </div> <?php //if($premiumdetails->payment_method!="cash") // { ?> <div> <div id="topbar"><div class="ins"></div><div class="ins2"></div></div> <div id="topbar"><div class="ins">Description: </div><div class="ins2"><?=$placing_slip_paymentdesc->description?></div></div> </div>--> <?php // } ?> <?php $brokerage=$premiumdetails->brokerage; $insurer= 100 - $brokerage; $brokeragecommission= $premium * ($brokerage/100); $insurercommission= $premium * ($insurer/100) +$premiumdetails->policy_fees; $totalcommission=$brokeragecommission+$insurercommission; ?> <div class="tables"><div id="topbar"> <table width="100%" class="sort"> <tr><th><label>Premium Distribution</label></th><th><label>%</label></th><th><label>Amount</label></th></tr> <tr><td><label>Brokerage</label> </td><td><label><?=number_format($brokerage, 2, '.', '');?></label></td><td style="text-align:right"><label ><?=number_format($brokeragecommission, 2, '.', ',')?></label></td></tr> <tr><td><label>Insurer</label></td><td><label><?=number_format($insurer, 2, '.', '');?></label></td><td style="text-align:right"><label><?=number_format($insurercommission, 2, '.', ',')?></label></td></tr> <tr><td></td><td><label>Total(<?=$currency_type->currencycode?>)</label></td><td style="text-align:right"<label><?=number_format($totalcommission, 2, '.', ',') ?></label></td></tr> </table></div> <div id="topbar"> <table width="100%" class="sort"> <tr><th><label>Brokerage Distribution</label></th><th>%</th><th><label>Amount</label></th></tr> <?php if (count($stakeholders)>0) { $v=1; $sumpercent=0; foreach($stakeholders as $stakeval) { $sumpercent=$sumpercent+$stakeval['percentage']; $descamount= $premium *($stakeval['percentage']/100); $staffname=$this->mastermodel->get_data_srow('staffpersonaldetails',$stakeval['staffid'],'id'); ?> <tr id="brockingsplit<?=$v?>"><td><label><?=$staffname->name?></label></td><td><label><?=number_format($stakeval['percentage'], 2, '.', '')?></label></td><td style="text-align:right" ><p id="brockeramount<?=$v?>"><?=number_format($descamount, 2, '.', ',')?></p><input type="hidden" name="brokeragesplitupamt[]" value="0" id="brokeragesplitupamt<?=$v?>"></td></tr> <?php $v++; } $brokerpercent= $brokerage - $sumpercent; $descamount= $premium *($brokerpercent/100); $countcnt=$v-1; ?> <tr id="brockingsplit0"><td><label>Broker</label></td><td ><label><?=number_format($brokerpercent, 2, '.', '')?></label></td><td style="text-align:right"><p id="brockeramount0"><?=number_format($descamount, 2, '.', ',')?></p></td></tr> <input type="hidden" name="countbrockamount" id="countbrockamount" value="<?=$countcnt?>"> <?php } else { ?> <tr id="brockingsplit0"><td><label>Broker</label></td><td ><label><?=number_format($brokerage, 2, '.', '');?></label></td><td style="text-align:right"><p><?=number_format($brokeragecommission, 2, '.', ',')?></p></td></tr> <?php } ?> <tr><td></td><td ><label>Total(<?=$currency_type->currencycode?>)</label></td><td style="text-align:right"><p><?=number_format($brokeragecommission, 2, '.', ',')?></p></td></tr> </table></div> </div> <!--div style="margin-bottom:20px;width:99%; overflow:auto"> <div <?php if($premiumdetails->payment_method=='bank'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?>> <div style="width:95%;text-align: left;padding: 5px;" >Bank Details</div> <div id="topbar"><div class="ins">DD/Cheque No. :</div><div class="ins2"> <?=$paybankdetails->dd_cheque_no?></div></div> <div id="topbar"><div class="ins">Bank Name : </div><div class="ins2"><?=$paybankdetails->bank_name?></div></div> </div> <div <?php if($premiumdetails->payment_method=='netbank'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?>> <div style="width:95%;text-align: left;padding: 5px;" >Net Bank Details</div> <div id="topbar"><div class="ins">Deposit No. :</div><div class="ins2"> <?=$paynetbankdetails->deposit_no?></div></div> <div id="topbar"><div class="ins">Bank Name : </div><div class="ins2"><?=$paynetbankdetails->bank_name?></div></div> <div id="topbar"><div class="ins">Account No. :</div><div class="ins2"> <?=$paynetbankdetails->account_number?></div></div> <div id="topbar"><div class="ins">Account holder : </div><div class="ins2"><?=$paynetbankdetails->account_holder?></div></div> </div> <div <?php if($premiumdetails->payment_method=='credit'){echo "style='display:block'"; } else {echo "style='display:none'"; } ?> > <div style="width:95%;text-align: left;padding: 5px;" >Credit Details</div> <table style="margin:0 10px 5px 10px; width: 96%" class="sort"> <tr><th>S.No</th><th>Date</th><th >Amount</th><th>Description</th></tr> <?php if(count($placing_slip_paymentdetails)) { $sl=1; $cnt=0; foreach($placing_slip_paymentdetails as $paymentval) { ?> <tr><td ><?=$sl?></td><td ><?=$paymentval['date']?> </td><td><?=$paymentval['amount']?></td><td><textarea readonly name='creditdescription[]' id='creditdescription<?=$cnt?>'><?=$paymentval['description']?></textarea></td></tr> <?php $sl++; $cnt++; } } ?> </table> </div> </div--> </div>