diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 3dcae161ad..b6bc0e0f6d 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -232,7 +232,7 @@ loadPurchaseOrderLineItemTable('#po-line-table', { $("#new-po-additional-line").click(function() { - var fields = poAdditionalLineItemFields({ + var fields = additionalLineItemFields({ order: {{ order.pk }}, }); diff --git a/InvenTree/order/templates/order/sales_order_detail.html b/InvenTree/order/templates/order/sales_order_detail.html index ebbdc19376..c3aeff7902 100644 --- a/InvenTree/order/templates/order/sales_order_detail.html +++ b/InvenTree/order/templates/order/sales_order_detail.html @@ -270,7 +270,7 @@ $("#new-so-additional-line").click(function() { - var fields = soAdditionalLineItemFields({ + var fields = AdditionalLineItemFields({ order: {{ order.pk }}, }); diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index e9876185fa..89eca2207e 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -38,6 +38,7 @@ removeOrderRowFromOrderWizard, removePurchaseOrderLineItem, loadOrderTotal, + additionalLineItemFields, */