commit melhorias compras1
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-21 21:04:40 +02:00
parent 976271f948
commit 12dd6df28a
108 changed files with 4391 additions and 408 deletions
+5 -1
View File
@@ -78,6 +78,7 @@ type Props = {
stock_item_id: number;
warehouse_id: number;
accepted_milli: number;
physical_accepted_milli?: number;
returned_milli: number;
label: string;
}[];
@@ -216,7 +217,10 @@ function Prepare({ props, old }: { props: Props; old?: RecordEntry }) {
{receipts.map((r) => (
<option key={r.id} value={r.id}>
{r.label} · Devolvível da origem:{' '}
{quantity(r.accepted_milli - r.returned_milli)}
{quantity(
(r.physical_accepted_milli ??
r.accepted_milli) - r.returned_milli,
)}
</option>
))}
</select>