Spaces:
Sleeping
Sleeping
Download Models/StockTransaction.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 1.15 kB
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Models/StockTransaction.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/Models/StockTransaction.cs
-
curl -L -o StockTransaction.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Models/StockTransaction.cs
1.15 kB
| using System.ComponentModel.DataAnnotations; | |
| using System.ComponentModel.DataAnnotations.Schema; | |
| namespace OilShopManagement.Models; | |
| public enum TransactionType | |
| { | |
| Purchase, | |
| Sale, | |
| Adjustment, | |
| Return | |
| } | |
| public class StockTransaction | |
| { | |
| public int Id { get; set; } | |
| [] | |
| public int ProductId { get; set; } | |
| public Product? Product { get; set; } | |
| [] | |
| public TransactionType Type { get; set; } | |
| [] | |
| public int Quantity { get; set; } | |
| [] | |
| public int QuantityBefore { get; set; } | |
| [] | |
| public int QuantityAfter { get; set; } | |
| [] | |
| [] | |
| public decimal UnitPrice { get; set; } | |
| [] | |
| [] | |
| public string? Notes { get; set; } | |
| public int? InvoiceId { get; set; } | |
| [] | |
| public string? UserId { get; set; } | |
| public DateTime CreatedAt { get; set; } = DateTime.UtcNow; | |
| } | |