Spaces:
Sleeping
Sleeping
Download Models/Invoice.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Models/Invoice.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/Models/Invoice.cs
-
curl -L -o Invoice.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Models/Invoice.cs
1.95 kB
| using System.ComponentModel.DataAnnotations; | |
| using System.ComponentModel.DataAnnotations.Schema; | |
| namespace OilShopManagement.Models; | |
| public enum InvoiceStatus | |
| { | |
| Draft, | |
| Completed, | |
| Cancelled | |
| } | |
| public enum PaymentMethod | |
| { | |
| Cash, | |
| Card, | |
| Transfer | |
| } | |
| public class Invoice | |
| { | |
| public int Id { get; set; } | |
| [] | |
| public string InvoiceNumber { get; set; } = string.Empty; | |
| [] | |
| public int? CustomerId { get; set; } | |
| public Customer? Customer { get; set; } | |
| [] | |
| public DateTime InvoiceDate { get; set; } = DateTime.UtcNow; | |
| [] | |
| [] | |
| public decimal SubTotal { get; set; } | |
| [] | |
| [] | |
| public decimal TaxRate { get; set; } = 0; | |
| [] | |
| [] | |
| public decimal TaxAmount { get; set; } | |
| [] | |
| [] | |
| public decimal Discount { get; set; } = 0; | |
| [] | |
| [] | |
| public decimal TotalAmount { get; set; } | |
| [] | |
| public PaymentMethod PaymentMethod { get; set; } = PaymentMethod.Cash; | |
| [] | |
| public InvoiceStatus Status { get; set; } = InvoiceStatus.Completed; | |
| [] | |
| [] | |
| public string? Notes { get; set; } | |
| [] | |
| public string? CreatedByUserId { get; set; } | |
| public DateTime CreatedAt { get; set; } = DateTime.UtcNow; | |
| public ICollection<InvoiceItem> Items { get; set; } = new List<InvoiceItem>(); | |
| } | |