/
var
/
www
/
vhosts
/
nabawater
/
backend
/
views
/
vendor-order-report
/
/var/www/vhosts/nabawater/backend/views/vendor-order-report
mkdir
upload
Name
Size
Mode
Actions
index.php
7632
0644
edit
dl
rm
view.php
2128
0644
edit
dl
rm
_search.php
1229
0644
edit
dl
rm
Edit:
/var/www/vhosts/nabawater/backend/views/vendor-order-report/view.php
(2128B)
<?php use yii\helpers\Url; use common\helpers\DateTimeHelper; use common\helpers\Com; use backend\models\Configuration; use backend\models\Order; use backend\models\ItemIngredientGroup; ?> <div class="card card-body" id="printableArea"> <div class="printview-order-inner"> <div class="overallTable"> <table class="table table-grid table-bordered"> <thead> <tr> <th class="text-center"><?= yii::t('backend','S No') ?></th> <th class="text-center"><?= yii::t('backend','Order No') ?></th> <th class="text-center"><?= yii::t('backend','Order Date & Time') ?></th> <th class="text-center"><?= yii::t('backend','Order Total') ?></th> <th class="text-center"><?= yii::t('backend','Admin Commission') ?> (<?= Configuration::get(Configuration::APP_CURRENCY_CODE) ?>)</th> <th class="text-center"><?= yii::t('backend','Tax') ?> - Price (<?= Configuration::get(Configuration::APP_CURRENCY_CODE) ?>)</th> <th class="text-center"><?= yii::t('backend','Vendor Profit') ?></th> </tr> </thead> <tbody> <?php foreach($resposeArray as $key => $value) { ?> <tr> <td class="s_no"><?= ($key+1) ?></td> <td> <a href="javascript:void(0)" class="quick-view" data-key="<?=$value['order_key'] ?>" date-date="<?= $value['order_date_time'] ?>"><?= $value['order_number'] ?> </a> </td> <td><?= $value['order_date_time'] ?></td> <td><?= $value['order_total'] ?></td> <td><?= $value['admin_commission'] ?></td> <td><?= $value['vat'] ?></td> <td><?= $value['vendor_profit'] ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> <script type="text/javascript"> runOnLoad(function () { <?php if( (int)Yii::$app->getRequest()->get('print') === 1 ): ?> window.print(); window.close(); <?php endif; ?> }); </script>
Save
cmd:
run