diff --git a/registrasion/controllers/credit_note.py b/registrasion/controllers/credit_note.py index bd15947d281778ce29c2ef6f34fb50aa580fd080..e1f0ed2b0334c8a889d4daeb59f699b7e8b1f16d 100644 --- a/registrasion/controllers/credit_note.py +++ b/registrasion/controllers/credit_note.py @@ -1,6 +1,6 @@ from django.db import transaction -from registrasion import models as rego +from registrasion.models import commerce class CreditNoteController(object): @@ -14,7 +14,7 @@ class CreditNoteController(object): the given invoice. You need to call InvoiceController.update_status() to set the status correctly, if appropriate. ''' - credit_note = rego.CreditNote.objects.create( + credit_note = commerce.CreditNote.objects.create( invoice=invoice, amount=0-value, # Credit notes start off as a payment against inv. reference="ONE MOMENT", @@ -39,7 +39,7 @@ class CreditNoteController(object): inv.validate_allowed_to_pay() # Apply payment to invoice - rego.CreditNoteApplication.objects.create( + commerce.CreditNoteApplication.objects.create( parent=self.credit_note, invoice=invoice, amount=self.credit_note.value,