taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 95ae9c316e6fec798caba3756b62f6b259dadd6a
parent 89974ebd542afb907be60f9fdde554eff5266285
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Wed, 13 May 2026 16:56:05 -0300

also show the current stock

Diffstat:
Mpackages/merchant-backoffice-ui/src/components/form/InputStock.tsx | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/packages/merchant-backoffice-ui/src/components/form/InputStock.tsx b/packages/merchant-backoffice-ui/src/components/form/InputStock.tsx @@ -52,6 +52,7 @@ export interface Stock { interface StockDelta { incoming: number; lost: number; + current: number | undefined; } export function InputStock<T>({ @@ -68,6 +69,7 @@ export function InputStock<T>({ const [addedStock, setAddedStock] = useState<StockDelta>({ incoming: 0, lost: 0, + current: formValue.current, }); const { i18n } = useTranslationContext(); @@ -101,7 +103,7 @@ export function InputStock<T>({ <div class="field has-addons"> {!alreadyExist ? ( <Tooltip - text={i18n.str`Click here to configure the product's stock. If left as is, the backend will not control stock.`} + text={i18n.str`Click here to configure the product's stock. If left as is, the server will not control stock.`} > <button type="button" @@ -173,6 +175,7 @@ export function InputStock<T>({ object={addedStock} valueHandler={setAddedStock as any} > + <InputNumber name="current" label={i18n.str`Current`} readonly /> <InputNumber name="incoming" label={i18n.str`Incoming`} /> <InputNumber name="lost" label={i18n.str`Lost`} /> </FormProvider>