.
This commit is contained in:
@@ -52,8 +52,9 @@ class Openprovider {
|
|||||||
private string $ip = '';
|
private string $ip = '';
|
||||||
private int $resellerId = 0;
|
private int $resellerId = 0;
|
||||||
private int $lastAuth = 0;
|
private int $lastAuth = 0;
|
||||||
private string $BASEURL = DEBUG_MODE ? 'http://api.sandbox.openprovider.nl:8480/v1beta'
|
private string $BASEURL = 'https://api.openprovider.eu/v1beta';
|
||||||
: 'https://api.openprovider.eu/v1beta';
|
// private string $BASEURL = DEBUG_MODE ? 'http://api.sandbox.openprovider.nl:8480/v1beta'
|
||||||
|
// : 'https://api.openprovider.eu/v1beta';
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
if (!OPENPROVIDER_ENABLED) return;
|
if (!OPENPROVIDER_ENABLED) return;
|
||||||
|
|||||||
@@ -1,8 +1,30 @@
|
|||||||
{@ include(common/header) @}
|
{@ include(common/header) @}
|
||||||
<h1>請求書一覧</h1>
|
<h1>請求書一覧</h1>
|
||||||
{@ kys($data) @}
|
|
||||||
検索バー<br />
|
|
||||||
{@ if (isset($data['data']['results'])) @}
|
{@ if (isset($data['data']['results'])) @}
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>日時</th>
|
||||||
|
<th>請求書番号</th>
|
||||||
|
<th>単殻</th>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{@ foreach ($data['data']['results'] as $d) @}
|
||||||
|
<tr>
|
||||||
|
<td>{{ $d['creation_date'] }}</td>
|
||||||
|
<td>{{ $d['invoice_number'] }}</td>
|
||||||
|
<td>{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}</td>
|
||||||
|
<td><a href="{{ $d['invoice_url'] }}">請求書をダウンロード</a></td>
|
||||||
|
<td><a href="{{ $d['attachment_url'] }}">添付</a></td>
|
||||||
|
</tr>
|
||||||
|
{@ endforeach @}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<p>結果数:{{ $data['data']['total'] }}</p>
|
||||||
|
{@ include(common/pagination) @}
|
||||||
{@ else @}
|
{@ else @}
|
||||||
<p>何も見つけられませんでした。</p>
|
<p>何も見つけられませんでした。</p>
|
||||||
{@ endif @}
|
{@ endif @}
|
||||||
|
|||||||
@@ -1,8 +1,37 @@
|
|||||||
{@ include(common/header) @}
|
{@ include(common/header) @}
|
||||||
<h1>支払一覧</h1>
|
<h1>支払一覧</h1>
|
||||||
{@ kys($data) @}
|
|
||||||
検索バー<br />
|
|
||||||
{@ if (isset($data['data']['results'])) @}
|
{@ if (isset($data['data']['results'])) @}
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>日時</th>
|
||||||
|
<th>支払ID</th>
|
||||||
|
<th>種類</th>
|
||||||
|
<th>単殻</th>
|
||||||
|
<th>支払済み</th>
|
||||||
|
<th>認証済み</th>
|
||||||
|
<th>完了</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{@ foreach ($data['data']['results'] as $d) @}
|
||||||
|
{$ $p = isset($d['payment_date']) $}
|
||||||
|
{$ $c = isset($d['confirmation_date']) $}
|
||||||
|
{$ $r = $d['is_processed'] == 1 $}
|
||||||
|
<tr>
|
||||||
|
<td>{{ $d['creation_date'] }}</td>
|
||||||
|
<td>{{ $d['id'] }}</td>
|
||||||
|
<td>{{ $d['type'] }}</td>
|
||||||
|
<td>{{ $d['amount']['product']['price'].' '.$d['amount']['product']['currency'] }}</td>
|
||||||
|
<td><span style="color: #{{ $p ? '14c014' : 'ee5040' }};">{{ $p ? '〇' : '✕' }}</span></td>
|
||||||
|
<td><span style="color: #{{ $c ? '14c014' : 'ee5040' }};">{{ $c ? '〇' : '✕' }}</span></td>
|
||||||
|
<td><span style="color: #{{ $r ? '14c014' : 'ee5040' }};">{{ $r ? '〇' : '✕' }}</span></td>
|
||||||
|
</tr>
|
||||||
|
{@ endforeach @}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<p>結果数:{{ $data['data']['total'] }}</p>
|
||||||
|
{@ include(common/pagination) @}
|
||||||
{@ else @}
|
{@ else @}
|
||||||
<p>何も見つけられませんでした。</p>
|
<p>何も見つけられませんでした。</p>
|
||||||
{@ endif @}
|
{@ endif @}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p>結果数:{{ $data['data']['total'] }}</p>
|
<p>結果数:{{ $data['data']['total'] }}</p>
|
||||||
|
{@ include(common/pagination) @}
|
||||||
{@ else @}
|
{@ else @}
|
||||||
<p>何も見つけられませんでした。</p>
|
<p>何も見つけられませんでした。</p>
|
||||||
{@ endif @}
|
{@ endif @}
|
||||||
|
|||||||
Reference in New Issue
Block a user