-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added invoice reference, fixed tests
Signed-off-by: Trey <[email protected]>
- Loading branch information
Showing
20 changed files
with
91 additions
and
38 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
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
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
34 changes: 34 additions & 0 deletions
34
backend/migrations/0070_remove_invoice_invoice_id_and_more.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,34 @@ | ||
# Generated by Django 5.1.1 on 2024-11-17 15:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("backend", "0069_alter_auditlog_action"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="invoice", | ||
name="invoice_id", | ||
), | ||
migrations.RemoveField( | ||
model_name="invoice", | ||
name="invoice_number", | ||
), | ||
migrations.RemoveField( | ||
model_name="invoicerecurringprofile", | ||
name="invoice_number", | ||
), | ||
migrations.RemoveField( | ||
model_name="invoicerecurringprofile", | ||
name="reference", | ||
), | ||
migrations.AlterField( | ||
model_name="invoice", | ||
name="reference", | ||
field=models.CharField(blank=True, max_length=16, null=True), | ||
), | ||
] |
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
22 changes: 9 additions & 13 deletions
22
frontend/templates/pages/invoices/create/custom_designs/logo.html
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 |
---|---|---|
@@ -1,17 +1,13 @@ | ||
{# TODO: show the logo preview on the left #} | ||
<div class="my-4 flex w-full flex-col"> | ||
<div class="w-full gap-4 grid grid-cols-1 lg:grid-cols-2"> | ||
<div class="input_card"> | ||
<div class="card-body"> | ||
<div class="form-control w-full"> | ||
<label class="label justify-start">Use custom logo</label> | ||
<input type="file" | ||
name="logo" | ||
value="{% if logo %}{{ logo.url }}{% endif %}" {# doesn't auto-fill #} | ||
class="file-input file-input-bordered max-w-full" | ||
accept="image/jpeg,image/png,image/jpg"> | ||
</div> | ||
</div> | ||
<div class="input_card"> | ||
<div class="card-body"> | ||
<div class="form-control w-full"> | ||
<label class="label justify-start">Use custom logo</label> | ||
<input type="file" | ||
name="logo" | ||
value="{% if logo %}{{ logo.url }}{% endif %}" {# doesn't auto-fill #} | ||
class="file-input file-input-bordered max-w-full" | ||
accept="image/jpeg,image/png,image/jpg"> | ||
</div> | ||
</div> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
frontend/templates/pages/invoices/create/custom_designs/reference.html
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,18 @@ | ||
<div class="input_card"> | ||
<div class="card-body"> | ||
<div class="form-control w-full"> | ||
<label class="label justify-start"> | ||
Invoice Reference | ||
<span class="tooltip tooltip-secondary" | ||
data-tip="This is a custom reference to use instead of our auto-generated invoice ID. This will be shown on the invoice too."> | ||
<i class="fa fa-info-circle ms-2"></i> | ||
</span> | ||
</label> | ||
<input type="text" | ||
name="reference" | ||
value="{{ reference }}" | ||
placeholder="INV0012" | ||
class="input input-bordered max-w-full"> | ||
</div> | ||
</div> | ||
</div> |
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
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