2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Add database table for storing file attachments against a BuildOrder

This commit is contained in:
Oliver Walters
2020-10-26 15:21:03 +11:00
parent 8f108d42d2
commit 664dd0000c
4 changed files with 72 additions and 28 deletions

View File

@ -11,22 +11,22 @@ function newBuildOrder(options={}) {
follow: true,
data: options.data || {},
callback: [
{
field: 'part',
action: function(value) {
inventreeGet(
`/api/part/${value}/`, {},
{
success: function(response) {
{
field: 'part',
action: function(value) {
inventreeGet(
`/api/part/${value}/`, {},
{
success: function(response) {
//enableField('serial_numbers', response.trackable);
//clearField('serial_numbers');
//enableField('serial_numbers', response.trackable);
//clearField('serial_numbers');
}
}
}
);
},
}
],
);
},
}
],
}
)
}

View File

@ -33,16 +33,16 @@ function getAvailableTableFilters(tableKey) {
title: '{% trans "Is Serialized" %}',
},
serial_gte: {
title: "{% trans "Serial number GTE" %}",
description: "{% trans "Serial number greater than or equal to" %}"
title: '{% trans "Serial number GTE" %}',
description: '{% trans "Serial number greater than or equal to" %}'
},
serial_lte: {
title: "{% trans "Serial number LTE" %}",
description: "{% trans "Serial number less than or equal to" %}",
title: '{% trans "Serial number LTE" %}',
description: '{% trans "Serial number less than or equal to" %}',
},
serial: {
title: "{% trans "Serial number" %}",
description: "{% trans "Serial number" %}"
title: '{% trans "Serial number" %}',
description: '{% trans "Serial number" %}'
},
batch: {
title: '{% trans "Batch" %}',
@ -99,16 +99,16 @@ function getAvailableTableFilters(tableKey) {
title: '{% trans "Is Serialized" %}',
},
serial: {
title: "{% trans "Serial number" %}",
description: "{% trans "Serial number" %}"
title: '{% trans "Serial number" %}',
description: '{% trans "Serial number" %}'
},
serial_gte: {
title: "{% trans "Serial number GTE" %}",
description: "{% trans "Serial number greater than or equal to" %}"
title: '{% trans "Serial number GTE" %}',
description: '{% trans "Serial number greater than or equal to" %}'
},
serial_lte: {
title: "{% trans "Serial number LTE" %}",
description: "{% trans "Serial number less than or equal to" %}",
title: '{% trans "Serial number LTE" %}',
description: '{% trans "Serial number less than or equal to" %}',
},
status: {
options: stockCodes,
@ -127,7 +127,7 @@ function getAvailableTableFilters(tableKey) {
return {
result: {
type: 'bool',
title: "{% trans 'Test result' %}",
title: '{% trans "Test result" %}',
},
};
}
@ -137,7 +137,7 @@ function getAvailableTableFilters(tableKey) {
return {
required: {
type: 'bool',
title: "{% trans "Required" %}",
title: '{% trans "Required" %}',
}
};
}