Revision 864977c6
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
50 | 50 |
|
51 | 51 |
use SL::CT; |
52 | 52 |
use SL::CVar; |
53 |
use SL::DB::Business; |
|
53 | 54 |
use SL::ReportGenerator; |
54 | 55 |
|
55 | 56 |
require "bin/mozilla/common.pl"; |
... | ... | |
141 | 142 |
push @options, $locale->text('Billing/shipping address (zipcode)') . " : $form->{zipcode}" if $form->{addr_zipcode}; |
142 | 143 |
push @options, $locale->text('Billing/shipping address (street)') . " : $form->{street}" if $form->{addr_street}; |
143 | 144 |
|
145 |
if ($form->{business_id}) { |
|
146 |
my $business = SL::DB::Manager::Business->find_by(id => $form->{business_id}); |
|
147 |
if ($business) { |
|
148 |
my $label = $form->{IS_CUSTOMER} ? $::locale->text('Customer type') : $::locale->text('Vendor type'); |
|
149 |
push @options, $label . " : " . $business->description; |
|
150 |
} |
|
151 |
} |
|
152 |
|
|
144 | 153 |
my @columns = ( |
145 | 154 |
'id', 'name', "$form->{db}number", 'contact', 'phone', |
146 | 155 |
'fax', 'email', 'taxnumber', 'street', 'zipcode' , 'city', |
Auch abrufbar als: Unified diff
Kunden-/Lieferantensuche: Eingestellter Filter nach Kunden-/Lieferantentyp in Kopftexte anzeigen
Teil eines Fixes für Bug 1552.