mirror of
https://github.com/frappe/books.git
synced 2024-12-22 10:58:59 +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.fyo
|
||||
);
|
||||
toDate = fy.toDate;
|
||||
toDate = DateTime.fromISO(fy.toDate).plus({ days: 1 }).toISODate();
|
||||
fromDate = fy.fromDate;
|
||||
}
|
||||
|
||||
|
@ -324,6 +324,10 @@ export default defineComponent({
|
||||
if (this.editMode) {
|
||||
this.disableEditMode();
|
||||
}
|
||||
|
||||
if (this.doc?.dirty) {
|
||||
return;
|
||||
}
|
||||
this.reset();
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user