From 8fbd7764194761ffcc20aa4e9ac0d37ecd5e8c48 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 11 Mar 2022 00:49:49 +0100 Subject: [PATCH] make naming more abstract --- InvenTree/templates/js/translated/order.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index af54da9749..fe0210623b 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -2291,21 +2291,21 @@ function showFulfilledSubTable(index, row, element, options) { }); } -var soTotalPriceRef = ''; // reference to total price field -var soTotalPriceOptions = {}; // options to reload the price +var TotalPriceRef = ''; // reference to total price field +var TotalPriceOptions = {}; // options to reload the price function loadOrderTotal(reference, options={}) { - soTotalPriceRef = reference; - soTotalPriceOptions = options; + TotalPriceRef = reference; + TotalPriceOptions = options; } function reloadTotal() { inventreeGet( - soTotalPriceOptions.url, + TotalPriceOptions.url, {}, { success: function(data) { - $(soTotalPriceRef).html(data.total_price_string); + $(TotalPriceRef).html(data.total_price_string); } } );