2026-07-15 18:51:09 +06:00
|
|
|
|
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 DateTime OrderDate { get; set; }
|
2026-07-16 18:30:18 +06:00
|
|
|
|
public Guid UUID { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public bool IsNewOrder { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-16 18:30:18 +06:00
|
|
|
|
public class OrderBasicResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public int OrderId { get; set; }
|
|
|
|
|
|
public string OrderNo { get; set; }
|
|
|
|
|
|
public DateTime OrderDate { get; set; }
|
|
|
|
|
|
public Guid UUID { get; set; }
|
|
|
|
|
|
public OrderStatusEnum OrderStatus { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public class GetSalesOrderResponse
|
2026-07-15 18:51:09 +06:00
|
|
|
|
{
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public int OrderId { get; set; }
|
|
|
|
|
|
public Guid Uuid { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public string OrderNo { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public DateTime OrderDate { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public string SalesOrgCode { get; set; }
|
|
|
|
|
|
public string CustomerCode { get; set; }
|
|
|
|
|
|
public string CustomerName { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public string? ReferenceTxtNo { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public string EmployeeCode { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public DateTime? ExpectedDeliveryDate { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public string PaymentTermCode { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public string DiscountCode { get; set; }
|
|
|
|
|
|
public string FocCode { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public decimal DiscountValue { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public decimal GrossValue { get; set; }
|
2026-07-27 18:12:06 +06:00
|
|
|
|
public decimal? TotalVatValue { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public decimal NetValue { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public int OrderStatus { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public List<GetSalesOrderItemResponse> Items { get; set; } = new();
|
2026-07-15 18:51:09 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public class GetSalesOrderItemResponse
|
2026-07-15 18:51:09 +06:00
|
|
|
|
{
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public int OrderId { get; set; }
|
|
|
|
|
|
public Guid UUID { get;set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
public string MaterialCode { get; set; }
|
|
|
|
|
|
public string MaterialName { get; set; }
|
|
|
|
|
|
public decimal UnitPrice { get; set; }
|
|
|
|
|
|
public string SalesUnit { get; set; }
|
2026-07-19 09:54:04 +06:00
|
|
|
|
public decimal? PromoQuantity { get; set; }
|
|
|
|
|
|
public decimal? OrderQuantity { get; set; }
|
|
|
|
|
|
public decimal? ValidatedQuantity { get; set; }
|
|
|
|
|
|
public decimal? ApprovedQuantity { get; set; }
|
|
|
|
|
|
public decimal? DiscountPercentage { get; set; }
|
|
|
|
|
|
public decimal? DiscountAmount { get; set; }
|
2026-07-27 18:12:06 +06:00
|
|
|
|
public decimal? VatValue { get; set; }
|
2026-07-18 18:55:29 +06:00
|
|
|
|
public bool IsFocItem { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
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; }
|
2026-07-16 18:30:18 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class UserRoleDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
|
public UserRoleTypeEnum RoleId { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class CustomerLookupDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public int CustomerId { get; set; }
|
|
|
|
|
|
public string CustomerCode { get; set; } = string.Empty;
|
|
|
|
|
|
public string CustomerName { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class PaymentTermLookupDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public int PaymentTermId { get; set; }
|
|
|
|
|
|
public string PaymentTermCode { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class DiscountLookupDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public int DiscountId { get; set; }
|
|
|
|
|
|
public string DiscountCode { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class MaterialLookupDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public int MaterialId { get; set; }
|
|
|
|
|
|
public string MaterialCode { get; set; } = string.Empty;
|
|
|
|
|
|
public string MaterialName { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class FreeGoodsRuleDto
|
|
|
|
|
|
{
|
|
|
|
|
|
public int FreeGoodsId { get; set; }
|
|
|
|
|
|
public int MaterialId { get; set; }
|
|
|
|
|
|
public decimal MinOrderQuantity { get; set; }
|
|
|
|
|
|
public decimal ForQuantity { get; set; }
|
|
|
|
|
|
public decimal FreeQuantity { get; set; }
|
|
|
|
|
|
public string UnitOfMeasure { get; set; } = string.Empty;
|
|
|
|
|
|
public string FocUnitOfMeasure { get; set; } = string.Empty;
|
2026-07-20 18:30:13 +06:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetOrderForSAPResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public GetOrderForSAPResponse()
|
|
|
|
|
|
{
|
|
|
|
|
|
to_Item = new List<GetOrderItemForSAPResponse>();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string SalesOrderType { get; set; }
|
|
|
|
|
|
public string SalesOrganization { get; set; }
|
|
|
|
|
|
public string DistributionChannel { get; set; }
|
|
|
|
|
|
public string OrganizationDivision { get; set; }
|
|
|
|
|
|
public string SoldToParty { get; set; }
|
|
|
|
|
|
public string PurchaseOrderByCustomer { get; set; }
|
|
|
|
|
|
public string CustomerPurchaseOrderDate { get; set; }
|
|
|
|
|
|
public string PurchaseOrderByShipToParty { get; set; }
|
|
|
|
|
|
public string CustomerPaymentTerms { get; set; }
|
|
|
|
|
|
public string? CustomerGroup { get; set; }
|
|
|
|
|
|
public string? CustomerPriceGroup { get; set; }
|
|
|
|
|
|
public IList<GetOrderItemForSAPResponse> to_Item { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class GetOrderItemForSAPResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Material { get; set; }
|
|
|
|
|
|
public string RequestedQuantity { get; set; }
|
2026-07-15 18:51:09 +06:00
|
|
|
|
}
|