Spaces:
Sleeping
Sleeping
Download ViewModels/InvoiceCreateViewModel.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/ViewModels/InvoiceCreateViewModel.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/ViewModels/InvoiceCreateViewModel.cs
-
curl -L -o InvoiceCreateViewModel.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/ViewModels/InvoiceCreateViewModel.cs
1.48 kB
| using Microsoft.AspNetCore.Mvc.Rendering; | |
| using OilShopManagement.Models; | |
| using System.ComponentModel.DataAnnotations; | |
| namespace OilShopManagement.ViewModels; | |
| public class InvoiceCreateViewModel | |
| { | |
| public int? CustomerId { get; set; } | |
| public string? CustomerName { get; set; } | |
| [] | |
| public DateTime InvoiceDate { get; set; } = DateTime.UtcNow; | |
| [] | |
| public PaymentMethod PaymentMethod { get; set; } = PaymentMethod.Cash; | |
| [] | |
| [] | |
| public decimal TaxRate { get; set; } = 15; | |
| [] | |
| [] | |
| public decimal Discount { get; set; } = 0; | |
| [] | |
| [] | |
| public string? Notes { get; set; } | |
| public decimal? ManualSubTotal { get; set; } | |
| public List<InvoiceItemViewModel> Items { get; set; } = []; | |
| public SelectList? Customers { get; set; } | |
| public SelectList? Products { get; set; } | |
| } | |
| public class InvoiceItemViewModel | |
| { | |
| public int ProductId { get; set; } | |
| public string ProductName { get; set; } = string.Empty; | |
| public int Quantity { get; set; } | |
| public decimal UnitPrice { get; set; } | |
| public decimal PurchasePrice { get; set; } | |
| public decimal Total { get; set; } | |
| } | |