Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b067e974

Von Jan Büren vor etwa 10 Jahren hinzugefügt

  • ID b067e97477d44adb74212ddfb85282d2121e2467
  • Vorgänger 02022dc2
  • Nachfolger 3f556b78

redundante actions / orderitems delete in oe.pl gelöscht

nur einmal in sub poso alle orderitems_id löschen. ferner doppelte
dispatch actions entfernt

Unterschiede anzeigen:

bin/mozilla/oe.pl
1811 1811

  
1812 1812
  # reset
1813 1813
  map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued customer vendor creditlimit creditremaining discount tradediscount oldinvtotal delivered ordnumber);
1814
  delete $form->{"orderitems_id_$_"} for 1 .. $form->{"rowcount"};
1815 1814

  
1816 1815
  # if purchase_order was generated from sales_order, use  lastcost_$i as sellprice_$i
1817 1816
  # also reset discounts
......
2104 2103
  $main::lxdebug->leave_sub();
2105 2104
}
2106 2105
sub dispatcher {
2107
  foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order purchase_order quotation
2108
                         request_for_quotation sales_order sales_order save save_and_close save_as_new ship_to update)) {
2106
  foreach my $action (qw(delete delivery_order e_mail invoice print purchase_order quotation
2107
                         request_for_quotation sales_order save save_and_close save_as_new ship_to update)) {
2109 2108
    if ($::form->{"action_${action}"}) {
2110 2109
      call_sub($action);
2111 2110
      return;

Auch abrufbar als: Unified diff