Skip to content

Commit

Permalink
- (Finance) Fixed issue of Control Item Count not allowing empty valu…
Browse files Browse the repository at this point in the history
…es. (Fixes #5603)
  • Loading branch information
PraveenMathew92 committed Sep 15, 2023
1 parent 3f79fba commit 6667ceb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
import CampusPicker from "@Obsidian/Controls/campusPicker.obs";
import DropDownList from "@Obsidian/Controls/dropDownList.obs";
import DateTimePicker from "@Obsidian/Controls/dateTimePicker.obs";
import { toNumber } from "@Obsidian/Utility/numberUtils";
import { toNumber, toNumberOrNull } from "@Obsidian/Utility/numberUtils";
import { watchPropertyChanges } from "@Obsidian/Utility/block";
import { propertyRef, updateRefValue } from "@Obsidian/Utility/component";
import { FinancialBatchBag } from "@Obsidian/ViewModels/Blocks/Finance/FinancialBatchDetail/financialBatchBag";
Expand Down Expand Up @@ -147,7 +147,7 @@
campus: campus.value,
controlAmount: controlAmount.value,
accountingSystemCode: accountingSystemCode.value,
controlItemCount: toNumber(controlItemCount.value),
controlItemCount: toNumberOrNull(controlItemCount.value),
note: note.value
};

Expand Down

0 comments on commit 6667ceb

Please sign in to comment.