2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 12:08:27 +00:00

Merge pull request #981 from frappe/fix-print-templates-sync

fix: printTemplates not syning to db on file content changes
This commit is contained in:
Akshay 2024-10-16 10:30:44 +05:30 committed by GitHub
commit 4c1fa7cbb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -439,7 +439,7 @@ function getPrintTemplateUpdateList(
for (const { name, type } of getNameAndTypeFromTemplateFile(file, fyo)) {
const fileModified = nameModifiedMap[name];
if (fileModified && dbModified.valueOf() >= fileModified.valueOf()) {
if (fileModified && dbModified.valueOf() <= fileModified.valueOf()) {
continue;
}