Ejemplo n.º 1
0
<?php

$this->breadcrumbs = array('Invoice Management' => array('index'), $model->invoice_no);
$menus = array(array('label' => 'Invoice Management', 'url' => array('index')), array('label' => 'Create Invoice', 'url' => array('create')), array('label' => 'Update Invoice', 'url' => array('update', 'id' => $model->id)), array('label' => 'Delete Invoice', 'url' => array('delete'), 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure you want to delete this item?')));
$this->menu = ControllerActionsName::createMenusRoles($menus, $actions);
$model->aModelDetail = $model->rDetail;
$cmsFormater = new CmsFormatter();
$InvoiceNumber = $model->invoice_no;
$InvoiceDate = $cmsFormater->formatDate($model->created_date);
// invoice normal
//$BillTo = FiInvoice::$STA_BILL_TO[$model->bill_to];
$CommissionAmount = $model->total_amount_due_gst;
$BillTo = $model->user_name;
$BillingAddress = $model->user_billing_address;
$PostalCode = $model->user_postal_code;
$CommissionAmountInText = NumberToText::convertNumber($CommissionAmount);
$CommissionAmountFormat = $cmsFormater->formatPrice($CommissionAmount);
//
//$CreatedDate = $cmsFormater->formatDate($model->created_date);
//$ReceiptDatePaid = $cmsFormater->formatDate($model->receipt_date_paid);
//$ReceiptInvoice = ProTransactionsInvoice::getReceiptInvoiceNo($model);
?>

<div class="sprint l_padding_140">
    <a class="button_print" href="javascript:void(0);" title="Print">
        <img src="<?php 
echo Yii::app()->theme->baseUrl;
?>
/img/print.png">
    </a>
</div>
Ejemplo n.º 2
0
 function get_prescription_florida_display()
 {
     $db = get_db();
     $ntt = new NumberToText($this->quantity);
     $ntt2 = new NumberToText($this->per_refill);
     $ntt3 = new NumberToText($this->refills);
     $string = "";
     $gnd = $this->provider->get_name_display();
     while (strlen($gnd) < 31) {
         $gnd .= " ";
     }
     $string .= $gnd . $this->provider->federal_drug_id . "\n";
     $sql = "SELECT * FROM users JOIN facility AS f ON f.name = users.facility where users.id ='" . add_escape_custom($this->provider->id) . "'";
     $results = $db->Execute($sql);
     if (!$results->EOF) {
         $rfn = $results->fields['name'];
         while (strlen($rfn) < 31) {
             $rfn .= " ";
         }
         $string .= $rfn . $this->provider->get_provider_number_default() . "\n" . $results->fields['street'] . "\n" . $results->fields['city'] . ", " . $results->fields['state'] . " " . $results->fields['postal_code'] . "\n" . $results->fields['phone'] . "\n";
     }
     $string .= "\n";
     $string .= strtoupper($this->patient->lname) . ", " . ucfirst($this->patient->fname) . " " . $this->patient->mname . "\n";
     $string .= "DOB " . $this->patient->date_of_birth . "\n";
     $string .= "\n";
     $string .= date("F j, Y", strtotime($this->start_date)) . "\n";
     $string .= "\n";
     $string .= strtoupper($this->drug) . " " . $this->size . " " . $this->unit_array[$this->unit] . "\n";
     if (strlen($this->note) > 0) {
         $string .= "Notes: \n" . $this->note . "\n";
     }
     if (!empty($this->dosage)) {
         $string .= $this->dosage;
         if (!empty($this->form)) {
             $string .= " " . $this->form_array[$this->form];
         }
         if (!empty($this->interval)) {
             $string .= " " . $this->interval_array[$this->interval];
         }
         if (!empty($this->route)) {
             $string .= " " . $this->route_array[$this->route] . "\n";
         }
     }
     if (!empty($this->quantity)) {
         $string .= "Disp: " . $this->quantity . " (" . trim(strtoupper($ntt->convert())) . ")" . "\n";
     }
     $string .= "\n";
     $string .= "Refills: " . $this->refills . " (" . trim(strtoupper($ntt3->convert())) . "), Per Refill Disp: " . $this->per_refill . " (" . trim(strtoupper($ntt2->convert())) . ")" . "\n";
     $string .= $this->substitute_array[$this->substitute] . "\n";
     $string .= "\n";
     return $string;
 }
Ejemplo n.º 3
0
 /**
  * @dataProvider cases
  */
 public function testConvert( $numeral, $text )
 {
   $ntt = new NumberToText( $numeral );
   $this->assertEquals( $text, $ntt->convert(), "'$numeral' converts to '$text'" );
 }
Ejemplo n.º 4
0
                <tbody>
                    <tr>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="line">Prepared by</td>
                        <td>&nbsp;</td>
                        <td class="line">Approved by</td>
                    </tr>
                </tbody>
            </table>
            <p class="line-1">I have checked this statement and hereby confirm that they are correct and I hereby acknowledge receipt of </p>
            <p><strong>Total Amount in text:</strong> <?php 
echo ucfirst(NumberToText::convertNumber($model->total_amount));
?>
 </p>
            <p><span style="padding-right: 100px;">Payment Mode:</span> <strong>CHEQUE</strong>- <span class="line-2"></span> <strong>dated</strong> <span class="line-2"></span> </p>          
            <table class="sign" style="width:80%;">
                <tbody>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="line">SIGNATURE OF CONSULTANT</td>
                    </tr>
                    <tr>
                        <td class="t-left"><p><strong>NOTE: SHOULD THERE BE ANY DISCREPANCY PLEASE NOTIFY OUR ACCOUNTS DEPT WITHIN 7 DAYS <br> PLEASE RETAIN THIS RECEIPT FOR INCOME TAX PURPOSE</strong></p></td>
                    </tr>
                </tbody>