76 lines
2.7 KiB
C#
76 lines
2.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.MobileApp;
|
|
|
|
public class SaveOrderResponse
|
|
{
|
|
public int OrderId { get; set; }
|
|
public string OrderNo { get; set; }
|
|
public string UUID { get; set; }
|
|
public DateTime OrderDate { get; set; }
|
|
public bool IsNewOrder { get; set; }
|
|
}
|
|
|
|
public class GetOrderByUUIDResponse
|
|
{
|
|
public int OrderId { get; set; }
|
|
public string OrderNo { get; set; }
|
|
public DateTime OrderDate { get; set; }
|
|
public DateTime? ExpectedSalesDate { get; set; }
|
|
public Guid UUID { get; set; }
|
|
public string SalesOrgCode { get; set; }
|
|
public int CustomerId { get; set; }
|
|
public string CustomerCode { get; set; }
|
|
public string CustomerName { get; set; }
|
|
public int EmployeeId { get; set; }
|
|
public string EmployeeCode { get; set; }
|
|
public string EmployeeName { get; set; }
|
|
public string PaymentTermCode { get; set; }
|
|
public string? ReferenceTxtNo { get; set; }
|
|
public decimal GrossValue { get; set; }
|
|
public decimal DiscountValue { get; set; }
|
|
public decimal FOCValue { get; set; }
|
|
public decimal NetValue { get; set; }
|
|
public string OrderStatus { get; set; }
|
|
public string SAPReferenceOrderNo { get; set; }
|
|
|
|
public List<GetOrderItemResponse> Items { get; set; } = new();
|
|
public List<GetOrderPromotionResponse> Promotions { get; set; } = new();
|
|
}
|
|
|
|
public class GetOrderItemResponse
|
|
{
|
|
public int ItemId { get; set; }
|
|
public int OrderID { get; set; }
|
|
public int MaterialId { get; set; }
|
|
public string MaterialCode { get; set; }
|
|
public string MaterialName { get; set; }
|
|
public decimal UnitPrice { get; set; }
|
|
public string SalesUnit { get; set; }
|
|
public decimal OrderQuantity { get; set; }
|
|
public decimal ValidatedQuantity { get; set; }
|
|
public decimal ApprovedQuantity { get; set; }
|
|
public decimal DiscountPercentage { get; set; }
|
|
public decimal DiscountValue { get; set; }
|
|
public bool IsFOCItem { get; set; }
|
|
public decimal OrderFocQuantity { get; set; }
|
|
public decimal ValidatedFocQuantity { get; set; }
|
|
public decimal ApprovedFocQuantity { get; set; }
|
|
public decimal LineTotalValue { get; set; }
|
|
}
|
|
|
|
public class GetOrderPromotionResponse
|
|
{
|
|
public int ItemId { get; set; }
|
|
public int OrderID { get; set; }
|
|
public int MaterialId { get; set; }
|
|
public string PromotionCode { get; set; }
|
|
public decimal DiscountPercentage { get; set; }
|
|
public decimal DiscountValue { get; set; }
|
|
public decimal ForQuantity { get; set; }
|
|
public decimal OrderFocQuantity { get; set; }
|
|
public decimal ValidatedFocQuantity { get; set; }
|
|
public decimal ApprovedFocQuantity { get; set; }
|
|
public int PromotionType { get; set; }
|
|
} |