Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a5680eac

Von Tamino Steinert vor 12 Monaten hinzugefügt

  • ID a5680eac9cb93cfb5d51bb474e54fc585693434d
  • Vorgänger 70cfe98c
  • Nachfolger 5ccc2eaa

FIX: DeliveryOrder: Auslagern Verkaufslieferschein

behebt #632

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
931 931
    remaining_qty => $do_qty - $qty_sum,
932 932
  );
933 933

  
934
  $self->js->append('#stock-in-out-table', $row_as_html)->render();
934
  $self->js->append('#stock-in-out-table tbody', $row_as_html)->render();
935 935
}
936 936

  
937 937
sub action_update_stock_information {
js/kivi.DeliveryOrder.js
121 121
  };
122 122

  
123 123
  ns.add_stock_in_line_to_dialog = function() {
124
    console.log("clicked");
125
    console.log($("#parts_id"));
126
    console.log($("#parts_id").val());
127
    console.log($("#do_qty"));
128
    console.log($("#do_qty").val());
129

  
130 124
    let qty_sum = 0;
131 125
    let row_count = 0;
132
    $("#stock-in-out-table tr.listrow").each((i,row) => {
126
    $("#stock-in-out-table tr.data-row").each((i,row) => {
133 127
      let qty = kivi.parse_amount($(row).find(".data-qty").val());
134 128

  
135 129
      row_count = row_count + 1;
......
156 150
    // we don't want to do this in javascript so we do a tiny roundtrip to the backend
157 151

  
158 152
    let data = [];
159
    $("#stock-in-out-table tr.listrow").each((i,row) => {
153
    $("#stock-in-out-table tr.data-row").each((i,row) => {
160 154
      let qty = kivi.parse_amount($(row).find(".data-qty").val());
161 155

  
162 156
      if (qty === 0 || qty === null) return;
templates/design40_webpages/delivery_order/stock_dialog/_stock_in_new_row.html
1 1
[%- USE L %]
2 2
[%- USE LxERP %]
3 3
[% # L.dump( PART ) %] [% # L.dump( pos ) %] [% # L.dump( remaining_qty ) %]
4
<tr class="listrow" >
4
<tr class="data-row" >
5 5
 [% L.multi_level_select_tag(
6 6
      "new_wh_bin_" _ pos, WAREHOUSES, 2, surround_tag="td",
7 7
      level_1={
templates/design40_webpages/delivery_order/stock_dialog/_stock_in_row.html
1 1
[%- USE L %]
2 2
[%- USE LxERP %]
3 3
[% # L.dump( PART ) %] [% # L.dump( pos ) %] [% # L.dump( ROW ) %]
4
<tr>
4
<tr class="data-row">
5 5
 [% L.multi_level_select_tag(
6 6
      # name has to be unique
7 7
      "wh_bin_" _ pos, WAREHOUSES, 2, surround_tag="td",
templates/design40_webpages/delivery_order/stock_dialog/_stock_out_table.html
17 17
</tr>
18 18

  
19 19
[%- FOREACH row = WHCONTENTS %]
20
<tr [% IF row.stock_error %]class="error"[% END %]>
20
<tr [% IF row.stock_error %]class="error"[% ELSE %]class="data-row"[% END %]>
21 21
 <td>[% loop.count %]</td>
22 22
 <td>[% row.warehousedescription | html %]</td>
23 23
 <td>[% row.bindescription | html %]</td>
templates/webpages/delivery_order/stock_dialog/_stock_in_new_row.html
1 1
[%- USE L %]
2 2
[%- USE LxERP %]
3 3
[% # L.dump( PART ) %] [% # L.dump( pos ) %] [% # L.dump( remaining_qty ) %]
4
<tr class="listrow" >
4
<tr class="listrow data-row" >
5 5
 [% L.multi_level_select_tag(
6 6
      "new_wh_bin_" _ pos, WAREHOUSES, 2, surround_tag="td",
7 7
      level_1={
templates/webpages/delivery_order/stock_dialog/_stock_in_row.html
1 1
[%- USE L %]
2 2
[%- USE LxERP %]
3 3
[% # L.dump( PART ) %] [% # L.dump( pos ) %] [% # L.dump( ROW ) %]
4
<tr class="listrow" >
4
<tr class="listrow data-row" >
5 5
 [% L.multi_level_select_tag(
6 6
      # name has to be unique
7 7
      "wh_bin_" _ pos, WAREHOUSES, 2, surround_tag="td",
templates/webpages/delivery_order/stock_dialog/_stock_out_table.html
17 17
</tr>
18 18

  
19 19
[%- FOREACH row = WHCONTENTS %]
20
<tr [% IF row.stock_error %] class="error"[% ELSE %]class="listrow"[% END %]>
20
<tr [% IF row.stock_error %] class="error"[% ELSE %]class="listrow data-row"[% END %]>
21 21
 <td>[% loop.count %]</td>
22 22
 <td>[% row.warehousedescription | html %]</td>
23 23
 <td>[% row.bindescription | html %]</td>

Auch abrufbar als: Unified diff