Skip to content

Commit

Permalink
added reference number input
Browse files Browse the repository at this point in the history
  • Loading branch information
manglemix committed Jan 28, 2025
1 parent 25b15a3 commit 5997bb0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion usr-web/src/routes/(apps)/manifest/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
let pending_order_store_in: string = $state('');
let pending_order_team: Team | '' = $state('');
let pending_order_reason = $state('');
let change_order_ref_number: number | undefined = $state(undefined);
let updated_order_status: OrderStatus['status'] | '' = $state('');
function populatePending() {
Expand Down Expand Up @@ -357,6 +358,15 @@
{#if tabIndex === 0}
{@render input()}

<label>
Ref Number
<input
type="number"
bind:value={change_order_ref_number}
placeholder="Reference Number"
/>
</label>

<button
onclick={async () => {
if (
Expand Down Expand Up @@ -384,7 +394,8 @@
unit_cost: pending_order_unit_cost,
team: pending_order_team,
reason: pending_order_reason,
store_in: pending_order_store_in
store_in: pending_order_store_in,
change_order_ref_number
})
});
if (response.ok) {
Expand Down

0 comments on commit 5997bb0

Please sign in to comment.