divan/RMuseum/Models/Accounting/ViewModels/DivanDonationViewModel.cs
Anas Rashid 532d005cdb Rename Ganjoor -> Divan throughout the code
Projects (GanjooRazor -> DivanRazor, GanjoorService.sln -> DivanService.sln), files,
folders, classes, namespaces, settings, API routes (/api/divan) and DB tables (Divan*).
External addresses (ganjoor.net, github.com/ganjoor) unchanged. Migrations renamed
consistently (no pending model changes); requires a fresh database.
Upstream RUNNING_LOCALLY/SEMANTIC_SEARCH docs archived unmodified under docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 23:49:01 +02:00

61 lines
1.9 KiB
C#

using System;
namespace RMuseum.Models.Accounting.ViewModels
{
/// <summary>
/// Divan Donation View Model
/// </summary>
public class DivanDonationViewModel
{
/// <summary>
/// id - null for POST api -
/// </summary>
public int Id { get; set; }
/// <summary>
/// record date
/// </summary>
public DateTime RecordDate { get; set; }
/// <summary>
/// donation amount (0 for old imported records)
/// </summary>
public decimal Amount { get; set; }
/// <summary>
/// "تومان" is good, Amount Unit, if you send another Unit it would be consumed with EXPENSES of the same Unit, if it send EMPTY it wotld not be consumed!
/// </summary>
public string Unit { get; set; }
/// <summary>
/// donor name
/// </summary>
public string DonorName { get; set; }
/// <summary>
/// null for POST api - date: (donation dates have been collected in different formats, so instead of keeping their dates in a DateTime field I ought to use a string field)
/// </summary>
public string DateString { get; set; }
/// <summary>
/// null for POST api -amount string (avoiding to parse different formats of old html text)
/// </summary>
public string AmountString { get; set; }
/// <summary>
/// null for POST api -remaining (it could be ignored later when our data has been normalized enough and be calculated using related data)
/// </summary>
public decimal Remaining { get; set; }
/// <summary>
/// null for POST api -expenditure desc
/// </summary>
public string ExpenditureDesc { get; set; }
/// <summary>
/// null for POST api - record is imported from old HTML text of donation page
/// </summary>
public bool ImportedRecord { get; set; }
}
}