Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c09536f4

Von Sven Schöling vor fast 15 Jahren hinzugefügt

  • ID c09536f461b4933a1813b2af5e17eb6214f7bf38
  • Vorgänger 66022cbd
  • Nachfolger 3cbc223a

Keine Tabs in SL/* Modulen.

Machen das Leben nur schwer für Leute die zufällig nicht die Tabbreite eingestellt haben wie der Autor.

Unterschiede anzeigen:

SL/CP.pm
164 164

  
165 165
  my $query =
166 166
     qq|SELECT a.id, a.invnumber, a.transdate, a.amount, a.paid, a.curr | .
167
	   qq|FROM $arap a | .
167
     qq|FROM $arap a | .
168 168
     qq|WHERE (a.${vc}_id = ?) AND (a.curr = ? $curr_null) AND NOT (a.amount = paid)| .
169
		 qq|ORDER BY a.id|;
169
     qq|ORDER BY a.id|;
170 170
  my $sth = prepare_execute_query($form, $dbh, $query,
171 171
                                  conv_i($form->{"${vc}_id"}),
172 172
                                  $form->{currency});
......
304 304
          qq|INSERT INTO acc_trans (trans_id, chart_id, transdate, amount, | .
305 305
          qq|                       cleared, fx_transaction) | .
306 306
          qq|VALUES (?, (SELECT id FROM chart WHERE accno = ?), ?, ?, ?, ?)|;
307
		    @values = (conv_i($form->{"id_$i"}), $paymentaccno,
307
        @values = (conv_i($form->{"id_$i"}), $paymentaccno,
308 308
                   conv_date($form->{datepaid}), ($amount * $ml * -1), '0',
309 309
                   '1');
310 310
        do_query($form, $dbh, $query, @values);
......
345 345

  
346 346
      # update AR/AP transaction
347 347
      $query = qq|UPDATE $arap SET $paid, datepaid = ? WHERE id = ?|;
348
		  @values = (conv_date($form->{datepaid}), conv_i($form->{"id_$i"}));
348
      @values = (conv_date($form->{datepaid}), conv_i($form->{"id_$i"}));
349 349
      do_query($form, $dbh, $query, @values);
350 350
      # saving the history
351 351
      $form->{id} = $form->{"id_$i"};

Auch abrufbar als: Unified diff