Skip to content

Commit

Permalink
Fix test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Apr 29, 2023
1 parent 1b262cd commit 721ca32
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
27 changes: 12 additions & 15 deletions UI/Reports/filters/gl.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,47 +162,47 @@
value="X"
checked = "checked"
} %]&nbsp;[% text('All') %]</td>
<td align="left">
<td align="left">
[% PROCESS input element_data = {
name="category"
id="category-asset"
class="radio"
type="radio"
value="A"
} %]&nbsp;[% text('Asset') %]</td>
<td align="left">
<td align="left">
[% PROCESS input element_data = {
name="category"
id="category-liability"
class="radio"
type="radio"
value="L"
} %]&nbsp;[% text('Liability') %]</td>
<td align="left">
<td align="left">
[% PROCESS input element_data = {
name="category"
id="category-equity"
class="radio"
type="radio"
value="Q"
} %]&nbsp;[% text('Equity') %]</td>
<td align="left">
<td align="left">
[% PROCESS input element_data = {
name="category"
id="category-income"
class="radio"
type="radio"
value="I"
} %]&nbsp;[% text('Income') %]</td>
<td align="left">
<td align="left">
[% PROCESS input element_data = {
name="category"
id="category-expense"
class="radio"
type="radio"
value="E"
} %]&nbsp;[% text('Expense') %]
</td>
</td>
</tr>
</table>
</td>
Expand Down Expand Up @@ -246,8 +246,8 @@
value="1"
checked="checked"
} %] [% text('Description') %]</td>
</tr>
<tr>
</tr>
<tr>
<td nowrap>[% PROCESS input element_data = {
name="col_debits"
class="checkbox"
Expand Down Expand Up @@ -280,8 +280,8 @@
type="checkbox"
value="1"
} %] [% text('FX Credit') %]</td>
</tr>
<tr>
</tr>
<tr>
<td nowrap>[% PROCESS input element_data = {
name="col_source"
class="checkbox"
Expand All @@ -307,8 +307,8 @@
type="checkbox"
value="1"
} %] [% text('Till') %]</td>
</tr>
<tr>
</tr>
<tr>
<td nowrap>[% PROCESS input element_data = {
name="col_accno"
class="checkbox"
Expand Down Expand Up @@ -340,13 +340,10 @@
type="checkbox"
value="1"
} %] [% text('Subtotal') %]</td>
</tr>
</table>
</tr>
</table>
</td>
</tr>

</table>
</td>
</tr>
Expand Down
8 changes: 6 additions & 2 deletions xt/42-report.pg
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ BEGIN;
-- SELECT has_function('business_type__list','{}'::text[]);
SELECT has_function('report__aa_outstanding',ARRAY['integer','integer','text','text','integer','integer[]','text','boolean','date','date','text','integer']);
SELECT has_function('report__aa_outstanding_details',ARRAY['integer','integer','text','text','integer','integer[]','text','boolean','date','date','text','integer']);
SELECT has_function('report__aa_transactions',ARRAY['integer','integer','text','text','integer','integer','text','text','text','text','text','text','text','date','date','boolean','boolean','integer','boolean','boolean','boolean','text']);
SELECT has_function('report__aa_transactions',ARRAY['integer','integer','text','text','integer','integer','text','text','text','text','text','text','text','date','date','boolean','boolean','integer','boolean','boolean','boolean','boolean','text']);
SELECT has_function('report__general_balance',ARRAY['date','date']);
SELECT has_function('report__gl',ARRAY['text','text','character','text','text','text','date','date','boolean','numeric','numeric','integer[]']);
SELECT has_function('report__gl',ARRAY['text','text','character','text','text','text','date','date','boolean','boolean','numeric','numeric','integer[]']);
SELECT has_function('report__incoming_cogs_line',ARRAY['date','date','text','text']);
SELECT has_function('report__invoice_aging_detail',ARRAY['integer','integer','integer','text','date','integer[]','boolean','text']);
SELECT has_function('report__invoice_aging_summary',ARRAY['integer','integer','integer','text','date','integer[]','boolean','text']);
Expand Down Expand Up @@ -50,6 +50,7 @@ COPY acc_trans(trans_id,chart_id,amount_bc,curr,amount_tc,transdate,approved,ent
'1899-12-31'::date, -- from_date
'1900-01-01'::date, -- to_date
NULL, -- approved
NULL, -- voided
NULL, NULL, -- from_amount, to_amount
NULL -- business_units
);
Expand All @@ -65,6 +66,7 @@ COPY acc_trans(trans_id,chart_id,amount_bc,curr,amount_tc,transdate,approved,ent
NULL, -- from_date
'1900-01-01'::date, -- to_date
NULL, -- approved
NULL, -- voided
NULL, NULL, -- from_amount, to_amount
NULL -- business_units
);
Expand All @@ -80,6 +82,7 @@ COPY acc_trans(trans_id,chart_id,amount_bc,curr,amount_tc,transdate,approved,ent
'1900-01-01'::date, -- from_date
'1900-01-02'::date, -- to_date
NULL, -- approved
NULL, -- voided
NULL, NULL, -- from_amount, to_amount
NULL -- business_units
);
Expand All @@ -95,6 +98,7 @@ COPY acc_trans(trans_id,chart_id,amount_bc,curr,amount_tc,transdate,approved,ent
'1900-01-02'::date, -- from_date
'1900-01-03'::date, -- to_date
NULL, -- approved
NULL, -- voided
NULL, NULL, -- from_amount, to_amount
NULL -- business_units
);
Expand Down

0 comments on commit 721ca32

Please sign in to comment.