Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed0754c2

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

  • ID ed0754c2f82cab2e24100107b534692d5455b02d
  • Vorgänger 16583fc6
  • Nachfolger cbbe00cc

Mahnungskonfiguration Ausdruck der Originalrechnung konfigurierbar

Unterschiede anzeigen:

SL/DN.pm
111 111
                 $form->{"template_$i"}, $form->{"fee_$i"}, $form->{"interest_rate_$i"},
112 112
                 $form->{"active_$i"} ? 't' : 'f', $form->{"auto_$i"} ? 't' : 'f', $form->{"email_$i"} ? 't' : 'f',
113 113
                 $form->{"email_attachment_$i"} ? 't' : 'f', conv_i($form->{"payment_terms_$i"}), conv_i($form->{"terms_$i"}),
114
                 $form->{"create_invoices_for_fees_$i"} ? 't' : 'f');
114
                 $form->{"create_invoices_for_fees_$i"} ? 't' : 'f',
115
                 $form->{"print_original_invoice_$i"} ? 't' : 'f');
115 116
      if ($form->{"id_$i"}) {
116 117
        $query =
117 118
          qq|UPDATE dunning_config SET
......
120 121
               template = ?, fee = ?, interest_rate = ?,
121 122
               active = ?, auto = ?, email = ?,
122 123
               email_attachment = ?, payment_terms = ?, terms = ?,
123
               create_invoices_for_fees = ?
124
               create_invoices_for_fees = ?,
125
               print_original_invoice = ?
124 126
             WHERE id = ?|;
125 127
        push(@values, conv_i($form->{"id_$i"}));
126 128
      } else {
......
128 130
          qq|INSERT INTO dunning_config
129 131
               (dunning_level, dunning_description, email_subject, email_body,
130 132
                template, fee, interest_rate, active, auto, email,
131
                email_attachment, payment_terms, terms, create_invoices_for_fees)
132
             VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|;
133
                email_attachment, payment_terms, terms, create_invoices_for_fees,
134
                print_original_invoice)
135
             VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)|;
133 136
      }
134 137
      do_query($form, $dbh, $query, @values);
135 138
    }
......
597 600

  
598 601
         nextcfg.dunning_description AS next_dunning_description,
599 602
         nextcfg.id AS next_dunning_config_id,
600
         nextcfg.terms, nextcfg.active, nextcfg.email
603
         nextcfg.terms, nextcfg.active, nextcfg.email, nextcfg.print_original_invoice
601 604

  
602 605
       FROM ar a
603 606

  

Auch abrufbar als: Unified diff