PO: Use supplier currency when creating a new extra line (#3666)

This commit is contained in:
Oliver authored and GitHub committed 2022-09-09 12:43:07 +10:00
1 parent c4db308dce
commit 1b479ec0cc
1 file changed
+4
@@ -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',