mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Fix "fields" attribute for PurchaseOrderLineItem edit form
- The 'order' field was not being included
This commit is contained in:
parent
c3433128b5
commit
3614e09211
@ -1568,23 +1568,10 @@ function loadPurchaseOrderLineItemTable(table, options={}) {
|
|||||||
$(table).find('.button-line-edit').click(function() {
|
$(table).find('.button-line-edit').click(function() {
|
||||||
var pk = $(this).attr('pk');
|
var pk = $(this).attr('pk');
|
||||||
|
|
||||||
|
var fields = poLineItemFields(options);
|
||||||
|
|
||||||
constructForm(`/api/order/po-line/${pk}/`, {
|
constructForm(`/api/order/po-line/${pk}/`, {
|
||||||
fields: {
|
fields: fields,
|
||||||
part: {
|
|
||||||
filters: {
|
|
||||||
part_detail: true,
|
|
||||||
supplier_detail: true,
|
|
||||||
supplier: options.supplier,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
quantity: {},
|
|
||||||
reference: {},
|
|
||||||
purchase_price: {},
|
|
||||||
purchase_price_currency: {},
|
|
||||||
target_date: {},
|
|
||||||
destination: {},
|
|
||||||
notes: {},
|
|
||||||
},
|
|
||||||
title: '{% trans "Edit Line Item" %}',
|
title: '{% trans "Edit Line Item" %}',
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
$(table).bootstrapTable('refresh');
|
$(table).bootstrapTable('refresh');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user