Revision d53433f8
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
bin/mozilla/ap.pl | ||
---|---|---|
999 | 999 |
|
1000 | 1000 |
$::form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all_sorted; |
1001 | 1001 |
$::form->{ALL_TAXZONES} = SL::DB::Manager::TaxZone ->get_all_sorted; |
1002 |
$::form->{ALL_PAYMENT_TERMS} = SL::DB::Manager::PaymentTerm->get_all_sorted; |
|
1002 | 1003 |
|
1003 | 1004 |
# constants and subs for template |
1004 | 1005 |
$form->{vc_keys} = sub { "$_[0]->{name}--$_[0]->{id}" }; |
... | ... | |
1058 | 1059 |
my @hidden_variables = map { "l_${_}" } @columns; |
1059 | 1060 |
push @hidden_variables, "l_subtotal", qw(open closed vendor invnumber ordnumber transaction_description notes project_id |
1060 | 1061 |
transdatefrom transdateto duedatefrom duedateto datepaidfrom datepaidto |
1061 |
parts_partnumber parts_description department_id taxzone_id); |
|
1062 |
parts_partnumber parts_description department_id taxzone_id payment_id);
|
|
1062 | 1063 |
|
1063 | 1064 |
my $href = build_std_url('action=ap_transactions', grep { $form->{$_} } @hidden_variables); |
1064 | 1065 |
|
... | ... | |
1134 | 1135 |
push @options, $locale->text('Date Paid') . " " . $locale->text('to') . " " . $locale->date(\%myconfig, $form->{datepaidto}, 1) if ($form->{datepaidto}); |
1135 | 1136 |
push @options, $locale->text('Open') if ($form->{open}); |
1136 | 1137 |
push @options, $locale->text('Closed') if ($form->{closed}); |
1138 |
if ($form->{payment_id}) { |
|
1139 |
my $payment_term = SL::DB::Manager::PaymentTerm->find_by( id => $form->{payment_id} ); |
|
1140 |
push @options, $locale->text('Payment Term') . " : " . $payment_term->description; |
|
1141 |
} |
|
1137 | 1142 |
|
1138 | 1143 |
$report->set_options('top_info_text' => join("\n", @options), |
1139 | 1144 |
'output_format' => 'HTML', |
Auch abrufbar als: Unified diff
Rechnungsbericht VK und EK nach Zahlungsbedingung filtern können