Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bc9c4ed3

Von Sven Schöling vor mehr als 15 Jahren hinzugefügt

  • ID bc9c4ed3ae02db0257cbff39ec1585aecdec53fd
  • Vorgänger ec2e4394
  • Nachfolger b60e2ebf

Lieferantennummer/Kundennummer in Kunden/Lieferantenberichten ersetzt durch schlicht "Nummer".
Kontext ist klar, und spart Bildschirmplatz.

Vorgeschlagen in Bug 1007.

Unterschiede anzeigen:

bin/mozilla/ct.pl
149 149

  
150 150
  my %column_defs = (
151 151
    'id'                => { 'text' => $locale->text('ID'), },
152
    "$form->{db}number" => { 'text' => $form->{IS_CUSTOMER} ? $locale->text('Customer Number') : $locale->text('Vendor Number'), },
152
    "$form->{db}number" => { 'text' => $locale->text('Number'), },
153 153
    'name'              => { 'text' => $locale->text('Name'), },
154 154
    'contact'           => { 'text' => $locale->text('Contact'), },
155 155
    'phone'             => { 'text' => $locale->text('Phone'), },
......
252 252
  # show history button
253 253
  $form->{javascript} = qq|<script type=text/javascript src=js/show_history.js></script>|;
254 254
  #/show hhistory button
255
  
255

  
256 256
  CT->get_tuple(\%myconfig, \%$form);
257 257
  CT->populate_drop_down_boxes(\%myconfig, \%$form);
258 258

  
......
291 291
  unshift @{ $form->{SHIPTO} },   +{ shipto_id => '0', shiptoname => '' }, +{ shipto_id => '0', shiptoname => 'Alle' };
292 292
  unshift @{ $form->{CONTACTS} }, +{ cp_id     => '0', cp_name => $locale->text('New contact') };
293 293

  
294
  $form->{title} = $form->{title_save} 
294
  $form->{title} = $form->{title_save}
295 295
                || $locale->text("$form->{title} " . ucfirst $form->{db}) . ($form->{title} eq "Edit" ? " $form->{name}" : '');
296 296

  
297 297
  CT->query_titles_and_greetings(\%myconfig, \%$form);
......
332 332
#  	$form->save_history($form->dbconnect(\%myconfig));
333 333
#  }
334 334
#  # /saving the history
335
  
335

  
336 336
  $form->isblank("name", $locale->text("Name missing!"));
337 337
  if ($form->{"db"} eq "customer") {
338 338
    CT->save_customer(\%myconfig, \%$form);
......
545 545
  	$form->{addition} = "DELETED";
546 546
  	$form->save_history($form->dbconnect(\%myconfig));
547 547
  }
548
  # /saving the history 
548
  # /saving the history
549 549
  $form->redirect($locale->text($msg));
550 550

  
551 551
  $msg = "Cannot delete $form->{db}";
......
580 580
  $auth->assert('customer_vendor_edit');
581 581

  
582 582
  CT->get_contact(\%myconfig, \%$form);
583
  print $form->ajax_response_header(), join '__pjx__', map $form->{"cp_$_"}, 
583
  print $form->ajax_response_header(), join '__pjx__', map $form->{"cp_$_"},
584 584
    qw(name greeting title givenname phone1 phone2 email abteilung fax mobile1 mobile2 satphone satfax project privatphone privatemail birthday used);
585 585
  $lxdebug->leave_sub();
586 586

  

Auch abrufbar als: Unified diff