|
|
@ -1,10 +1,9 @@ |
|
|
|
|
|
|
|
<templates> |
|
|
|
<t t-name="DaybookTemp"> |
|
|
|
<div class=""> |
|
|
|
<div class=""> |
|
|
|
<h1> |
|
|
|
Day Book |
|
|
|
<h1 style="padding:10px"> |
|
|
|
Day Book |
|
|
|
</h1> |
|
|
|
|
|
|
|
</div> |
|
|
@ -12,20 +11,20 @@ |
|
|
|
<div> |
|
|
|
<div class="filter_view_db"></div> |
|
|
|
</div> |
|
|
|
<br></br> |
|
|
|
<div> |
|
|
|
<br></br> |
|
|
|
<div> |
|
|
|
<div class="table_view_db" style="right:20px;"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
<t t-name="Daytable"> |
|
|
|
<div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
<t t-name="Daytable"> |
|
|
|
<div> |
|
|
|
<div class="table_main_view"> |
|
|
|
<table cellspacing="0" width="100%"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th colspan="6">Date</th> |
|
|
|
<th class="mon_fld">Debit</th> |
|
|
|
<th class="mon_fld">Debit</th> |
|
|
|
<th class="mon_fld">Credit</th> |
|
|
|
<th class="mon_fld">Balance</th> |
|
|
|
|
|
|
@ -33,229 +32,277 @@ |
|
|
|
</thead> |
|
|
|
<tbody style="width:100%;"> |
|
|
|
</tbody> |
|
|
|
<tbody> |
|
|
|
<t t-foreach="report_lines" t-as="account"> |
|
|
|
<t t-set="common_id" t-value="0"/> |
|
|
|
<tr style="border: 1.5px solid black;" class="db-line" |
|
|
|
<tbody> |
|
|
|
<t t-foreach="report_lines" t-as="account"> |
|
|
|
<t t-set="common_id" t-value="0"/> |
|
|
|
<tr style="border: 1.5px solid black;" class="db-line" |
|
|
|
data-toggle="collapse" |
|
|
|
t-att-data-account-id="account['id']" |
|
|
|
t-attf-data-target=".a{{account['id']}}"> |
|
|
|
<td colspan="6" style="border: 0px solid black;"> |
|
|
|
<i class="fa fa-caret-down" role="img" aria-label="Unfolded" title="Unfolded"></i> |
|
|
|
<span> |
|
|
|
<t t-esc="account['date']"/> |
|
|
|
</span> |
|
|
|
<td class="mon_fld"> |
|
|
|
<t t-raw="account['debit']"/><t t-esc="currency[0]"/> |
|
|
|
</td> |
|
|
|
<td class="mon_fld"> |
|
|
|
<t t-raw="account['credit']"/><t t-esc="currency[0]"/> |
|
|
|
</td> |
|
|
|
<td class="mon_fld"> |
|
|
|
<t t-raw="account['balance']"/><t t-esc="currency[0]"/> |
|
|
|
</td> |
|
|
|
<t t-set="common_id" t-value="'a'+account['id']"/> |
|
|
|
</td> |
|
|
|
<tr t-attf-class="collapse a{{account['id']}}"> |
|
|
|
<td colspan="10"> |
|
|
|
<ul> |
|
|
|
</ul> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</tbody> |
|
|
|
<t t-if="currency[1] == 'before'"> |
|
|
|
|
|
|
|
<td colspan="6" style="border: 0px solid black;"> |
|
|
|
<i class="fa fa-caret-down" role="img" aria-label="Unfolded" |
|
|
|
title="Unfolded"></i> |
|
|
|
<span> |
|
|
|
<t t-esc="account['date']"/> |
|
|
|
</span> |
|
|
|
<td class="mon_fld"> |
|
|
|
<t t-esc="currency[0]"/> |
|
|
|
|
|
|
|
<t t-raw="account['debit']"/> |
|
|
|
</td> |
|
|
|
<td class="mon_fld"> |
|
|
|
<t t-esc="currency[0]"/> |
|
|
|
|
|
|
|
<t t-raw="account['credit']"/> |
|
|
|
</td> |
|
|
|
<td class="mon_fld"> |
|
|
|
<t t-esc="currency[0]"/> |
|
|
|
|
|
|
|
<t t-raw="account['balance']"/> |
|
|
|
</td> |
|
|
|
<t t-set="common_id" t-value="'a'+account['id']"/> |
|
|
|
</td> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<td colspan="6" style="border: 0px solid black;"> |
|
|
|
<i class="fa fa-caret-down" role="img" aria-label="Unfolded" |
|
|
|
title="Unfolded"></i> |
|
|
|
<span> |
|
|
|
<t t-esc="account['date']"/> |
|
|
|
</span> |
|
|
|
<td class="mon_fld"> |
|
|
|
|
|
|
|
<t t-raw="account['debit']"/> |
|
|
|
<t t-esc="currency[0]"/> |
|
|
|
|
|
|
|
</td> |
|
|
|
<td class="mon_fld"> |
|
|
|
|
|
|
|
<t t-raw="account['credit']"/> |
|
|
|
<t t-esc="currency[0]"/> |
|
|
|
|
|
|
|
</td> |
|
|
|
<td class="mon_fld"> |
|
|
|
|
|
|
|
<t t-raw="account['balance']"/> |
|
|
|
<t t-esc="currency[0]"/> |
|
|
|
|
|
|
|
</td> |
|
|
|
<t t-set="common_id" t-value="'a'+account['id']"/> |
|
|
|
</td> |
|
|
|
|
|
|
|
</t> |
|
|
|
|
|
|
|
<tr t-attf-class="collapse a{{account['id']}}"> |
|
|
|
<td colspan="10"> |
|
|
|
<ul> |
|
|
|
</ul> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<t t-name="DayFilterView"> |
|
|
|
<div class="" style="position: relative;"> |
|
|
|
<div class="sub_container_left"> |
|
|
|
<div class="report_print"> |
|
|
|
<button type="button" class="btn btn-primary" id="pdf" style="height:25px;position: relative;color:white;background-color: #00A0AD;border-color: #00A0AD;">Print (PDF)</button> |
|
|
|
<button type="button" class="btn btn-primary" id="xlsx" style="height:25px;position: relative;color:white;background-color: #00A0AD;border-color: #00A0AD;">Export (XLSX)</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br></br> |
|
|
|
<div class="sub_container_right" style="width:50%;height:3%;right:0px;top:0px;position: absolute;"> |
|
|
|
<div class="" style="position: relative;"> |
|
|
|
<div class="sub_container_left"> |
|
|
|
<div class="report_print"> |
|
|
|
<button type="button" class="btn btn-primary" id="pdf" |
|
|
|
style="left:10px; height:30px;position: relative;color:white;background-color: #00A0AD;border-color: #00A0AD; padding:3px;"> |
|
|
|
Print (PDF) |
|
|
|
</button> |
|
|
|
<button type="button" class="btn btn-primary" id="xlsx" |
|
|
|
style="left:10px; height:30px;position: relative;color:white;background-color: #00A0AD;border-color: #00A0AD; padding:3px;"> |
|
|
|
Export (XLSX) |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<br></br> |
|
|
|
<div class="sub_container_right" style="width:50%;height:3%;right:0px;top:0px;position: absolute;"> |
|
|
|
|
|
|
|
<div class="" style="right:80x;"> |
|
|
|
<div class="" style="right:80x;"> |
|
|
|
|
|
|
|
<br></br> |
|
|
|
<div class="row" style="right:80px;top:0px;position: absolute;width:50;"> |
|
|
|
<div class="time_range" style=""> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> |
|
|
|
<span class="fa fa-calendar" title="Dates" role="img" aria-label="Dates"></span> |
|
|
|
Date Range |
|
|
|
</a> |
|
|
|
<div class="dropdown-menu" role="menu"> |
|
|
|
<div class="" > |
|
|
|
<label class="" for="date_from">Start Date :</label> |
|
|
|
<div class=""> |
|
|
|
<div class="" aria-atomic="true" id="" > |
|
|
|
<input type="date" id="date_from"></input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<label class="" for="date_to">End Date :</label> |
|
|
|
<div class=""> |
|
|
|
<div class="" aria-atomic="true" id="" > |
|
|
|
<input type="date" id="date_to"></input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="journals_filter" style=""> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="fa fa-book"></span> |
|
|
|
Journals: |
|
|
|
</a> |
|
|
|
<select class="dropdown-menu journals" name="states[]" multiple="multiple"> |
|
|
|
<div role="separator" class="dropdown-divider"></div> |
|
|
|
<t t-foreach="filter_data.journals_list" t-as="journal"> |
|
|
|
<option t-attf-value="{{journal[0]}}"><t t-esc="journal[1]"/> |
|
|
|
</option> |
|
|
|
</t> |
|
|
|
</select> |
|
|
|
<span id="journal_res"></span> |
|
|
|
</div> |
|
|
|
<div class="accounts_filter"> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="fa fa-book"></span> |
|
|
|
Accounts: |
|
|
|
</a> |
|
|
|
<select class="dropdown-menu account" name="states[]" multiple="multiple"> |
|
|
|
<t t-foreach="filter_data.accounts_list" t-as="account"> |
|
|
|
<option t-attf-value="{{account[0]}}"> |
|
|
|
<t t-esc="account[1]"/> |
|
|
|
</option> |
|
|
|
</t> |
|
|
|
</select> |
|
|
|
<span id="acc_res"></span> |
|
|
|
</div> |
|
|
|
<br></br> |
|
|
|
<div class="row" style="right:80px;top:0px;position: absolute;width:50;"> |
|
|
|
<div class="time_range" style=""> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false"> |
|
|
|
<span class="fa fa-calendar" title="Dates" role="img" aria-label="Dates"></span> |
|
|
|
Date Range |
|
|
|
</a> |
|
|
|
<div class="dropdown-menu" role="menu"> |
|
|
|
<div class=""> |
|
|
|
<label class="" for="date_from">Start Date :</label> |
|
|
|
<div class=""> |
|
|
|
<div class="" aria-atomic="true" id=""> |
|
|
|
<input type="date" id="date_from"></input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<label class="" for="date_to">End Date :</label> |
|
|
|
<div class=""> |
|
|
|
<div class="" aria-atomic="true" id=""> |
|
|
|
<input type="date" id="date_to"></input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="journals_filter" style=""> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="fa fa-book"></span> |
|
|
|
Journals: |
|
|
|
</a> |
|
|
|
<select class="dropdown-menu journals" name="states[]" multiple="multiple"> |
|
|
|
<div role="separator" class="dropdown-divider"></div> |
|
|
|
<t t-foreach="filter_data.journals_list" t-as="journal"> |
|
|
|
<option t-attf-value="{{journal[0]}}"> |
|
|
|
<t t-esc="journal[1]"/> |
|
|
|
</option> |
|
|
|
</t> |
|
|
|
</select> |
|
|
|
<span id="journal_res"></span> |
|
|
|
</div> |
|
|
|
<div class="accounts_filter"> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="fa fa-book"></span> |
|
|
|
Accounts: |
|
|
|
</a> |
|
|
|
<select class="dropdown-menu account" name="states[]" multiple="multiple"> |
|
|
|
<t t-foreach="filter_data.accounts_list" t-as="account"> |
|
|
|
<option t-attf-value="{{account[0]}}"> |
|
|
|
<t t-esc="account[1]"/> |
|
|
|
</option> |
|
|
|
</t> |
|
|
|
</select> |
|
|
|
<span id="acc_res"></span> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="search-Target-move" style=""> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="fa fa-filter"></span> |
|
|
|
Target Move: |
|
|
|
</a> |
|
|
|
<select id="entries" class="dropdown-menu target_move" name="states[]" > |
|
|
|
<div role="separator" class="dropdown-divider"></div> |
|
|
|
<option value="all">All Entries </option> |
|
|
|
<option value="posted">Posted Entries</option> |
|
|
|
</select> |
|
|
|
<span id="post_res"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="search-Target-move" style=""> |
|
|
|
<a type="button" class="dropdown-toggle" data-toggle="dropdown"> |
|
|
|
<span class="fa fa-filter"></span> |
|
|
|
Target Move: |
|
|
|
</a> |
|
|
|
<select id="entries" class="dropdown-menu target_move" name="states[]"> |
|
|
|
<div role="separator" class="dropdown-divider"></div> |
|
|
|
<option value="Posted">Posted Entries</option> |
|
|
|
<option value="All">All Entries</option> |
|
|
|
</select> |
|
|
|
<span id="post_res"></span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div style=""> |
|
|
|
<button type="button" id="apply_filter" class="btn btn-primary" style="top:0px;height:25px;right:0px;position: absolute;color:white;background-color: #00A0AD;border-color: #00A0AD;">Apply</button> |
|
|
|
</div> |
|
|
|
<div style=""> |
|
|
|
<button type="button" id="apply_filter" class="btn btn-primary" |
|
|
|
style="top:0px;height:30px;right:20px;position: absolute;color:white;background-color: #00A0AD;border-color: #00A0AD;"> |
|
|
|
Apply |
|
|
|
</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
|
|
|
|
<t t-name="SubSectiondb"> |
|
|
|
<div class="db-table-div"> |
|
|
|
<table class="table table-sm o_main_table" |
|
|
|
<t t-name="SubSectiondb"> |
|
|
|
<div class="db-table-div"> |
|
|
|
<table class="table table-sm o_main_table" |
|
|
|
style="border: 0px solid black;display compact;"> |
|
|
|
<thead> |
|
|
|
<tr style=""> |
|
|
|
<th>Date</th> |
|
|
|
<th>JRNL</th> |
|
|
|
<th>Partner</th> |
|
|
|
<th>Move</th> |
|
|
|
<th>Entry Label</th> |
|
|
|
<th >Debit</th> |
|
|
|
<th >Credit</th> |
|
|
|
<th >Balance</th> |
|
|
|
<thead> |
|
|
|
<tr style=""> |
|
|
|
<th>Date</th> |
|
|
|
<th>JRNL</th> |
|
|
|
<th>Partner</th> |
|
|
|
<th>Move</th> |
|
|
|
<th>Entry Label</th> |
|
|
|
<th>Debit</th> |
|
|
|
<th>Credit</th> |
|
|
|
<th>Balance</th> |
|
|
|
|
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<t t-foreach="account_data" t-as="account_line"> |
|
|
|
<t t-set="style" t-value="''"/> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<t t-if="account_line.ldate"> |
|
|
|
<div class="dropdown dropdown-toggle"> |
|
|
|
<a data-toggle="dropdown" href="#"> |
|
|
|
<span class="caret"/> |
|
|
|
<span data-id="17"> |
|
|
|
<t t-esc="account_line.ldate"/> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
<ul class="dropdown-menu" |
|
|
|
role="menu" |
|
|
|
aria-labelledby="dropdownMenu"> |
|
|
|
<li> |
|
|
|
<a class="view-account-move" |
|
|
|
tabindex="-1" href="#" |
|
|
|
t-att-data-move-id="account_line.move_id"> |
|
|
|
View Source move |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<t t-esc="account_line.lcode"/> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<t t-esc="account_line.partner_name"/> |
|
|
|
</td> |
|
|
|
<td t-att-style="style"> |
|
|
|
<t t-esc="account_line.move_name"/> |
|
|
|
</td> |
|
|
|
<td t-att-style="style"> |
|
|
|
<t t-esc="account_line.lname"/> |
|
|
|
</td> |
|
|
|
<t t-if="account_line.currency_position == 'before'"> |
|
|
|
<td t-att-style="style" class="text-right"> |
|
|
|
<t t-if="account_line.debit == 0"> |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<t t-foreach="account_data" t-as="account_line"> |
|
|
|
<t t-set="style" t-value="''"/> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<t t-if="account_line.ldate"> |
|
|
|
<div class="dropdown dropdown-toggle"> |
|
|
|
<a data-toggle="dropdown" href="#"> |
|
|
|
<span class="caret"/> |
|
|
|
<span data-id="17"> |
|
|
|
<t t-esc="account_line.ldate"/> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
<ul class="dropdown-menu" |
|
|
|
role="menu" |
|
|
|
aria-labelledby="dropdownMenu"> |
|
|
|
<li> |
|
|
|
<a class="view-account-move" |
|
|
|
tabindex="-1" href="#" |
|
|
|
t-att-data-move-id="account_line.move_id"> |
|
|
|
View Source move |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<t t-esc="account_line.lcode"/> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<t t-esc="account_line.partner_name"/> |
|
|
|
</td> |
|
|
|
<td t-att-style="style"> |
|
|
|
<t t-esc="account_line.move_name"/> |
|
|
|
</td> |
|
|
|
<td t-att-style="style"> |
|
|
|
<t t-esc="account_line.lname"/> |
|
|
|
</td> |
|
|
|
<t t-if="currency_position == 'before'"> |
|
|
|
<td t-att-style="style" class="text-right"> |
|
|
|
<t t-if="account_line.debit == 0"> |
|
|
|
<span>-</span> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<t t-esc="account_line.currency_code"/> |
|
|
|
<t t-esc="currency_symbol"/> |
|
|
|
<t t-esc="Math.round(account_line.debit * Math.pow(10, 2)) / Math.pow(10, 2)"/> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td t-att-style="style" class="text-right"> |
|
|
|
<t t-if="account_line.credit == 0"> |
|
|
|
</td> |
|
|
|
<td t-att-style="style" class="text-right"> |
|
|
|
<t t-if="account_line.credit == 0"> |
|
|
|
<span>-</span> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<t t-esc="account_line.currency_code"/> |
|
|
|
<t t-esc="currency_symbol"/> |
|
|
|
<t t-esc="Math.round(account_line.credit * Math.pow(10, 2)) / Math.pow(10, 2)"/> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td t-att-style="style" class="text-right"> |
|
|
|
<t t-if="account_line.balance == 0"> |
|
|
|
</td> |
|
|
|
<td t-att-style="style" class="text-right"> |
|
|
|
<t t-if="account_line.balance == 0"> |
|
|
|
<span>-</span> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<t t-esc="account_line.currency_code"/> |
|
|
|
<t t-esc="currency_symbol"/> |
|
|
|
<t t-esc="Math.round(account_line.balance * Math.pow(10, 2)) / Math.pow(10, 2)"/> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
</td> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<td t-att-style="style" class="amt"> |
|
|
|
<t t-if="account_line.debit == 0"> |
|
|
|
<span>-</span> |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<t t-esc="Math.round(account_line.debit * Math.pow(10, 2)) / Math.pow(10, 2)"/> |
|
|
|
<t t-esc="account_line.currency_code"/> |
|
|
|
<t t-esc="currency_symbol"/> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td t-att-style="style" class="amt"> |
|
|
@ -264,7 +311,7 @@ Target Move: |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<t t-esc="Math.round(account_line.credit * Math.pow(10, 2)) / Math.pow(10, 2)"/> |
|
|
|
<t t-esc="account_line.currency_code"/> |
|
|
|
<t t-esc="currency_symbol"/> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
<td t-att-style="style" class="amt"> |
|
|
@ -273,16 +320,16 @@ Target Move: |
|
|
|
</t> |
|
|
|
<t t-else=""> |
|
|
|
<t t-esc="Math.round(account_line.balance * Math.pow(10, 2)) / Math.pow(10, 2)"/> |
|
|
|
<t t-esc="account_line.currency_code"/> |
|
|
|
<t t-esc="currency_symbol"/> |
|
|
|
</t> |
|
|
|
</td> |
|
|
|
|
|
|
|
</t> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</tr> |
|
|
|
</t> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
|
|
|
|
</templates> |