2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Js forms updates (#4378)

* Refactor forms for creating and editing SalesOrder

- Common function for defining fields

* More visual improvements for forms

* Refactor fields for SupplierPartPriceBreak

* More refactoring

* Refactor for stockitemtestresult table

* Comment fields

* JS linting fix
This commit is contained in:
Oliver
2023-02-21 07:24:49 +11:00
committed by GitHub
parent 17bfea4428
commit 62455199f3
12 changed files with 267 additions and 172 deletions

View File

@ -313,17 +313,9 @@
constructForm('{% url "api-stock-test-result-list" %}', {
method: 'POST',
fields: {
test: {},
result: {},
value: {},
attachment: {},
notes: {},
stock_item: {
value: {{ item.pk }},
hidden: true,
}
},
fields: stockItemTestResultFields({
stock_item: {{ item.pk }},
}),
title: '{% trans "Add Test Result" %}',
onSuccess: reloadTable,
});

View File

@ -640,7 +640,9 @@ $("#stock-return-from-customer").click(function() {
value: {{ item.part.default_location.pk }},
{% endif %}
},
notes: {},
notes: {
icon: 'fa-sticky-note',
},
},
method: 'POST',
title: '{% trans "Return to Stock" %}',