Closed UnconditionedLife closed 2 years ago
An issue happened with the next service calculation being different for the receipt and the on-screen likely because of closure next Monday. The receipt was for today (Sat), but service was not available.
"validateServiceInterval" function needs to use "calFindOpenDate" for the next service date calculated from calendar open and closed dates.
I didn’t know about this bug, but it's another good reason for calling calFindOpenDate() from the Client code instead of Receipts.js.
Scott
On Feb 19, 2022, at 4:55 PM, Jose Leal @.***> wrote:
"validateServiceInterval" function needs to use "calFindOpenDate" for the next service date calculated from calendar open and closed dates.
— Reply to this email directly, view it on GitHub https://github.com/UnconditionedLife/smum/issues/112#issuecomment-1046134506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5P4E2TILUXDXTT3L6GQATU4A3Y5ANCNFSM5O3OW5RA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.
I've used calFindOpenDate() to calculate both the next service date and active buttons this should correct the problems I observed.
"Next Service date" should be showing with "Last Served date" --- all clients - all the time.