Revision a8787a29
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
| SL/IC.pm | ||
|---|---|---|
|   }
 | ||
|  | ||
|   my $placeholders = join ', ', ('?') x scalar(@part_ids);
 | ||
|   my $query        = qq|SELECT mm.parts_id, mm.model, mm.lastcost, v.name AS make
 | ||
|   my $query        = qq|SELECT mm.parts_id, mm.model, mm.part_description AS mm_part_description, mm.lastcost, v.name AS make
 | ||
|                         FROM makemodel mm
 | ||
|                         LEFT JOIN vendor v ON (mm.make = v.id)
 | ||
|                         WHERE mm.parts_id IN ($placeholders)|;
 | ||
| ... | ... | |
|   my %data    = selectall_as_map($form, $dbh, $query, 'id', \@columns, @part_ids);
 | ||
|  | ||
|   my %template_arrays;
 | ||
|   map { $template_arrays{$_} = [] } (qw(make model customer_make customer_model), @columns);
 | ||
|   map { $template_arrays{$_} = [] } (qw(make model mm_part_description customer_make customer_model), @columns);
 | ||
|  | ||
|   foreach my $i (1 .. $rowcount) {
 | ||
|     my $id = $form->{"${prefix}${i}"};
 | ||
| ... | ... | |
|  | ||
|     push @{ $template_arrays{make} },  [];
 | ||
|     push @{ $template_arrays{model} }, [];
 | ||
|     push @{ $template_arrays{mm_part_description} }, [];
 | ||
|  | ||
|     if ($makemodel{$id}) {
 | ||
|       foreach my $ref (@{ $makemodel{$id} }) {
 | ||
|         map { push @{ $template_arrays{$_}->[-1] }, $ref->{$_} } qw(make model);
 | ||
|         map { push @{ $template_arrays{$_}->[-1] }, $ref->{$_} } qw(make model mm_part_description);
 | ||
|       }
 | ||
|     }
 | ||
|  | ||
| templates/print/RB/request_quotation.tex | ||
|---|---|---|
|  | ||
|           <%if make%>
 | ||
|             <%foreach make%>
 | ||
|               \ifthenelse{\equal{<%make%>}{<%name%>}}{&& \artikelnummer: <%model%>\\}{}
 | ||
|               \ifthenelse{\equal{<%make%>}{<%name%>}}{&& \artikelnummer: <%model%>, \bezeichnung: <%mm_part_description%>\\}{}
 | ||
|             <%end foreach%>
 | ||
|           <%end if%>
 | ||
|  | ||
| templates/print/marei/request_quotation.tex | ||
|---|---|---|
|   <%if projectnumber%>\ExtraDescription{\projektnummer: <%projectnumber%>}<%end projectnumber%>%
 | ||
|   <%if make%>%
 | ||
|   <%foreach make%>%
 | ||
|   \Ifstr{<%make%>}{<%name%>}{\ExtraDescription{\artikelnummer: <%model%>}}{}
 | ||
|   \Ifstr{<%make%>}{<%name%>}{\ExtraDescription{\artikelnummer: <%model%>} \ExtraDescription{\bezeichnung: <%mm_part_description%>}}{}
 | ||
|     <%end foreach%>%
 | ||
|     <%end if%>%
 | ||
|     \tabularnewline
 | ||
Auch abrufbar als: Unified diff
Artikelbeschreibung bei Lieferantenartikelnummern: Druckvariable und Beispiel …
… in der Druckvorlage "Preisanfrage" (Marei und RB)