food-market/src/food-market.domain/Catalog/Currency.cs
nns d6dcc75aa0 refactor(currencies): убрать IsActive и MinorUnit из UI/API
- Currency.IsActive удалён полностью (domain/DTO/API/web/миграция).
  Валюты — глобальный справочник; «архивировать» USD глобально
  бессмысленно, а per-tenant видимости у валют нет.
- MinorUnit остаётся в БД (нужен для форматирования цен), но скрыт
  из UI: убран CurrencyDto.MinorUnit, CurrencyInput.MinorUnit,
  колонка «Знаки» из списка.
- Форма валюты — 3 поля: Код / Название / Символ.
- Миграция Phase5e_DropCurrencyIsActive дропает колонку.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 19:01:13 +05:00

15 lines
592 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using foodmarket.Domain.Common;
namespace foodmarket.Domain.Catalog;
// Global reference (not tenant-scoped).
public class Currency : Entity
{
public string Code { get; set; } = null!; // ISO 4217, e.g. "KZT"
public string Name { get; set; } = null!;
public string Symbol { get; set; } = null!; // "₸"
// Количество знаков после запятой для форматирования цен. Не редактируется
// в UI — задаётся сидером/миграцией по ISO 4217.
public int MinorUnit { get; set; } = 2;
}