app/Controllers/Http/helpers/product_and_basket_helpers.js:364:42
get_product_price
// this is going to be where the matrix is added that returns trade prices etc.
// for now its just going to return the default price
// get first line and return price
let price_to_return = {
Price: product_price_query_result[0].Price.toFixed(2),
Surcharge: product_price_query_result[0].Surcharge.toFixed(2),
}
return price_to_return;
}
app/Controllers/Http/helpers/product_and_basket_helpers.js:456:34
Object.get_product_details_from_global_product_id
console.log("Contents of product_price_query_result")
console.log(product_price_query_result)
let supply_time = await get_supply_time(product_supplier_query_result)
console.log("Supply Time for this product is => " + supply_time);
let price_of_product = await get_product_price(product_price_query_result)
console.log("Price of this product is => " + price_of_product);
let photo_location = await helper_functions.get_photo_location(photo_location_query_result, true)
console.log("Photo of part is located at => " + photo_location);
node:internal/process/task_queues:95:5
process.processTicksAndRejections
app/Controllers/Http/MytonJlr_Old_Product_Routing_System.js:33:27
async MytonJlr_Old_Product_Routing_System.router
// Now route to the correct product details page.
let product_id = product_sku_number
console.log("Looking up product => " + product_id)
let product_details = await product_and_basket_algos.get_product_details_from_global_product_id(product_id)
console.log(product_details)
node_modules/@adonisjs/framework/src/Server/index.js:121:25
async Server._routeHandler
*
* @private
*/
async _routeHandler (ctx, next, params) {
const { method } = resolver.forDir('httpControllers').resolveFunc(params[0])
const returnValue = await method(ctx)
this._safelySetResponse(ctx.response, returnValue)
await next()
}
app/Middleware/ConvertEmptyStringsToNull.js:13:5
async ConvertEmptyStringsToNull.handle
[key]: request.body[key] !== '' ? request.body[key] : null
}))
)
}
await next()
}
}
module.exports = ConvertEmptyStringsToNull
node_modules/@adonisjs/auth/src/Middleware/AuthInit.js:60:5
async AuthInit.handle
user: auth.user
}
})
}
await next()
}
/**
* Attempt to login the user on each request ( if scheme is session )
*
node_modules/@adonisjs/shield/src/Shield/index.js:417:5
async Shield.handle
/**
* Set token on the request object
*/
this.setRequestCsrfToken(newCsrfToken, request)
await next()
}
}
module.exports = Shield
node_modules/@adonisjs/session/src/Session/Middleware.js:76:5
async SessionMiddleware.handle
ctx.request.flashMessages = flashMessages
/**
* Move the chain
*/
await next()
/**
* Commit changes back to the driver, only when in implicit
* mode. Otherwise the end user will have to save them
* manually.
node_modules/@adonisjs/bodyparser/src/BodyParser/index.js:242:7
async BodyParser.handle
/**
* Don't bother when request does not have body
*/
if (!request.hasBody()) {
debug('skipping body parsing, since request body is empty')
await next()
return
}
/**
* Body is multipart/form-data and autoProcess is set to