Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 833f083e

Von Jan Büren vor mehr als 9 Jahren hinzugefügt

  • ID 833f083eae2a4547c49f8f92a2fdca6ba4dfe5f4
  • Vorgänger c4504ef1
  • Nachfolger 3171c378

Konfigurierbares Angebotsgültigkeits-Intervall hinzugefügt
Standardmässig ist ein Verkaufsangebot bis zum nächsten Werktag gültig.
Dieses Intervall wird dann noch hinzugerechnet, bspw. nächster Werktag plus 14, 28 etc.
Falls das Intervall nicht gesetzt oder wir nicht den Typ sales_quotation haben, passiert nichts.
Der Datentyp ist Integer, Tippfehler werden bisher nur dort abgefangen (Wird wahrscheinlich
nur einmalig von einem Kunden gesetzt).

Unterschiede anzeigen:

bin/mozilla/oe.pl
240 240
  # get customer/vendor
241 241
  $form->all_vc(\%myconfig, $form->{vc}, ($form->{vc} eq 'customer') ? "AR" : "AP");
242 242

  
243
  # retrieve order/quotation
243
  # retrieve order/quotation and webdav config
244 244
  $form->{webdav}   = $::instance_conf->get_webdav;
245 245

  
246 246
  my $editing = $form->{id};
......
1629 1629
      my $wday         = (localtime(time))[6];
1630 1630
      my $next_workday = $wday == 5 ? 3 : $wday == 6 ? 2 : 1;
1631 1631

  
1632
      # if we have a client configured interval for sales quotation, we add this
1633
      $next_workday   += $::instance_conf->get_reqdate_interval if ($::instance_conf->get_reqdate_interval &&
1634
                                                                    $form->{type} eq 'sales_quotation'       );
1635

  
1632 1636
      my $query = 'SELECT
1633 1637
                     date(current_date + interval \''. $next_workday .' days\') AS reqdate,
1634 1638
                     date(current_date) AS transdate';

Auch abrufbar als: Unified diff