Files
ERP_Distribution/Distribution/Models/ExpenseCategory.cs
T
Kalana B. Thilakarathna c775146b64
CI/CD - ERP Distribution / Build & Deploy Frontend (pull_request) Failing after 13m39s
CI/CD - ERP Distribution / Build & Deploy Backend (pull_request) Failing after 15m1s
10.
Implementation
A partner, not just software
HexDive Technologies' local team handles setup, data migration, training and ongoing support — in Sinhala, Tamil and English. [confirm]

1
Discovery
Map your network, products and processes.

2
Configuration
Set up depots, pricing, schemes, routes and users.

3
Migration & training
Move your data and train every team.

4
Go-live & support
Dedicated account manager and local support desk.
2026-10-22 17:47:49 +05:30

19 lines
599 B
C#

using System.ComponentModel.DataAnnotations.Schema;
namespace Distribution.Models
{
/// <summary>
/// Two-level tree: top-level categories (e.g. "Salaries", "Utilities") and
/// child "titles" (e.g. "Bonus", "Electricity"). Expenses link to a leaf (Title).
/// </summary>
public class ExpenseCategory : Template
{
public string Name { get; set; } = string.Empty;
public string? Code { get; set; }
public Guid? FK_ParentCategoryId { get; set; }
[ForeignKey("FK_ParentCategoryId")]
public ExpenseCategory? Parent { get; set; }
}
}