2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-15 01:11:27 +00:00

Improved javascript log / warn / error messages

This commit is contained in:
Oliver Walters
2022-05-03 12:00:28 +10:00
parent 4732efb330
commit d69b5811b1
8 changed files with 18 additions and 19 deletions

View File

@ -1403,7 +1403,7 @@ function loadPurchaseOrderLineItemTable(table, options={}) {
var line_item = $(table).bootstrapTable('getRowByUniqueId', pk);
if (!line_item) {
console.log('WARNING: getRowByUniqueId returned null');
console.warn('getRowByUniqueId returned null');
return;
}
@ -1662,12 +1662,12 @@ function loadPurchaseOrderExtraLineTable(table, options={}) {
options.params = options.params || {};
if (!options.order) {
console.log('ERROR: function called without order ID');
console.error('function called without order ID');
return;
}
if (!options.status) {
console.log('ERROR: function called without order status');
console.error('function called without order status');
return;
}
@ -2789,12 +2789,12 @@ function loadSalesOrderLineItemTable(table, options={}) {
options.params = options.params || {};
if (!options.order) {
console.log('ERROR: function called without order ID');
console.error('function called without order ID');
return;
}
if (!options.status) {
console.log('ERROR: function called without order status');
console.error('function called without order status');
return;
}
@ -3297,12 +3297,12 @@ function loadSalesOrderExtraLineTable(table, options={}) {
options.params = options.params || {};
if (!options.order) {
console.log('ERROR: function called without order ID');
console.error('function called without order ID');
return;
}
if (!options.status) {
console.log('ERROR: function called without order status');
console.error('function called without order status');
return;
}