Revision f3017a41
Von Niklas Schmidt vor 4 Tagen hinzugefügt
js/kivi.DeliveryOrder.js | ||
---|---|---|
145 | 145 |
$.post("controller.pl", data, kivi.eval_json_result); |
146 | 146 |
}; |
147 | 147 |
|
148 |
ns.save_updated_stock = function() { |
|
148 |
ns.save_updated_stock = function(close_dialog) {
|
|
149 | 149 |
// stock information is saved in DOM as a yaml dump. |
150 | 150 |
// we don't want to do this in javascript so we do a tiny roundtrip to the backend |
151 | 151 |
|
... | ... | |
178 | 178 |
(data) => { |
179 | 179 |
$("#" + row + " .data-stock-info").val(data.stock_info); |
180 | 180 |
$("#" + row + " .data-stock-qty").text(data.stock_qty) |
181 |
$("#stock_in_out_dialog").dialog("close"); |
|
181 |
if (close_dialog) { |
|
182 |
$("#stock_in_out_dialog").dialog("close"); |
|
183 |
} |
|
182 | 184 |
} |
183 | 185 |
); |
184 | 186 |
}; |
templates/design40_webpages/delivery_order/stock_dialog.html | ||
---|---|---|
54 | 54 |
|
55 | 55 |
<hr size="3" noshade> |
56 | 56 |
|
57 |
<p>[% L.button_tag('kivi.DeliveryOrder.save_updated_stock()', LxERP.t8('Save')) %]</p> |
|
57 |
<p>[% L.button_tag('kivi.DeliveryOrder.save_updated_stock(true)', LxERP.t8('Save')) %]</p>
|
|
58 | 58 |
|
59 | 59 |
[%- END %] |
60 | 60 |
</form> |
Auch abrufbar als: Unified diff
DeliveryOrder:StockDialog js: argument close_dialog eingeführt