Example #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getItems()
 {
     return $this->hasMany(PaymentDtl::className(), ['payment_id' => 'id']);
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPaymentDtls()
 {
     return $this->hasMany(PaymentDtl::className(), ['invoice_id' => 'id']);
 }
Example #3
0
    <thead>
        <tr>
            <th style="width: 5%">#</th>
            <th style="width: 10%">
                Number
            </th>
            <th>
                Vendor
            </th>
            <th class="items" style="width: 10%">
                Date
            </th>
            <th class="items" style="width: 10%">
                Time to Due
            </th>
            <th style="width: 10%;">
                Invoice Value
            </th>
            <th style="width: 10%;">
                Payment Value
            </th>
            <th class="items" style="width: 20%">
                Sisa
            </th>
        </tr>
    </thead>
    <?php 
echo TabularInput::widget(['id' => 'detail-grid', 'allModels' => $model->items, 'model' => PaymentDtl::className(), 'tag' => 'tbody', 'itemOptions' => ['tag' => 'tr'], 'itemView' => '_item_detail_view', 'clientOptions' => []]);
?>
</table>
Example #4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPayments()
 {
     return $this->hasMany(PaymentDtl::className(), ['invoice_id' => 'reff_id'])->with(['payment']);
 }