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,
|
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);
|
||||||
}}
|
}}
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user