Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7aafc9d0

Von Bernd Bleßmann vor 8 Monaten hinzugefügt

  • ID 7aafc9d07175016bc636f7dc887f3616a17baa4d
  • Vorgänger 2bd4441c
  • Nachfolger 2209853f

Stornorechnungen: Druckvarianten …

- bei Stornorechnung nur Stornorechnung anbieten
- bei stornierter Rechnung kein Storno anbieten

Unterschiede anzeigen:

SL/Helper/PrintOptions.pm
70 70
    ($form->{type} eq 'purchase_quotation_intake') ? (
71 71
      opthash("purchase_quotation_intake", $form->{PD}{purchase_quotation_intake},  $locale->text('Purchase Quotation Intake')),
72 72
    ) : undef,
73
    ($form->{type} eq 'invoice') ? (
73
    ($form->{type} eq 'invoice' && $form->{storno} && $form->{storno_id}) ? (
74
      opthash("storno_invoice",      $form->{PD}{storno_invoice},      $locale->text('Storno Invoice')),
75
    ) : undef,
76
    ($form->{type} eq 'invoice' && !($form->{storno} && $form->{storno_id})) ? (
74 77
      opthash("invoice",             $form->{PD}{invoice},             $locale->text('Invoice')),
75 78
      opthash("proforma",            $form->{PD}{proforma},            $locale->text('Proforma Invoice')),
76 79
      opthash("invoice_copy",        $form->{PD}{invoice_copy},        $locale->text('Invoice Copy')),
77 80
    ) : undef,
78
    ($form->{type} eq 'invoice' && $form->{storno}) ? (
79
      opthash("storno_invoice",      $form->{PD}{storno_invoice},      $locale->text('Storno Invoice')),
80
    ) : undef,
81 81
    ($form->{type} eq 'invoice_for_advance_payment') ? (
82 82
      opthash("invoice_for_advance_payment", $form->{PD}{invoice_for_advance_payment},      $locale->text('Invoice for Advance Payment')),
83 83
    ) : undef,
bin/mozilla/io.pl
2170 2170
  my $print_form = Form->new('');
2171 2171
  $print_form->{printers}  = SL::DB::Manager::Printer->get_all_sorted;
2172 2172

  
2173
  $print_form->{$_} = $::form->{$_} for qw(type media printer_id storno formname groupitems);
2173
  $print_form->{$_} = $::form->{$_} for qw(type media printer_id storno storno_id formname groupitems);
2174 2174

  
2175 2175
  return SL::Helper::PrintOptions->get_print_options(
2176 2176
    form    => $print_form,

Auch abrufbar als: Unified diff