2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00

make naming more abstract

This commit is contained in:
Matthias
2022-03-11 00:49:49 +01:00
parent b7e5f6a109
commit 8fbd776419

View File

@ -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);
}
}
);