2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-08 04:20:59 +00:00

Keep allocation forms open (#11621)

- Following https://github.com/inventree/InvenTree/pull/11074
- Option to keep allocation forms open
This commit is contained in:
Oliver
2026-03-29 17:49:46 +11:00
committed by GitHub
parent b4ab985e1e
commit 79aa824c14
3 changed files with 3 additions and 0 deletions

View File

@@ -741,6 +741,7 @@ export function useAllocateStockToBuildForm({
preFormContent: preFormContent, preFormContent: preFormContent,
successMessage: t`Stock items allocated`, successMessage: t`Stock items allocated`,
onFormSuccess: onFormSuccess, onFormSuccess: onFormSuccess,
keepOpenOption: true,
initialData: { initialData: {
items: lineItems items: lineItems
.filter((item) => { .filter((item) => {

View File

@@ -464,6 +464,7 @@ export function useAllocateToSalesOrderForm({
onFormSuccess: onFormSuccess, onFormSuccess: onFormSuccess,
successMessage: t`Stock items allocated`, successMessage: t`Stock items allocated`,
size: '80%', size: '80%',
keepOpenOption: true,
initialData: { initialData: {
items: lineItems.map((item) => { items: lineItems.map((item) => {
return { return {

View File

@@ -293,6 +293,7 @@ export default function SalesOrderLineItemTable({
initialData: initialData, initialData: initialData,
fields: allocateSerialFields, fields: allocateSerialFields,
successMessage: t`Stock allocated successfully`, successMessage: t`Stock allocated successfully`,
keepOpenOption: true,
table: table table: table
}); });