mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-17 00:38:40 +00:00
Templating
This commit is contained in:
parent
57cada03f1
commit
9fd2b32107
|
|
@ -60,5 +60,67 @@
|
||||||
"children": []
|
"children": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005105001,
|
||||||
|
"pid": "754a08ddf8bcb1cf22f310f09206dd783d42f7dd",
|
||||||
|
"type": 2,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Invoice",
|
||||||
|
"uri": "/{/lang}/backend/purchase/invoice/list",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 5,
|
||||||
|
"from": "Invoice",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1002101001,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1005105101,
|
||||||
|
"pid": "722ef87be24d036db431dd65c0418e5502a6eb89",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "List",
|
||||||
|
"uri": "/{/lang}/backend/purchase/invoice/list",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": "Billing",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005105001,
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"id": 1005105201,
|
||||||
|
"pid": "420c091bd6d9f5cd16b1d62569189feb707d6652",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Invoice",
|
||||||
|
"uri": "/{/lang}/backend/purchase/invoice/single",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 1,
|
||||||
|
"from": "Billing",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005104101,
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 1005105301,
|
||||||
|
"pid": "722ef87be24d036db431dd65c0418e5502a6eb89",
|
||||||
|
"type": 3,
|
||||||
|
"subtype": 1,
|
||||||
|
"name": "Create",
|
||||||
|
"uri": "/{/lang}/backend/purchase/invoice/create",
|
||||||
|
"target": "self",
|
||||||
|
"icon": null,
|
||||||
|
"order": 5,
|
||||||
|
"from": "Billing",
|
||||||
|
"permission": null,
|
||||||
|
"parent": 1005104001,
|
||||||
|
"children": []
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,25 @@ class Controller extends ModuleAbstract implements WebInterface
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param RequestAbstract $request Request
|
||||||
|
* @param ResponseAbstract $response Response
|
||||||
|
* @param mixed $data Generic data
|
||||||
|
*
|
||||||
|
* @return RenderableInterface
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function viewBillingPurchaInvoiceList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||||
|
{
|
||||||
|
$view = new View($this->app, $request, $response);
|
||||||
|
$view->setTemplate('/Modules/Billing/Theme/backend/purchase-invoice-list');
|
||||||
|
$view->addData('nav', $this->createNavigation(1005104001, $request, $response));
|
||||||
|
|
||||||
|
return $view;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $pageId Page/parent Id for navigation
|
* @param int $pageId Page/parent Id for navigation
|
||||||
* @param RequestAbstract $request Request
|
* @param RequestAbstract $request Request
|
||||||
|
|
|
||||||
47
Theme/backend/purchase-invoice-list.tpl.php
Normal file
47
Theme/backend/purchase-invoice-list.tpl.php
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
|
||||||
|
$footerView = new \Web\Views\Lists\PaginationView($this->app, $this->request, $this->response);
|
||||||
|
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
|
||||||
|
$footerView->setPages(20);
|
||||||
|
$footerView->setPage(1);
|
||||||
|
|
||||||
|
echo $this->getData('nav')->render(); ?>
|
||||||
|
|
||||||
|
<section class="box w-100">
|
||||||
|
<table class="table">
|
||||||
|
<caption><?= $this->l11n->lang['Billing']['Invoices'] ?></caption>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?= $this->l11n->lang[0]['ID']; ?>
|
||||||
|
<td><?= $this->l11n->lang['Billing']['Type']; ?>
|
||||||
|
<td><?= $this->l11n->lang['Billing']['SupplierID']; ?>
|
||||||
|
<td class="wf-100"><?= $this->l11n->lang['Billing']['Supplier']; ?>
|
||||||
|
<td><?= $this->l11n->lang['Billing']['Net']; ?>
|
||||||
|
<td><?= $this->l11n->lang['Billing']['Gross']; ?>
|
||||||
|
<td><?= $this->l11n->lang['Billing']['Created']; ?>
|
||||||
|
<td><?= $this->l11n->lang['Billing']['Due']; ?>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="8"><?= $footerView->render(); ?>
|
||||||
|
<tbody>
|
||||||
|
<?php $count = 0; foreach([] as $key => $value) : $count++; ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
<?php if($count === 0) : ?>
|
||||||
|
<tr><td colspan="8" class="empty"><?= $this->l11n->lang[0]['Empty']; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</table>
|
||||||
|
</section>
|
||||||
|
|
@ -43,6 +43,8 @@ $MODLANG['Billing'] = [
|
||||||
'Recipient' => 'Recipient',
|
'Recipient' => 'Recipient',
|
||||||
'Shipment' => 'Shipment',
|
'Shipment' => 'Shipment',
|
||||||
'Source' => 'Source',
|
'Source' => 'Source',
|
||||||
|
'Supplier' => 'Supplier',
|
||||||
|
'SupplierID' => 'Supplier ID',
|
||||||
'Tax' => 'Tax',
|
'Tax' => 'Tax',
|
||||||
'Total' => 'Total',
|
'Total' => 'Total',
|
||||||
'Type' => 'Type',
|
'Type' => 'Type',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user