月次レポート機能の改善として、開始日・終了日によるフィルタリング機能を追加し、店舗区分および経費区分の選択肢を実装。経費区分と店舗マスタの管理画面を新規作成し、関連するマイグレーションを追加。CSV取込画面における経費区分の表示を改善。作業ログをdiary.mdに追記。

This commit is contained in:
president
2025-12-22 12:34:53 +09:00
parent 7ae367cd66
commit 814477b1e2
15 changed files with 684 additions and 37 deletions

View File

@@ -0,0 +1,22 @@
from django.db import migrations
def seed_stores(apps, schema_editor):
Store = apps.get_model('expenses', 'Store')
for name in ('砂村板金', 'インフラ'):
Store.objects.get_or_create(name=name, defaults={'is_active': True})
def unseed_stores(apps, schema_editor):
Store = apps.get_model('expenses', 'Store')
Store.objects.filter(name__in=('砂村板金', 'インフラ')).delete()
class Migration(migrations.Migration):
dependencies = [
('expenses', '0002_owner_type_cancel'),
]
operations = [
migrations.RunPython(seed_stores, unseed_stores),
]