2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-03-30 08:01:07 +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,
successMessage: t`Stock items allocated`,
onFormSuccess: onFormSuccess,
keepOpenOption: true,
initialData: {
items: lineItems
.filter((item) => {

View File

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

View File

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