mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 10:14:26 +08:00
fix the default date was incorrect when updating the closing balance in the reconciliation statement dialog which the date range is all
This commit is contained in:
@@ -556,7 +556,7 @@ function updateClosingBalance(): void {
|
|||||||
const currentUnixTime = getCurrentUnixTime();
|
const currentUnixTime = getCurrentUnixTime();
|
||||||
let newTransactionTime: number | undefined = undefined;
|
let newTransactionTime: number | undefined = undefined;
|
||||||
|
|
||||||
if (endTime.value < currentUnixTime) {
|
if (endTime.value > 0 && endTime.value < currentUnixTime) {
|
||||||
newTransactionTime = endTime.value;
|
newTransactionTime = endTime.value;
|
||||||
} else if (currentUnixTime < startTime.value) {
|
} else if (currentUnixTime < startTime.value) {
|
||||||
newTransactionTime = startTime.value;
|
newTransactionTime = startTime.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user