2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

fix: account report end date increment by 1

- TemplateBuilder prevent reset if doc is not saved
This commit is contained in:
18alantom 2023-05-09 12:16:26 +05:30
parent ff916a59d2
commit ba97f25318
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}

View File

@ -324,6 +324,10 @@ export default defineComponent({
if (this.editMode) {
this.disableEditMode();
}
if (this.doc?.dirty) {
return;
}
this.reset();
},
methods: {