style fixes

This commit is contained in:
Matthias 2022-03-06 23:35:55 +01:00
parent 5336d09296
commit 43395aca34
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -36,6 +36,7 @@
newSupplierPartFromOrderWizard, newSupplierPartFromOrderWizard,
removeOrderRowFromOrderWizard, removeOrderRowFromOrderWizard,
removePurchaseOrderLineItem, removePurchaseOrderLineItem,
loadOrderTotal,
*/ */
@ -2290,19 +2291,19 @@ function showFulfilledSubTable(index, row, element, options) {
}); });
} }
var soTotalPriceRef = '' // safes reference to total price var soTotalPriceRef = ''; // reference to total price field
var soTotalPriceOptions = {} // options to reload the price var soTotalPriceOptions = {}; // options to reload the price
function loadOrderTotal(reference, options={}) { function loadOrderTotal(reference, options={}) {
soTotalPriceRef = reference; soTotalPriceRef = reference;
soTotalPriceOptions = options; soTotalPriceOptions = options;
} }
function reloadTotal(){ function reloadTotal() {
inventreeGet( inventreeGet(
soTotalPriceOptions.url, soTotalPriceOptions.url,
{}, {},
{success: function(data){ { success: function(data){
$(soTotalPriceRef).html(data.total_price_string); $(soTotalPriceRef).html(data.total_price_string);
}} }}
); );