[UI] Stock batch codes (#9145)

* Display batch code in stock item preview

* Show batch code in stock operations modal

* Refactor StockForms

* More table refactoring
This commit is contained in:
Oliver
2025-02-22 19:52:18 +11:00
committed by GitHub
parent 4cacf83294
commit 7098ac74d2
9 changed files with 149 additions and 22 deletions
+11 -2
View File
@@ -523,9 +523,11 @@ function LineItemFormRow({
onClick={() => open()}
/>
)}
<RemoveRowButton onClick={() => props.removeFn(props.idx)} />
</Flex>
</Table.Td>
<Table.Td>
<RemoveRowButton onClick={() => props.removeFn(props.idx)} />
</Table.Td>
</Table.Tr>
{locationOpen && (
<Table.Tr>
@@ -745,7 +747,14 @@ export function useReceiveLineItems(props: LineItemsForm) {
/>
);
},
headers: [t`Part`, t`SKU`, t`Received`, t`Quantity`, t`Actions`]
headers: [
{ title: t`Part`, style: { minWidth: '200px' } },
{ title: t`SKU`, style: { minWidth: '200px' } },
{ title: t`Received`, style: { minWidth: '200px' } },
{ title: t`Quantity`, style: { width: '200px' } },
{ title: t`Actions` },
{ title: '', style: { width: '50px' } }
]
},
location: {
filters: {