Wonky.Client/Wonky.Entity/DTO/ActivityLineDto.cs
2023-07-04 14:38:12 +02:00

75 lines
No EOL
2 KiB
C#

// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
//
using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class ActivityLineDto
{
/// <summary>
/// Line discount
/// </summary>
public decimal Discount { get; set; }
/// <summary>
/// Line amount
/// </summary>
public decimal LineAmount { get; set; }
/// <summary>
/// warehouse pick location
/// </summary>
public string Location { get; set; } = "";
/// <summary>
/// Line number
/// </summary>
public int LineNumber { get; set; }
/// <summary>
/// Line price
/// </summary>
public decimal Price { get; set; }
/// <summary>
/// Quantity
/// </summary>
public int Qty { get; set; }
/// <summary>
/// Sas indicator
/// </summary>
public bool Sas { get; set; }
/// <summary>
/// ShortName
/// </summary>
[MaxLength(30, ErrorMessage = "Maks 30 tegn i forkortelse")]
public string ShortName { get; set; } = "";
/// <summary>
/// Item Sku
/// </summary>
[MaxLength(30, ErrorMessage = "Højst 30 teng i varenummer")]
public string Sku { get; set; } = "";
/// <summary>
/// Description
/// </summary>
[MaxLength(50, ErrorMessage = "Højst 50 tegn i teksten")]
public string Text { get; set; } = "";
}