Skip to content

Commit

Permalink
Merge pull request #3798 from allegro/vendor_contract_number__leasing…
Browse files Browse the repository at this point in the history
…_rate

Display leasing rate and depreciation end date fields on frontend
  • Loading branch information
awieckowski authored Mar 6, 2024
2 parents 60ac1f0 + d9850fb commit fb5f9bf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ralph/data_center/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ class DataCenterAssetAdmin(
(_('Financial & Order Info'), {
'fields': (
'order_no', 'invoice_date', 'invoice_no', 'task_url', 'price',
'vendor_contract_number', 'leasing_rate',
'depreciation_rate', 'depreciation_end_date',
'force_depreciation', 'source', 'provider', 'delivery_date',
'budget_info', 'start_usage', 'get_created_date',
Expand Down
19 changes: 19 additions & 0 deletions src/ralph/data_center/migrations/0031_auto_20240304_1642.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('data_center', '0030_auto_20240221_1004'),
]

operations = [
migrations.AlterField(
model_name='datacenterasset',
name='leasing_rate',
field=models.FloatField(verbose_name='Leasing rate', blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion src/ralph/data_center/models/physical.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class DataCenterAsset(
leasing_rate = models.FloatField(
null=True,
blank=True,
verbose_name=_('Vendor contact number'),
verbose_name=_('Leasing rate'),
)
slot_no = models.CharField(
blank=True,
Expand Down

0 comments on commit fb5f9bf

Please sign in to comment.