odex25_standard/odex25_donation/affiliate_management/views/payment_template.xml

231 lines
8.1 KiB
XML

<odoo>
<data>
<template id="payment_tree" name="Payment Index">
<t t-call="website.layout">
<t t-if="user_id.partner_id.is_affiliate">
<div class="oe_structure">
<div class="container mt16">
<div class="navbar navbar-expand-md navbar-light" style="background-color: #3aadaa">
<div>
<div>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/affiliate/about" style="color:white;">
<i class="fa fa-home fa-2x"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link mt-1 ps-2 ms-1 namitm" href="/affiliate/report"
style=" color: white;border-left: 3px solid;">
Reports
</a>
</li>
<li class="nav-item">
<a class="nav-link mt-1 ps-2 ms-1" href="/affiliate/payment"
style=" color: white;border-left: 3px solid;">
Payments
</a>
</li>
<li class="nav-item">
<a class="nav-link mt-1 ps-2 ms-1" href="/affiliate/tool"
style=" color: white;border-left: 3px solid;">
Tools
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- add form here tree view -->
<div class="container mt16">
<h3 class="page-header">Your Payments</h3>
<t t-if="not invoices">
<p>There are currently no invoices for your account.</p>
</t>
<t t-if="invoices">
<table class="table table-hover o_my_status_table">
<thead>
<tr class="active">
<th>Invoice Number </th>
<th>Amount</th>
<th>Date</th>
<th>State</th>
</tr>
</thead>
<t t-foreach="invoices" t-as="i">
<tr>
<td>
<a t-attf-href="/my/invoice/{{i.id}}?{{keep_query()}}">
<t t-esc="i.name" />
</a>
</td>
<td>
<span t-field="i.amount_total" />
</td>
<td>
<span t-field="i.invoice_date" />
</td>
<td>
<span t-field="i.payment_state" />
</td>
</tr>
</t>
</table>
<div t-if="pager" class="o_portal_pager text-center">
<t t-call="website.pager" />
</div>
</t>
</div>
</t>
</t>
</template>
<template id="payment_form" name="Payment Show">
<t t-call="website.layout">
<t t-if="user_id.partner_id.is_affiliate">
<t t-if="invoice">
<div class="oe_structure">
<div class="container mt16">
<div class="navbar navbar-expand-md navbar-light" style="background-color: #3aadaa">
<!-- <a class="navbar-brand" t-attf-href="/forum/#{slug(forum)}">
<span t-field="forum.name"/>
</a> -->
<!-- <button type="button" class="navbar-toggler" data-toggle="collapse"
data-target="#oe-help-navbar-collapse">
<span class="navbar-toggler-icon"/>
</button> -->
<div>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/affiliate/about" style="color:#fff;">
<i class="fa fa-home fa-2x"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link mt-1 ps-2 ms-1" href="/affiliate/payment"
style="color:#fff;border-left: 3px solid;">
Payment
</a>
</li>
<li class="nav-item">
<a class="nav-link mt-1 ps-2 ms-1"
t-attf-href="/my/invoice/{{invoice.id}}?{{keep_query()}}"
style="color:#fff;border-left: 3px solid;"> Invoice <t
t-esc="invoice.name" />
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</t>
<div class="container mt16 mb-3">
<div class="panel-body">
<div class="mb8">
<strong>Date :</strong>
<span t-field="invoice.invoice_date" t-options='{"widget": "date"}' />
</div>
<div class="mb8">
<strong>Invoice State :</strong>
<span t-field="invoice.payment_state" />
</div>
<!-- <t t-if="invoice.aff_visit_id.sales_order_line_id">
<div class="mb8">
<strong>Source :</strong> <span t-field="invoice.aff_visit_id.sales_order_line_id.order_id.name"/>
</div>
</t> -->
<hr />
<h1>Invoice <span t-field="invoice.name" /></h1>
<table class="table table-hover o_my_status_table">
<thead>
<tr class="active">
<th>Click To Check Details</th>
<th>Item Name</th>
<th>Item Type</th>
<th>Conversion Date</th>
<!-- <t t-if="invoice.aff_visit_id.sales_order_line_id"> -->
<th>Commission Matrix</th>
<!-- </t> -->
<th>Commission Value</th>
</tr>
</thead>
<t t-foreach="invoice.aff_visit_id" t-as="i">
<tr>
<t t-if="i.sales_order_line_id">
<td>
<a t-attf-href="/my/order/{{i.id}}?{{keep_query()}}">
<t t-esc="i.name" />
</a>
</td>
</t>
<t t-if="not i.sales_order_line_id">
<td>
<a t-attf-href="/my/traffic/{{i.id}}?{{keep_query()}}">
<t t-esc="i.name" />
</a>
</td>
</t>
<td>
<span t-field="i.type_name" />
</td>
<td>
<span t-field="i.affiliate_type" />
</td>
<td>
<span t-field="i.convert_date" />
</td>
<td>
<!-- <t t-if="i.sales_order_line_id"> -->
<span t-field="i.amt_type" />
<!-- </t> -->
</td>
<td>
<span t-field="i.commission_amt" />
</td>
</tr>
</t>
</table>
<hr />
<div class="row">
<span class="col-md-10 text-end">
<strong>Total :</strong>
</span>
<span class="col-md-2 text-start">
<span t-field="invoice.amount_total" />
</span>
</div>
</div>
</div>
</t>
</t>
</template>
</data>
</odoo>