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:
@@ -741,6 +741,7 @@ export function useAllocateStockToBuildForm({
|
||||
preFormContent: preFormContent,
|
||||
successMessage: t`Stock items allocated`,
|
||||
onFormSuccess: onFormSuccess,
|
||||
keepOpenOption: true,
|
||||
initialData: {
|
||||
items: lineItems
|
||||
.filter((item) => {
|
||||
|
||||
@@ -464,6 +464,7 @@ export function useAllocateToSalesOrderForm({
|
||||
onFormSuccess: onFormSuccess,
|
||||
successMessage: t`Stock items allocated`,
|
||||
size: '80%',
|
||||
keepOpenOption: true,
|
||||
initialData: {
|
||||
items: lineItems.map((item) => {
|
||||
return {
|
||||
|
||||
@@ -293,6 +293,7 @@ export default function SalesOrderLineItemTable({
|
||||
initialData: initialData,
|
||||
fields: allocateSerialFields,
|
||||
successMessage: t`Stock allocated successfully`,
|
||||
keepOpenOption: true,
|
||||
table: table
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user