// 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
{
///
/// Item Sku
///
[MaxLength(30, ErrorMessage = "Højst 30 teng i varenummer")]
public string Sku { get; set; } = "";
///
/// Description
///
[MaxLength(50, ErrorMessage = "Højst 50 tegn i teksten")]
public string Text { get; set; } = "";
///
/// ShortName
///
[MaxLength(30, ErrorMessage = "Maks 30 tegn i forkortelse")]
public string ShortName { get; set; } = "";
///
/// Quantity
///
public int Qty { get; set; }
///
/// Line price
///
public decimal Price { get; set; }
///
/// Line discount
///
public decimal Discount { get; set; }
///
/// Line amount
///
public decimal LineAmount { get; set; }
///
/// Line number
///
public int LineNumber { get; set; }
///
/// Sas indicator
///
public bool Sas { get; set; }
///
/// warehouse pick location
///
public string Location { get; set; } = "";
}