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