Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 43b58592

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID 43b585927cf026686116dc6d1d68ca13e1ee02aa
  • Vorgänger 59982448
  • Nachfolger f06df9e1

Bei rekursivem Speichern von Artikeln die richtige Zeile editieren.

Mechanismus ist sehr unschön, das muss nochmal besser gemacht werden.
behebt #1956

Unterschiede anzeigen:

bin/mozilla/ic.pl
1694 1694
    $form->{"qty_$i"}    = $form->format_amount(\%myconfig, $form->{"qty_$i"});
1695 1695
    $linetotal           = $form->format_amount(\%myconfig, $linetotal, 2);
1696 1696
    $line_purchase_price = $form->format_amount(\%myconfig, $line_purchase_price, 2);
1697
    $href                = qq|$form->{script}?action=edit&id=$form->{"id_$i"}&rowcount=$i&previousform=$previousform|;
1697
    $href                = build_std_url("action=edit", qq|id=$form->{"id_$i"}|, "rowcount=$numrows", "currow=$i", "previousform=$previousform");
1698 1698
    map { $row{$_}{data} = "" } qw(qty unit partnumber description bom partsgroup runningnumber);
1699 1699

  
1700 1700
    # last row
......
1714 1714
        $row{bom}{data}           = $form->{"bom_$i"} ? "x" : " ";
1715 1715
        $row{qty}{align}          = 'right';
1716 1716
      } else {
1717
        $row{partnumber}{data}    = qq|<a href=$href>$form->{"partnumber_$i"}</a>|;
1717
        $row{partnumber}{data}    = qq|$form->{"partnumber_$i"}|;
1718
        $row{partnumber}{link}     = $href;
1718 1719
        $row{qty}{data}           = qq|<input name="qty_$i" size=5 value="$form->{"qty_$i"}">|;
1719 1720
        $row{runningnumber}{data} = qq|<input name="runningnumber_$i" size=3 value="$i">|;
1720 1721
        $row{bom}{data}   = sprintf qq|<input name="bom_$i" type=checkbox class=checkbox value=1 %s>|,
......
1875 1876
        qw(weight listprice sellprice rop);
1876 1877

  
1877 1878
      $form->{assembly_rows}--;
1878
      $i = $form->{assembly_rows};
1879
      if ($newform{currow}) {
1880
        $i = $newform{currow};
1881
      } else {
1882
        $i = $form->{assembly_rows};
1883
      }
1879 1884
      $form->{"qty_$i"} = 1 unless ($form->{"qty_$i"});
1880 1885

  
1881 1886
      $form->{sellprice} -= $form->{"sellprice_$i"} * $form->{"qty_$i"};
templates/webpages/ic/assembly_row.html
1 1
[%- USE T8 %]
2 2
[%- USE LxERP %]
3 3
[%- USE HTML %]
4
[%- USE L %]
4 5
  <tr class=listheading>
5 6
   <th class=listheading>[% 'Individual Items' | $T8 %]</th>
6 7
  </tr>
......
20 21
  [%- IF rcol.escape %]
21 22
      <td[% ' align=' _ rcol.align IF rcol.align %]>[%- HTML.escape(rcol.data) %]</td>
22 23
  [%- ELSE %]
23
      <td[% ' align=' _ rcol.align IF rcol.align %]>[%- rcol.data %]</td>
24
      <td[% ' align=' _ rcol.align IF rcol.align %]>[%- IF rcol.link %][% L.link(rcol.link, rcol.data) %][% ELSE %][% rcol.data %][% END %]</td>
24 25
  [%- END %]
25 26
 [%- END %]
26 27
 [%- FOREACH hidden = row.hiddens %]
templates/webpages/ic/form_header.html
22 22
  <input name="eur" type="hidden" value="[% HTML.escape(eur) %]">
23 23
  <input name="language_values" type="hidden" value="[% HTML.escape(language_values) %]">
24 24
  <input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
25
  <input name="currow" type="hidden" value="[% HTML.escape(currow) %]">
25 26

  
26 27
  <ul id="maintab" class="shadetabs">
27 28
   <li class="selected"><a href="#" rel="master_data">[% 'Basic Data' | $T8 %]</a></li>

Auch abrufbar als: Unified diff