Skip to content

Commit

Permalink
Increase reference and travelperk_bank_account length to 255 (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 authored Apr 27, 2024
1 parent fb5b152 commit 536f3e2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions apps/travelperk/migrations/0015_auto_20240419_0740.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.1.14 on 2024-04-19 07:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('travelperk', '0014_auto_20240212_1303'),
]

operations = [
migrations.AlterField(
model_name='invoice',
name='reference',
field=models.CharField(help_text='Reference information for the invoice (e.g., Trip #9876543).', max_length=255),
),
migrations.AlterField(
model_name='invoice',
name='travelperk_bank_account',
field=models.CharField(blank=True, help_text='TravelPerk bank account information if available.', max_length=255, null=True),
),
]
4 changes: 2 additions & 2 deletions apps/travelperk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ class Invoice(models.Model):
pdf = models.TextField(help_text='URL to the PDF version of the invoice.')
profile_id = models.CharField(max_length=255, help_text='ID of the profile associated with the invoice.')
profile_name = models.CharField(max_length=255, help_text='Name of the profile associated with the invoice.')
reference = models.CharField(max_length=50, help_text='Reference information for the invoice (e.g., Trip #9876543).')
reference = models.CharField(max_length=255, help_text='Reference information for the invoice (e.g., Trip #9876543).')
serial_number = models.CharField(max_length=20, help_text='Serial number of the invoice.')
status = models.CharField(max_length=20, help_text='Status of the invoice (e.g., paid).')
taxes_summary = models.JSONField(help_text='Summary of taxes applied to the invoice.')
total = models.DecimalField(max_digits=10, decimal_places=2, help_text='Total amount of the invoice.')
travelperk_bank_account = models.CharField(max_length=50, null=True, blank=True, help_text='TravelPerk bank account information if available.')
travelperk_bank_account = models.CharField(max_length=255, null=True, blank=True, help_text='TravelPerk bank account information if available.')

exported_to_fyle = models.BooleanField(default=False, help_text='If the invoice is exported to Fyle')

Expand Down

0 comments on commit 536f3e2

Please sign in to comment.