Exemplo n.º 1
0
     }
     return '';
 }
 // ANH DUNG Sep 19, 2014
 public function formatSumReportDatePaidExernalCobroke($model)
 {
     if ($model->status == STATUS_GEN_RECEIPT) {
         $receipt_date_paid = ProTransactionsInvoice::ReportGetDatePaidExternalCobroke($model);
Exemplo n.º 2
0
    $total_amount_due = 0;
    ?>
            <?php 
    foreach ($model->aModelDetail as $key => $mDetail) {
        ?>
            <tr class="materials_row ">
                <td class="item_c order_no row_class_id<?php 
        echo $mDetail->id;
        ?>
"><?php 
        echo $key + 1;
        ?>
</td>
                <td class="l_padding_10 ">
                    <span class="description"><?php 
        echo FiInvoiceDetail::fnBuildDescription($mDetail);
        ?>
</span>
                    <?php 
        $display_none = 'display_none';
        $total_amount_due += $mDetail->amount;
        if ($key) {
            $display_none = '';
        }
        $next = Yii::app()->createAbsoluteUrl('admin/fiInvoice/create', array('row_number' => $key + 1));
        ?>
                </td>
                <td class="l_padding_10 w-150 item_r">
                    <?php 
        echo MyFormat::formatPrice($mDetail->amount);
        ?>
Exemplo n.º 3
0
 protected function beforeSave()
 {
     $this->description = FiInvoiceDetail::fnBuildDescription($this);
     return parent::beforeSave();
 }