Skip to content

Fix for invoice date last day of month setting #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

JochemVH1
Copy link
Collaborator

Added fix for #283

Maybe I should have added seperate spec file for the tests

adjusted invoice model to set config as property in constructor
adjusted setClient function to pass config and date to getInvoiceDateFunction

invoice-date-strategy:
add parameter to getInvoice to receive date of invoice
adjusted endofmonth function to handling new logic with given date

invoiceModel.spec.ts:
add test for testing new endofmonth functionallity
=> in hindsight this might have been more logically as seperate spec file
@JochemVH1 JochemVH1 requested a review from Laoujin July 3, 2024 10:06
@JochemVH1 JochemVH1 self-assigned this Jul 3, 2024
@JochemVH1 JochemVH1 linked an issue Jul 3, 2024 that may be closed by this pull request
@JochemVH1 JochemVH1 changed the title invoiceModel: Fix for invoice date last day of month setting Jul 3, 2024
Added translations for new strategy
Added new case for new strategy and reverted old logic in invoice-date-strategy.ts

fixed tests to use new strategy
@Laoujin Laoujin merged commit 2466afc into master Jul 3, 2024
1 check passed
@Laoujin Laoujin deleted the create-invoice-invoice-date-on-new-month-from-22th branch July 31, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Factuurdatum op invoices mag op de nieuwe maand vanaf de 22ste
2 participants