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

This commit is contained in:
Oliver 2022-09-09 12:43:07 +10:00 committed by GitHub
parent c4db308dce
commit 1b479ec0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',