Spaces:
Sleeping
Sleeping
Download ViewModels/ReturnCreateViewModel.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/ViewModels/ReturnCreateViewModel.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/ViewModels/ReturnCreateViewModel.cs
-
curl -L -o ReturnCreateViewModel.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/ViewModels/ReturnCreateViewModel.cs
1.37 kB
| using System.ComponentModel.DataAnnotations; | |
| namespace OilShopManagement.ViewModels; | |
| public class ReturnItemViewModel | |
| { | |
| public int ProductId { get; set; } | |
| public string ProductName { get; set; } = string.Empty; | |
| public int Quantity { get; set; } | |
| public decimal UnitPrice { get; set; } | |
| public decimal Total { get; set; } | |
| } | |
| public class PurchaseReturnCreateViewModel | |
| { | |
| public int? PurchaseId { get; set; } | |
| public int? SupplierId { get; set; } | |
| [] | |
| public DateTime ReturnDate { get; set; } = DateTime.UtcNow; | |
| [] | |
| [] | |
| public string? Reason { get; set; } | |
| public decimal? ManualTotal { get; set; } | |
| public List<ReturnItemViewModel> Items { get; set; } = []; | |
| } | |
| public class SaleReturnCreateViewModel | |
| { | |
| public int? InvoiceId { get; set; } | |
| public int? CustomerId { get; set; } | |
| [] | |
| public DateTime ReturnDate { get; set; } = DateTime.UtcNow; | |
| [] | |
| [] | |
| public string? Reason { get; set; } | |
| public decimal? ManualTotal { get; set; } | |
| public List<ReturnItemViewModel> Items { get; set; } = []; | |
| } | |