Exemple #1
0
 public function getPurchaseDtls()
 {
     return $this->hasMany(PurchaseDtl::className(), ['purchase_id' => 'id']);
 }
Exemple #2
0
if ($allow_edit) {
    ?>
                    
                        <th class="col-lg-2">Sub Total</th>
                        <th class="col-lg-1">&nbsp;</th>
                    <?php 
} else {
    ?>
                               
                        <th class="col-lg-3">Sub Total</th>
                    <?php 
}
?>
                    </thead>
                    <?php 
echo TabularInput::widget(['id' => 'detail-grid', 'allModels' => $details, 'modelClass' => PurchaseDtl::className(), 'options' => ['tag' => 'tbody'], 'itemOptions' => ['tag' => 'tr'], 'itemView' => '_item_detail', 'clientOptions' => []]);
?>
                </table>
                <?php 
echo Html::activeHiddenInput($model, 'value', ['id' => 'purchase-value']);
?>
            </div>
        </div>
        <div class="tab-pane col-lg-12" id="delivery-pane">
            <div class="box box-solid">
                <?php 
echo ListView::widget(['dataProvider' => $greceipt, 'layout' => '{items}', 'itemView' => '_greceipt']);
?>
            </div>            
        </div>
        <div class="tab-pane col-lg-12" id="payments-pane">