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:
@@ -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) => {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user