Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ee82a6ce

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

  • ID ee82a6ce45291872bfb41d178352b61a9b9be957
  • Vorgänger 245b0322
  • Nachfolger 6c1536aa

Und der eigentliche Loeschmechanismus.

Loeschen in diesem Fall heisst den Eintrag verwaisen, d.h. der Eintrag ist noch im System, aber keinem Kunden zugeordnet.

Unterschiede anzeigen:

SL/CT.pm
986 986
  $main::lxdebug->leave_sub();
987 987
}
988 988

  
989
sub delete_shipto {
990
  $main::lxdebug->enter_sub();
991

  
992
  my $self      = shift;
993
  my $shipto_id = shift;
994

  
995
  my $form      = $main::form;
996
  my %myconfig  = %main::myconfig;
997
  my $dbh       = $form->get_standard_dbh(\%myconfig);
998

  
999
  do_query($form, $dbh, qq|UPDATE shipto SET trans_id = NULL WHERE shipto_id = ?|, $shipto_id);
1000

  
1001
  $dbh->commit();
1002

  
1003
  $main::lxdebug->leave_sub();
1004
}
1005

  
989 1006
1;
bin/mozilla/ct.pl
594 594
  $lxdebug->leave_sub();
595 595
}
596 596

  
597
sub delete_shipto {
598
  $main::lxdebug->enter_sub();
599

  
600
  $auth->assert('customer_vendor_edit');
601

  
602
  CT->delete_shipto($form->{shipto_id});
603

  
604
  @$form{ grep /^shipto/, keys %$form } = undef;
605

  
606
  display();
607

  
608
  $main::lxdebug->leave_sub();
609
}
610

  
597 611
sub continue { call_sub($form->{nextsub}); }
locale/de/all
438 438
  'Delete'                      => 'L?schen',
439 439
  'Delete Account'              => 'Konto l?schen',
440 440
  'Delete Dataset'              => 'Datenbank l?schen',
441
  'Delete Shipto'               => 'Lieferadresse löschen',
441
  'Delete Shipto'               => 'Lieferadresse l?schen',
442 442
  'Delete delivery order'       => 'Lieferschein löschen',
443 443
  'Delete drafts'               => 'Entw?rfe l?schen',
444 444
  'Delete group'                => 'Gruppe löschen',
locale/de/ct
197 197
  'continue'                    => 'continue',
198 198
  'cov_selection_internal'      => 'cov_selection_internal',
199 199
  'delete'                      => 'delete',
200
  'delete_shipto'               => 'delete_shipto',
200 201
  'delivery_customer_selection' => 'delivery_customer_selection',
201 202
  'display'                     => 'display',
202 203
  'edit'                        => 'edit',
......
235 236
  'erfassen'                    => 'add',
236 237
  'weiter'                      => 'continue',
237 238
  'l?schen'                     => 'delete',
238
  'lieferadresse_löschen'  => 'delete_shipto',
239
  'lieferadresse_l?schen'       => 'delete_shipto',
239 240
  'neue_ware'                   => 'new_part',
240 241
  'speichern'                   => 'save',
241 242
  'speichern_und_debitorenbuchung_erfassen' => 'save_and_ar_transaction',
templates/webpages/ct/form_header_de.html
302 302
     </tr>
303 303
    </table>
304 304

  
305
    <input type="submit" id="delete_shipto" name="delete_shipto" value="Lieferadresse l&ouml;schen" disabled>
305
    <input type="submit" id="delete_shipto" name="action" value="Lieferadresse l?schen" disabled>
306 306
    <br style="clear: left" />
307 307
   </div>
308 308

  
templates/webpages/ct/form_header_master.html
302 302
     </tr>
303 303
    </table>
304 304

  
305
    <input type="submit" id="delete_shipto" name="delete_shipto" value="<translate>Delete Shipto</translate>" disabled>
305
    <input type="submit" id="delete_shipto" name="action" value="<translate>Delete Shipto</translate>" disabled>
306 306
    <br style="clear: left" />
307 307
   </div>
308 308

  

Auch abrufbar als: Unified diff