Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c2796317

Von Bernd Bleßmann vor mehr als 11 Jahren hinzugefügt

  • ID c2796317373c0c0006ce9b99d1aad4bad21a3631
  • Vorgänger fc55beb4
  • Nachfolger a3cf1d23

Kosmetik: Leerzeichen am Zeilenende weg.

Unterschiede anzeigen:

SL/BackgroundJob/SelfTest/Transactions.pm
309 309
    LEFT JOIN vendor v on (v.id = ap.vendor_id)
310 310
    WHERE storno_id is null AND storno is true AND ap.id not in (SELECT storno_id FROM ap WHERE storno_id is not null AND storno is true);
311 311
  |;
312
 
312

  
313 313
  my $stornos_ohne_partner =  selectall_hashref_query($::form, $self->dbh, $query);
314 314

  
315 315
  $self->tester->ok(@$stornos_ohne_partner == 0, 'Es sollte keine Stornos ohne Partner geben');
SL/CT.pm
639 639
  my $sortorder;
640 640
  if ( $join_records ) {
641 641
    # in UNION case order by hash key, e.g. salesman
642
    # the UNION created an implicit select around the result 
642
    # the UNION created an implicit select around the result
643 643
    $sortorder = $allowed_sort_columns{$form->{sort}} ? $form->{sort} : "name";
644 644
  } else {
645 645
    # in not UNION case order by hash value, e.g. e.name
......
812 812
  }
813 813

  
814 814
  $query .= qq| ORDER BY $sortorder|;
815
  
815

  
816 816
  $form->{CT} = selectall_hashref_query($form, $dbh, $query, @values);
817 817

  
818 818
  $main::lxdebug->leave_sub();
SL/DATEV.pm
465 465
      next;
466 466
    }
467 467

  
468
    # determine at which array position the reference value (called absumsatz) is 
468
    # determine at which array position the reference value (called absumsatz) is
469 469
    # and which amount it has
470 470

  
471 471
    for my $j (0 .. (scalar(@{$trans}) - 1)) {
472
      
472

  
473 473
      # Three cases:
474 474
      # 1: gl transaction (Dialogbuchung), invoice is false, no double split booking allowed
475 475

  
SL/GL.pm
280 280
    push(@arvalues, '%' . $form->{description} . '%');
281 281
    push(@apvalues, '%' . $form->{description} . '%');
282 282
  }
283
 
283

  
284 284
  if ($form->{employee} =~ /--/) {
285 285
    ($form->{employee_id},$form->{employee_name}) = split(/--/,$form->{employee});
286 286
  #if ($form->{employee_id}) {
......
366 366
    'source'          => { 'gl' => 'ac.source',     'arap' => 'ac.source',   },
367 367
    'description'     => { 'gl' => 'g.description', 'arap' => 'ct.name',     },
368 368
    );
369
  
369

  
370 370
  # sortdir = sort direction (ascending or descending)
371 371
  my $sortdir   = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
372 372
  my $sortkey   = $sort_columns{$form->{sort}} ? $form->{sort} : $form->{datesort};  # default used to be transdate
SL/VK.pm
52 52

  
53 53
  my $query =
54 54
    qq|SELECT ct.id as customerid, ct.name as customername,ct.customernumber,ct.country,ar.invnumber,ar.id,ar.transdate,p.partnumber,pg.partsgroup,i.parts_id,i.qty,i.price_factor,i.discount,i.description as description,i.lastcost,i.sellprice,i.fxsellprice,i.marge_total,i.marge_percent,i.unit,b.description as business,e.name as employee,e2.name as salesman, to_char(ar.transdate,'Month') as month, to_char(ar.transdate, 'YYYYMM') as nummonth, p.unit as parts_unit, p.weight | .
55
    qq|FROM invoice i | .  
55
    qq|FROM invoice i | .
56 56
    qq|JOIN ar on (i.trans_id = ar.id) | .
57 57
    qq|JOIN parts p on (i.parts_id = p.id) | .
58 58
    qq|LEFT JOIN partsgroup pg on (p.partsgroup_id = pg.id) | .
......
157 157
    push(@values, $form->{"project_id"}, $form->{"project_id"});
158 158
  }
159 159
  if ($form->{business_id}) {
160
    $where .= qq| AND ct.business_id = ? |; 
160
    $where .= qq| AND ct.business_id = ? |;
161 161
    push(@values, $form->{"business_id"});
162 162
  }
163 163

  
......
179 179
    $where .= qq| AND ($cvar_where_ic)|;
180 180
    push @values, @cvar_values_ic;
181 181
  }
182
  
182

  
183 183
  $query .= " WHERE $where ORDER BY $sortorder "; # LIMIT 5000";
184 184

  
185 185
  my @result = selectall_hashref_query($form, $dbh, $query, @values);

Auch abrufbar als: Unified diff