working on invoice upload stuff
This commit is contained in:
parent
8981f0a387
commit
a91ed3bc5c
|
@ -104,6 +104,4 @@ TICKET_CATEGORY_ID = env('TICKET_CATEGORY_ID')
|
||||||
COINIFY_API_KEY = env('COINIFY_API_KEY')
|
COINIFY_API_KEY = env('COINIFY_API_KEY')
|
||||||
COINIFY_API_SECRET = env('COINIFY_API_SECRET')
|
COINIFY_API_SECRET = env('COINIFY_API_SECRET')
|
||||||
|
|
||||||
PDF_ARCHIVE_PATH='/usr/local/www/pdf_archive/'
|
|
||||||
|
|
||||||
LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', env('PDF_LETTERHEAD_FILENAME'))
|
LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', env('PDF_LETTERHEAD_FILENAME'))
|
||||||
|
|
|
@ -14,3 +14,4 @@ TICKET_CATEGORY_ID=''
|
||||||
COINIFY_API_KEY=''
|
COINIFY_API_KEY=''
|
||||||
COINIFY_API_SECRET=''
|
COINIFY_API_SECRET=''
|
||||||
PDF_LETTERHEAD_FILENAME=''
|
PDF_LETTERHEAD_FILENAME=''
|
||||||
|
MEDIA_ROOT=''
|
||||||
|
|
|
@ -255,7 +255,7 @@ class EpayPayment(CreatedUpdatedModel, UUIDModel):
|
||||||
|
|
||||||
class Invoice(CreatedUpdatedModel):
|
class Invoice(CreatedUpdatedModel):
|
||||||
order = models.OneToOneField('shop.Order')
|
order = models.OneToOneField('shop.Order')
|
||||||
pdf = models.FileField(null=True, blank=True)
|
pdf = models.FileField(null=True, blank=True, upload_to='invoices/')
|
||||||
sent_to_customer = models.BooleanField(default=False)
|
sent_to_customer = models.BooleanField(default=False)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|
Loading…
Reference in a new issue