Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a5389b65

Von Moritz Bunkus vor fast 7 Jahren hinzugefügt

  • ID a5389b65f79aa4a9dfd852b88dc10d9bb12fe118
  • Vorgänger 4bfb9e7b
  • Nachfolger e7e7b7c6

Aufträge speichern: Warnung bzgl. existierender wiederkehrender Rechnungen gefixt

Behebt #341.

Unterschiede anzeigen:

bin/mozilla/oe.pl
297 297
  my $form   = $::form;
298 298

  
299 299
  my $has_active_periodic_invoice;
300
  if ($params{obj}) {
300
  if ($params{oe_obj}) {
301 301
    $has_active_periodic_invoice =
302
         $params{obj}->is_type('sales_order')
303
      && $params{obj}->periodic_invoices_config
304
      && $params{obj}->periodic_invoices_config->active
305
      && (   !$params{obj}->periodic_invoices_config->end_date
306
          || ($params{obj}->periodic_invoices_config->end_date > DateTime->today_local))
307
      && $params{obj}->periodic_invoices_config->get_previous_billed_period_start_date;
302
         $params{oe_obj}->is_type('sales_order')
303
      && $params{oe_obj}->periodic_invoices_config
304
      && $params{oe_obj}->periodic_invoices_config->active
305
      && (   !$params{oe_obj}->periodic_invoices_config->end_date
306
          || ($params{oe_obj}->periodic_invoices_config->end_date > DateTime->today_local))
307
      && $params{oe_obj}->periodic_invoices_config->get_previous_billed_period_start_date;
308 308
  }
309 309

  
310 310
  my $allow_invoice      = $params{is_req_quo}
......
622 622
    is_pur_ord   => scalar($form->{type} =~ /purchase_order$/),
623 623
  );
624 624

  
625
  setup_oe_action_bar(%type_check_vars);
625
  setup_oe_action_bar(
626
    %type_check_vars,
627
    oe_obj => $TMPL_VAR->{oe_obj},
628
    vc_obj => $TMPL_VAR->{vc_obj},
629
  );
626 630

  
627 631
  $form->header;
628 632
  if ($form->{CFDD_shipto} && $form->{CFDD_shipto_id} ) {

Auch abrufbar als: Unified diff