$dpt_join = qq| JOIN department d ON (a.department_id = d.id) |;
$where .= qq| AND (a.department_id = | . conv_i($department_id, 'NULL') . qq|)|;
}
+ my $review_of_aging_list;
+ if ($form->{review_of_aging_list}) {
+ if ($form->{review_of_aging_list} =~ m "-"){
+ my @period = split(/-/, $form->{review_of_aging_list});
+ $review_of_aging_list = " AND $period[0] < date_part('days', now() - duedate)
+ AND date_part('days', now() - duedate) < $period[1]";
+ } else {
+ $form->{review_of_aging_list} =~ s/[^0-9]//g;
+ $review_of_aging_list = " AND $form->{review_of_aging_list} < date_part('days', now() - duedate)";
+ }
+ }
my $q_details = qq|
- -- between 0-30 days
SELECT ${ct}.id AS ctid, ${ct}.name,
street, zipcode, city, country, contact, email,
AND (${arap}.${ct}_id = ${ct}.id)
AND (${ct}.id = ?)
AND (transdate <= (date $todate) $fromwhere )
-
+ $review_of_aging_list
ORDER BY ctid, transdate, invnumber |;
my $sth_details = prepare_query($form, $dbh, $q_details);
<input type=hidden name=title value="$form->{title}">
-<table width=100%>
+<table width=100% border="0">
<tr>
<th class=listtop>$form->{title}</th>
</tr>
<tr height="5"></tr>
<tr>
<td>
- <table>
+ <table border="0">
$department
|;
<th align=right>| . $locale->text($label) . qq|</th>
<td>$vc</td>
</tr>
+ <tr>
+ <td>| . $locale->text('Review of Aging list') . qq|</td>
+ <td><select name="review_of_aging_list">
+ <option></option>
+ <option>0-30</option>
+ <option>30-60</option>
+ <option>60-90</option>
+ <option>90-120</option>
+ <option>> 120</option>
+ </select>
+ </td>
+ </tr>
<tr>
<td align=left colspan=4>| . $locale->text('From') . qq|
$button1
befinden anzuzeigen (s.a.: doc/excel_templates.txt).
- FiBu -> Bericht um Suchfeld Kontonummer erweitert
- Ansprechpartner für abweichende Lieferadresse, um das Attribut Geschlecht erweitert
+ - FiBu -> Bericht -> Offene Forderung | Offene Verbindlichkeiten um Altersstrukturliste (30, 60, 90, 120) erweitert
API Änderungen:
'Revenue Account' => 'Erlöskonto',
'Revenues EU with UStId' => 'Erlöse EU m. UStId',
'Revenues EU without UStId' => 'Erlöse EU o. UStId',
+ 'Review of Aging list' => 'Altersstrukturliste',
'Right' => 'Rechts',
'SAVED' => 'Gespeichert',
'SAVED FOR DUNNING' => 'Gespeichert',