From 1b479ec0cce277ca871841ffb24c78706a1dd183 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 9 Sep 2022 12:43:07 +1000 Subject: [PATCH] PO: Use supplier currency when creating a new extra line (#3666) --- InvenTree/order/templates/order/purchase_order_detail.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/order/templates/order/purchase_order_detail.html b/InvenTree/order/templates/order/purchase_order_detail.html index 8e301acf39..ace9ae77c3 100644 --- a/InvenTree/order/templates/order/purchase_order_detail.html +++ b/InvenTree/order/templates/order/purchase_order_detail.html @@ -222,6 +222,10 @@ $("#new-po-extra-line").click(function() { order: {{ order.pk }}, }); + {% if order.supplier.currency %} + fields.price_currency.value = '{{ order.supplier.currency }}'; + {% endif %} + constructForm('{% url "api-po-extra-line-list" %}', { fields: fields, method: 'POST',