mirror of
https://github.com/System-End/scraps.git
synced 2026-04-19 22:05:09 +00:00
Update +page.svelte
This commit is contained in:
parent
ecbd8b0060
commit
f1ef19fcf9
1 changed files with 4 additions and 4 deletions
|
|
@ -361,24 +361,24 @@
|
|||
if (!formPriceOverride) {
|
||||
formPrice = Math.round(value * SCRAPS_PER_DOLLAR);
|
||||
}
|
||||
await recalculatePricing();
|
||||
await recalculatePricing(!editingItem);
|
||||
}
|
||||
|
||||
async function updateFromStock(value: number) {
|
||||
formCount = value;
|
||||
await recalculatePricing();
|
||||
await recalculatePricing(!editingItem);
|
||||
}
|
||||
|
||||
async function updatePriceOverride(value: number) {
|
||||
formPrice = value;
|
||||
formPriceOverride = true;
|
||||
await recalculatePricing();
|
||||
await recalculatePricing(!editingItem);
|
||||
}
|
||||
|
||||
async function clearPriceOverride() {
|
||||
formPriceOverride = false;
|
||||
formPrice = Math.round(formMonetaryValue * SCRAPS_PER_DOLLAR);
|
||||
await recalculatePricing();
|
||||
await recalculatePricing(!editingItem);
|
||||
}
|
||||
|
||||
let deleteConfirmId = $state<number | null>(null);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue