mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09:01 +00:00
fix: account report end date increment by 1
- TemplateBuilder prevent reset if doc is not saved
This commit is contained in:
parent
ff916a59d2
commit
ba97f25318
@ -286,7 +286,7 @@ export abstract class AccountReport extends LedgerReport {
|
|||||||
this.fromYear!,
|
this.fromYear!,
|
||||||
this.fyo
|
this.fyo
|
||||||
);
|
);
|
||||||
toDate = fy.toDate;
|
toDate = DateTime.fromISO(fy.toDate).plus({ days: 1 }).toISODate();
|
||||||
fromDate = fy.fromDate;
|
fromDate = fy.fromDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -324,6 +324,10 @@ export default defineComponent({
|
|||||||
if (this.editMode) {
|
if (this.editMode) {
|
||||||
this.disableEditMode();
|
this.disableEditMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.doc?.dirty) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user