From 43395aca34731589200fe4cf86e26262dbf461c3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 6 Mar 2022 23:35:55 +0100 Subject: [PATCH] style fixes --- InvenTree/templates/js/translated/order.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/InvenTree/templates/js/translated/order.js b/InvenTree/templates/js/translated/order.js index e3aaf5f7fc..ae202d5300 100644 --- a/InvenTree/templates/js/translated/order.js +++ b/InvenTree/templates/js/translated/order.js @@ -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); }} ); };