Keep allocation forms open (#11621)
- Following https://github.com/inventree/InvenTree/pull/11074 - Option to keep allocation forms open
This commit is contained in:
parent
b4ab985e1e
commit
79aa824c14
|
|
@ -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
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue