Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d169764

Von Moritz Bunkus vor fast 15 Jahren hinzugefügt

  • ID 6d169764351ba6f5bbf2a90f9d7a260617ab4070
  • Vorgänger 37c67888
  • Nachfolger 2b7ababf

"Vertreter"-Feature in Kunden-/Lieferantenstammdaten wieder eingebaut

Unterschiede anzeigen:

SL/Form.pm
$additional_params->{"conf_lizenzen"} = $main::lizenzen;
$additional_params->{"conf_latex_templates"} = $main::latex;
$additional_params->{"conf_opendocument_templates"} = $main::opendocument_templates;
$additional_params->{"conf_vertreter"} = $main::vertreter;
if (%main::debug_options) {
map { $additional_params->{'DEBUG_' . uc($_)} = $main::debug_options{$_} } keys %main::debug_options;
......
my ($self, $dbh, $key) = @_;
$key = "all_business_types" unless ($key);
$self->{$key} =
selectall_hashref_query($self, $dbh, qq|SELECT * FROM business|);
my $options = ref $key eq 'HASH' ? $key : { key => $key };
$options->{key} ||= "all_business_types";
my $where = '';
if (exists $options->{salesman}) {
$where = 'WHERE ' . ($options->{salesman} ? '' : 'NOT ') . 'COALESCE(salesman)';
}
$self->{ $options->{key} } = selectall_hashref_query($self, $dbh, qq|SELECT * FROM business $where ORDER BY lower(description)|);
$main::lxdebug->leave_sub();
}
bin/mozilla/ct.pl
my %myconfig = %main::myconfig;
my $locale = $main::locale;
$form->get_lists("employees" => "ALL_EMPLOYEES",
"taxzones" => "ALL_TAXZONES");
$form->get_lists(employees => "ALL_EMPLOYEES",
taxzones => "ALL_TAXZONES",
business_types => { key => 'ALL_SALESMAN_BUSINESSES', salesman => 1 });
$form->get_pricegroup(\%myconfig, { all => 1 });
$form->{ALL_SALESMEN} = $form->{ALL_EMPLOYEES};
locale/de/all
'Report and misc. Preferences' => 'Sonstige Einstellungen',
'Report for' => 'Bericht f?r',
'Reports' => 'Berichte',
'Representative' => 'Vertreter',
'Reqdate' => 'Lieferdatum',
'Request for Quotation' => 'Anfrage',
'Request for Quotations' => 'Anfragen',
......
'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.',
'Type' => 'Typ',
'Type of Business' => 'Kunden-/Lieferantentyp',
'Type of Customer' => 'Kundentyp',
'Type of Vendor' => 'Lieferantentyp',
'USTVA' => 'USTVA',
'USTVA 2004' => 'USTVA 2004',
'USTVA 2005' => 'USTVA 2005',
......
'User migration complete' => 'Benutzermigration abgeschlossen',
'User name' => 'Benutzername',
'User saved!' => 'Benutzer gespeichert!',
'Username' => 'Benutzername',
'Users in<br>this group' => 'Benutzer in<br>dieser Gruppe',
'Users not in this group' => 'Benutzer nicht in dieser Gruppe',
'Ust-IDNr' => 'USt-IdNr.',
locale/de/dn
'quotation' => 'quotation',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'report_generator_back' => 'report_generator_back',
'report_generator_dispatcher' => 'report_generator_dispatcher',
'report_generator_do' => 'report_generator_do',
locale/de/do
'redo_stock_info' => 'redo_stock_info',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'report_generator_back' => 'report_generator_back',
'report_generator_dispatcher' => 'report_generator_dispatcher',
'report_generator_do' => 'report_generator_do',
locale/de/ic
'quotation' => 'quotation',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'report_generator_back' => 'report_generator_back',
'report_generator_dispatcher' => 'report_generator_dispatcher',
'report_generator_do' => 'report_generator_do',
locale/de/io
'quotation' => 'quotation',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'request_for_quotation' => 'request_for_quotation',
'retrieve_partunits' => 'retrieve_partunits',
'sales_invoice' => 'sales_invoice',
locale/de/ir
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_draft' => 'remove_draft',
'remove_emptied_rows' => 'remove_emptied_rows',
'request_for_quotation' => 'request_for_quotation',
'retrieve_partunits' => 'retrieve_partunits',
'sales_invoice' => 'sales_invoice',
locale/de/is
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_draft' => 'remove_draft',
'remove_emptied_rows' => 'remove_emptied_rows',
'request_for_quotation' => 'request_for_quotation',
'retrieve_partunits' => 'retrieve_partunits',
'sales_invoice' => 'sales_invoice',
locale/de/login
'redo_stock_info' => 'redo_stock_info',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'report' => 'report',
'report_for_todo_list' => 'report_for_todo_list',
'report_generator_back' => 'report_generator_back',
locale/de/oe
'redo_stock_info' => 'redo_stock_info',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'report_for_todo_list' => 'report_for_todo_list',
'report_generator_back' => 'report_generator_back',
'report_generator_dispatcher' => 'report_generator_dispatcher',
locale/de/todo
'redo_stock_info' => 'redo_stock_info',
'reformat_numbers' => 'reformat_numbers',
'relink_accounts' => 'relink_accounts',
'remove_emptied_rows' => 'remove_emptied_rows',
'report' => 'report',
'report_for_todo_list' => 'report_for_todo_list',
'report_generator_back' => 'report_generator_back',
templates/webpages/ct/form_header_de.html
[% USE HTML %][% USE LxERP %]<body onLoad="fokus()">
[% USE HTML %][% USE LxERP %]
<body onLoad="fokus()">
<div class="listtop">[% title %]</div>
......
<table width="100%">
<tr height="5"></tr>
[% IF conf_vertreter %]
<tr>
<th align="right">[% IF is_customer %]Kundentyp[%- ELSE %]Lieferantentyp[%- END %]</th>
<td>
[%- INCLUDE generic/multibox.html
name = 'business',
DATA = all_business,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
</tr>
<tr>
<th align="right">Vertreter</th>
<td>
[%- INCLUDE generic/multibox.html
name = 'salesman_id',
DATA = ALL_SALESMAN_BUSINESSES,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
</tr>
[%- END %]
<tr>
[%- IF is_customer %]
<th align="right" nowrap>Kundennummer</th>
......
<td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
</tr>
[%- IF conf_vertreter %]
<tr>
<th align="right">Benutzername</th>
<td><input name="username" maxlength="50" value="[% HTML.escape(username) %]"></td>
<th align="right">Passwort</th>
<td><input name="user_password" value="[% HTML.escape(user_password) %]"></td>
</tr>
[%- END %]
<tr>
<th align="right">Kunden-/Lieferantentyp</th>
<td>
[%- INCLUDE generic/multibox.html
name = 'business',
DATA = all_business,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
[% UNLESS conf_vertreter %]
<th align="right">[% IF is_customer %]Kundentyp[% ELSE %]Lieferantentyp[%- END %]</th>
<td>
[%- INCLUDE generic/multibox.html
name = 'business',
DATA = all_business,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
[%- END %]
<th align="right">Sprache</th>
<td>
[%- INCLUDE generic/multibox.html
......
label_key = 'description',
-%]
</td>
[%- IF is_customer %]
[%- IF is_customer && !use_vertreter %]
<th align="right">Verk?ufer/in</th>
<td>
[%- INCLUDE generic/multibox.html
templates/webpages/ct/form_header_master.html
[% USE HTML %][% USE LxERP %]<body onLoad="fokus()">
[% USE HTML %][% USE LxERP %]
<body onLoad="fokus()">
<div class="listtop">[% title %]</div>
......
<table width="100%">
<tr height="5"></tr>
[% IF conf_vertreter %]
<tr>
<th align="right">[% IF is_customer %]<translate>Type of Customer</translate>[%- ELSE %]<translate>Type of Vendor</translate>[%- END %]</th>
<td>
[%- INCLUDE generic/multibox.html
name = 'business',
DATA = all_business,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
</tr>
<tr>
<th align="right"><translate>Representative</translate></th>
<td>
[%- INCLUDE generic/multibox.html
name = 'salesman_id',
DATA = ALL_SALESMAN_BUSINESSES,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
</tr>
[%- END %]
<tr>
[%- IF is_customer %]
<th align="right" nowrap><translate>Customer Number</translate></th>
......
<td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
</tr>
[%- IF conf_vertreter %]
<tr>
<th align="right"><translate>Username</translate></th>
<td><input name="username" maxlength="50" value="[% HTML.escape(username) %]"></td>
<th align="right"><translate>Password</translate></th>
<td><input name="user_password" value="[% HTML.escape(user_password) %]"></td>
</tr>
[%- END %]
<tr>
<th align="right"><translate>Type of Business</translate></th>
<td>
[%- INCLUDE generic/multibox.html
name = 'business',
DATA = all_business,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
[% UNLESS conf_vertreter %]
<th align="right">[% IF is_customer %]<translate>Type of Customer</translate>[% ELSE %]<translate>Type of Vendor</translate>[%- END %]</th>
<td>
[%- INCLUDE generic/multibox.html
name = 'business',
DATA = all_business,
show_empty = 1,
id_key = 'id',
label_key = 'description',
-%]
</td>
[%- END %]
<th align="right"><translate>Language</translate></th>
<td>
[%- INCLUDE generic/multibox.html
......
label_key = 'description',
-%]
</td>
[%- IF is_customer %]
[%- IF is_customer && !use_vertreter %]
<th align="right"><translate>Salesman</translate></th>
<td>
[%- INCLUDE generic/multibox.html

Auch abrufbar als: Unified diff