report.js

This commit is contained in:
Oliver Walters 2021-08-30 14:12:35 +10:00
parent c846aeb60f
commit 3e03b1c31d
2 changed files with 30 additions and 6 deletions

View File

@ -1,5 +1,9 @@
{% load inventree_extras %}
// InvenTree settings
/* exported
user_settings,
global_settings,
*/
{% user_settings request.user as USER_SETTINGS %}
const user_settings = {

View File

@ -1,5 +1,25 @@
{% load i18n %}
/* globals
attachSelect,
closeModal,
inventreeGet,
openModal,
makeOptionsList,
modalEnable,
modalSetContent,
modalSetTitle,
modalSubmit,
showAlertDialog,
*/
/* exported
printBomReports,
printBuildReports,
printPurchaseOrderReports,
printSalesOrderReports,
printTestReports,
*/
function selectReport(reports, items, options={}) {
/**
@ -88,7 +108,7 @@ function selectReport(reports, items, options={}) {
}
function printTestReports(items, options={}) {
function printTestReports(items) {
/**
* Print test reports for the provided stock item(s)
*/
@ -142,7 +162,7 @@ function printTestReports(items, options={}) {
}
function printBuildReports(builds, options={}) {
function printBuildReports(builds) {
/**
* Print Build report for the provided build(s)
*/
@ -195,7 +215,7 @@ function printBuildReports(builds, options={}) {
}
function printBomReports(parts, options={}) {
function printBomReports(parts) {
/**
* Print BOM reports for the provided part(s)
*/
@ -249,7 +269,7 @@ function printBomReports(parts, options={}) {
}
function printPurchaseOrderReports(orders, options={}) {
function printPurchaseOrderReports(orders) {
/**
* Print PO reports for the provided purchase order(s)
*/
@ -303,7 +323,7 @@ function printPurchaseOrderReports(orders, options={}) {
}
function printSalesOrderReports(orders, options={}) {
function printSalesOrderReports(orders) {
/**
* Print SO reports for the provided purchase order(s)
*/