2026-01-02 17:15:41 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace DoliMiddlewareApi.Dtos.command;
|
|
|
|
|
|
|
|
|
|
public class CreateInvoiceLineDto
|
|
|
|
|
{
|
|
|
|
|
[Required]
|
2026-02-03 16:19:53 +00:00
|
|
|
[StringLength(500)]
|
2026-01-02 17:15:41 +00:00
|
|
|
public string? Description { get; set; }
|
2026-02-03 16:19:53 +00:00
|
|
|
|
2026-01-02 17:15:41 +00:00
|
|
|
[Required]
|
2026-02-03 16:19:53 +00:00
|
|
|
[Range(0.01, double.MaxValue)]
|
2026-01-02 17:15:41 +00:00
|
|
|
public decimal Quantity { get; set; }
|
2026-02-03 16:19:53 +00:00
|
|
|
|
2026-01-02 17:15:41 +00:00
|
|
|
[Required]
|
2026-02-03 16:19:53 +00:00
|
|
|
[Range(0, double.MaxValue)]
|
2026-01-02 17:15:41 +00:00
|
|
|
public decimal UnitPrice { get; set; }
|
2026-02-03 16:19:53 +00:00
|
|
|
|
|
|
|
|
[Range(0, 100)]
|
2026-01-02 17:15:41 +00:00
|
|
|
public decimal TaxRate { get; set; } = 0;
|
2026-02-03 16:19:53 +00:00
|
|
|
|
|
|
|
|
|
2026-01-02 17:15:41 +00:00
|
|
|
}
|