Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7743b3ab

Von Philip Reetz vor fast 18 Jahren hinzugefügt

  • ID 7743b3ab885b485ae317338c55da427b62ab457d
  • Vorgänger 8f98fc19
  • Nachfolger e53cae00

eMail wird nur angekreuzt wenn email in der Konfiguration gesetzt ist

Unterschiede anzeigen:

SL/DN.pm
274 274

  
275 275
  $paymentdate = ($form->{paymentuntil}) ? "'$form->{paymentuntil}'" : current_date;
276 276

  
277
  $query = qq|SELECT a.id, a.ordnumber, a.transdate, a.invnumber,a.amount, ct.name AS customername, a.customer_id, a.duedate,da.fee AS old_fee, dnn.fee as fee, dn.dunning_description, da.transdate AS dunning_date, da.duedate AS dunning_duedate, a.duedate + dnn.terms - current_date AS nextlevel, $paymentdate - a.duedate AS pastdue, dn.dunning_level, current_date + dnn.payment_terms AS next_duedate, dnn.dunning_description AS next_dunning_description, dnn.id AS next_dunning_id, dnn.interest AS interest_rate, dnn.terms
277
  $query = qq|SELECT a.id, a.ordnumber, a.transdate, a.invnumber,a.amount, ct.name AS customername, a.customer_id, a.duedate,da.fee AS old_fee,dnn.active,dnn.email, dnn.fee as fee, dn.dunning_description, da.transdate AS dunning_date, da.duedate AS dunning_duedate, a.duedate + dnn.terms - current_date AS nextlevel, $paymentdate - a.duedate AS pastdue, dn.dunning_level, current_date + dnn.payment_terms AS next_duedate, dnn.dunning_description AS next_dunning_description, dnn.id AS next_dunning_id, dnn.interest AS interest_rate, dnn.terms
278 278
	         FROM dunning_config dnn, ar a
279 279
	         JOIN customer ct ON (a.customer_id = ct.id)
280 280
		 LEFT JOIN dunning_config dn ON (dn.id = a.dunning_id)
281
                 LEFT JOIN dunning da ON (da.trans_id=a.id AND dunning_config.dunning_level=da.dunning_level)
281
                 LEFT JOIN dunning da ON (da.trans_id=a.id AND dn.dunning_level=da.dunning_level)
282 282
                 $where|;
283 283

  
284 284
  my $sth = $dbh->prepare($query);

Auch abrufbar als: Unified diff