invoicing: add cancel callback on invoice (#88590)
This commit is contained in:
parent
85151eafc7
commit
6b4c0976ae
|
@ -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),
|
||||
),
|
||||
]
|
|
@ -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
Loading…
Reference in New Issue