mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
style fixes
This commit is contained in:
parent
5336d09296
commit
43395aca34
@ -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);
|
||||
}}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user