예제 #1
0
 public function getSalesDtls()
 {
     return $this->hasMany(SalesDtl::className(), ['sales_id' => 'id']);
 }
예제 #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' => $model->salesDtls, 'modelClass' => SalesDtl::className(), 'options' => ['tag' => 'tbody'], 'itemOptions' => ['tag' => 'tr'], 'itemView' => '_item_detail', 'clientOptions' => [], 'viewParams' => ['parent' => $model]]);
?>
                </table>
                <?php 
echo Html::activeHiddenInput($model, 'value', ['id' => 'sales-value']);
?>
            </div>
        </div>
        <div class="tab-pane col-lg-12" id="delivery-pane">
            <div class="box box-solid">
                <?php 
echo ListView::widget(['dataProvider' => new ActiveDataProvider(['query' => $model->getGis()]), 'layout' => '{items}', 'itemView' => '_greceipt']);
?>
            </div>            
        </div>
        <div class="tab-pane col-lg-12" id="payments-pane">