-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix moneybird mandate synchronization bug * Rename stuff * Add starting point for testing * Implement bulk moneybird payment creation * Push most invoices at night * Make EventRegistration.payment_amount queryable * Push EventRegistration invoices nightly * Remove customer_id from contact * Improve displaying of transactions * Fix * Add SEPA fields to transactions * Improve SEPA fields * Improve SEPA fields * Improve SEPA fields * Fix timezone * Slightly improved admins * Slightly improved admins * Actually remove customer ID * Make moneybird client retry on ratelimit * Organize services * Use loggers * Implement deleting eventregistration invoices * Implement updating invoices * Send error report email after logging * Make migration set needs_synchronization False * Implement deleting invoices * Improve admins * Refactor services * Never use thaliawebsite.settings * Improve model constraints * Write a test * Add a few tests * Add test for FoodOrders * Fix and test pushing contacts * Add sales test * Write last test * Fix query on postgres --------- Co-authored-by: Ties <[email protected]> Co-authored-by: Job Doesburg <[email protected]> Co-authored-by: movieminer <[email protected]>
- Loading branch information
1 parent
56692f6
commit 0c690c4
Showing
20 changed files
with
1,306 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...te/moneybirdsynchronization/migrations/0005_moneybirdcontact_moneybird_sepa_mandate_id.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 4.2.5 on 2023-10-04 18:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("moneybirdsynchronization", "0004_moneybirdproject"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="moneybirdcontact", | ||
name="moneybird_sepa_mandate_id", | ||
field=models.CharField( | ||
blank=True, | ||
max_length=255, | ||
null=True, | ||
unique=True, | ||
verbose_name="Moneybird SEPA mandate ID", | ||
), | ||
), | ||
] |
42 changes: 42 additions & 0 deletions
42
...oneybirdsynchronization/migrations/0006_moneybirdexternalinvoice_needs_synchronization.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Generated by Django 4.2.5 on 2023-10-20 09:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def set_needs_synchronization_false(apps, schema_editor): | ||
MoneybirdExternalInvoice = apps.get_model( | ||
"moneybirdsynchronization", "MoneybirdExternalInvoice" | ||
) | ||
MoneybirdExternalInvoice.objects.all().update(needs_synchronization=False) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"moneybirdsynchronization", | ||
"0005_moneybirdcontact_moneybird_sepa_mandate_id", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="moneybirdexternalinvoice", | ||
name="needs_synchronization", | ||
field=models.BooleanField( | ||
default=True, | ||
help_text="Indicates that the invoice has to be synchronized (again).", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="moneybirdexternalinvoice", | ||
name="needs_deletion", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="Indicates that the invoice has to be deleted from moneybird.", | ||
), | ||
), | ||
migrations.RunPython( | ||
set_needs_synchronization_false, | ||
reverse_code=migrations.RunPython.noop, | ||
), | ||
] |
Oops, something went wrong.