mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
make naming more abstract
This commit is contained in:
parent
b7e5f6a109
commit
8fbd776419
@ -2291,21 +2291,21 @@ function showFulfilledSubTable(index, row, element, options) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var soTotalPriceRef = ''; // reference to total price field
|
var TotalPriceRef = ''; // reference to total price field
|
||||||
var soTotalPriceOptions = {}; // options to reload the price
|
var TotalPriceOptions = {}; // options to reload the price
|
||||||
|
|
||||||
function loadOrderTotal(reference, options={}) {
|
function loadOrderTotal(reference, options={}) {
|
||||||
soTotalPriceRef = reference;
|
TotalPriceRef = reference;
|
||||||
soTotalPriceOptions = options;
|
TotalPriceOptions = options;
|
||||||
}
|
}
|
||||||
|
|
||||||
function reloadTotal() {
|
function reloadTotal() {
|
||||||
inventreeGet(
|
inventreeGet(
|
||||||
soTotalPriceOptions.url,
|
TotalPriceOptions.url,
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$(soTotalPriceRef).html(data.total_price_string);
|
$(TotalPriceRef).html(data.total_price_string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user