invoicing: add cancel callback on invoice (#88590)

This commit is contained in:
Lauréline Guérin 2024-04-23 16:18:10 +02:00
parent 85151eafc7
commit 6b4c0976ae
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
3 changed files with 2285 additions and 2 deletions

View File

@ -0,0 +1,19 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('invoicing', '0089_credit_cancellation'),
]
operations = [
migrations.RemoveField(
model_name='draftinvoice',
name='payment_callback_url',
),
migrations.AddField(
model_name='invoice',
name='cancel_callback_url',
field=models.URLField(blank=True),
),
]

View File

@ -922,8 +922,6 @@ class AbstractInvoice(AbstractInvoiceObject):
payer_demat = models.BooleanField(default=False)
payer_direct_debit = models.BooleanField(default=False)
payment_callback_url = models.URLField(blank=True)
class Meta:
abstract = True
@ -1092,6 +1090,9 @@ class Invoice(AbstractInvoice):
)
cancellation_description = models.TextField(_('Description'), blank=True)
payment_callback_url = models.URLField(blank=True)
cancel_callback_url = models.URLField(blank=True)
def set_number(self):
self.number = Counter.get_count(
regie=self.regie,

File diff suppressed because it is too large Load Diff