Warehouses #1
25
FaKrosnoApi/Controllers/VatCodeAssociationController.cs
Normal file
25
FaKrosnoApi/Controllers/VatCodeAssociationController.cs
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
using AutoMapper;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
using SytelineSaAppEfDataModel.Dtos;
|
||||||
|
using SytelineSaAppEfDataModel.Services;
|
||||||
|
|
||||||
|
namespace FaKrosnoApi.Controllers;
|
||||||
|
|
||||||
|
[ApiController]
|
||||||
|
[Route("api/[controller]")]
|
||||||
|
public class VatCodeAssociationController(IVatCodeAssociationService service, IMapper mapper) : Controller
|
||||||
|
{
|
||||||
|
[HttpGet("by-parameters")]
|
||||||
|
public async Task<ActionResult<VatCodeAssociationDto>> GetVatCodesAssociation(string customerDoInvoice,
|
||||||
|
string endUserType, string productCode)
|
||||||
|
{
|
||||||
|
var result = await service.GetVatCodesAssociation(customerDoInvoice, endUserType, productCode);
|
||||||
|
if (result == null)
|
||||||
|
{
|
||||||
|
return NotFound();
|
||||||
|
}
|
||||||
|
|
||||||
|
return Ok(mapper.Map<VatCodeAssociationDto>(result));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -106,6 +106,7 @@ builder.Services.AddScoped<IEdiCustomerOrderImportService, EdiCustomerOrderImpor
|
|||||||
builder.Services.AddScoped<ICustomerService, CustomerService>();
|
builder.Services.AddScoped<ICustomerService, CustomerService>();
|
||||||
builder.Services.AddScoped<ICustomerTpService, CustomerTpService>();
|
builder.Services.AddScoped<ICustomerTpService, CustomerTpService>();
|
||||||
builder.Services.AddScoped<IItemService, ItemService>();
|
builder.Services.AddScoped<IItemService, ItemService>();
|
||||||
|
builder.Services.AddScoped<IVatCodeAssociationService, VatCodeAssociationService>();
|
||||||
|
|
||||||
builder.Services.AddHostedService<TimedHostedService>();
|
builder.Services.AddHostedService<TimedHostedService>();
|
||||||
|
|
||||||
|
|||||||
66
SytelineSaAppEfDataModel/Dtos/VatCodeAssociationDto.cs
Normal file
66
SytelineSaAppEfDataModel/Dtos/VatCodeAssociationDto.cs
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
namespace SytelineSaAppEfDataModel.Dtos;
|
||||||
|
|
||||||
|
public class VatCodeAssociationDto
|
||||||
|
{
|
||||||
|
public string VATRegisterType { get; set; }
|
||||||
|
public string EndUserType { get; set; }
|
||||||
|
public string Category { get; set; }
|
||||||
|
public string ProdCode { get; set; }
|
||||||
|
public string TaxCode { get; set; }
|
||||||
|
public string VATRegisterCode { get; set; }
|
||||||
|
public bool InWorkflow { get; set; }
|
||||||
|
public bool NoteExistsFlag { get; set; }
|
||||||
|
public DateTime RecordDate { get; set; }
|
||||||
|
public Guid RowPointer { get; set; }
|
||||||
|
public string CreatedBy { get; set; }
|
||||||
|
public string UpdatedBy { get; set; }
|
||||||
|
public DateTime CreateDate { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGVarsDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesDescription { get; set; }
|
||||||
|
}
|
||||||
66
SytelineSaAppEfDataModel/Entities/VatCodeAssociation.cs
Normal file
66
SytelineSaAppEfDataModel/Entities/VatCodeAssociation.cs
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
namespace SytelineSaAppEfDataModel.Entities;
|
||||||
|
|
||||||
|
public class VatCodeAssociation
|
||||||
|
{
|
||||||
|
public string VATRegisterType { get; set; }
|
||||||
|
public string EndUserType { get; set; }
|
||||||
|
public string Category { get; set; }
|
||||||
|
public string ProdCode { get; set; }
|
||||||
|
public string TaxCode { get; set; }
|
||||||
|
public string VATRegisterCode { get; set; }
|
||||||
|
public bool InWorkflow { get; set; }
|
||||||
|
public bool NoteExistsFlag { get; set; }
|
||||||
|
public DateTime RecordDate { get; set; }
|
||||||
|
public Guid RowPointer { get; set; }
|
||||||
|
public string CreatedBy { get; set; }
|
||||||
|
public string UpdatedBy { get; set; }
|
||||||
|
public DateTime CreateDate { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsFovhdDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsLbrDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCgsVovhdDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGSVarsAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesCOGVarsDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesOutDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSaleDsDescription { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcct { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit1 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit2 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit3 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesAcctUnit4 { get; set; }
|
||||||
|
public string Uf_ZPL_CodesSalesDescription { get; set; }
|
||||||
|
}
|
||||||
@@ -29,6 +29,7 @@ namespace SytelineSaAppEfDataModel
|
|||||||
CreateMap<Customer, CustomerDto>().ReverseMap();
|
CreateMap<Customer, CustomerDto>().ReverseMap();
|
||||||
CreateMap<CustomerTp, CustomerTpDto>().ReverseMap();
|
CreateMap<CustomerTp, CustomerTpDto>().ReverseMap();
|
||||||
CreateMap<Item, ItemDto>().ReverseMap();
|
CreateMap<Item, ItemDto>().ReverseMap();
|
||||||
|
CreateMap<VatCodeAssociation, VatCodeAssociationDto>().ReverseMap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
using SytelineSaAppEfDataModel.Dtos;
|
||||||
|
|
||||||
|
namespace SytelineSaAppEfDataModel.Services;
|
||||||
|
|
||||||
|
public interface IVatCodeAssociationService
|
||||||
|
{
|
||||||
|
Task<VatCodeAssociationDto?> GetVatCodesAssociation(string customerDoInvoice, string endUserType, string productCode);
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
using AutoMapper;
|
||||||
|
using SytelineSaAppEfDataModel.Dtos;
|
||||||
|
|
||||||
|
namespace SytelineSaAppEfDataModel.Services;
|
||||||
|
|
||||||
|
public class VatCodeAssociationService(SytelineSaAppDbContext context, IMapper mapper) : IVatCodeAssociationService
|
||||||
|
{
|
||||||
|
public async Task<VatCodeAssociationDto?> GetVatCodesAssociation(string customerDoInvoice, string endUserType,
|
||||||
|
string productCode)
|
||||||
|
{
|
||||||
|
return await Task.FromResult(mapper.Map<VatCodeAssociationDto?>(context.VatCodeAssociations.FirstOrDefault(x =>
|
||||||
|
x.VATRegisterType == customerDoInvoice && x.EndUserType == endUserType && x.ProdCode == productCode)));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -28,6 +28,7 @@ namespace SytelineSaAppEfDataModel
|
|||||||
public DbSet<Customer> Customers { get; set; }
|
public DbSet<Customer> Customers { get; set; }
|
||||||
public DbSet<CustomerTp> CustomerTps { get; set; }
|
public DbSet<CustomerTp> CustomerTps { get; set; }
|
||||||
public DbSet<Item> Items { get; set; }
|
public DbSet<Item> Items { get; set; }
|
||||||
|
public DbSet<VatCodeAssociation> VatCodeAssociations { get; set; }
|
||||||
|
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
@@ -1988,6 +1989,316 @@ namespace SytelineSaAppEfDataModel
|
|||||||
.HasDatabaseName("IX_item_RowPointer")
|
.HasDatabaseName("IX_item_RowPointer")
|
||||||
.IsUnique();
|
.IsUnique();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity<VatCodeAssociation>(entity =>
|
||||||
|
{
|
||||||
|
entity.ToTable("ZPL_VAT_CodesAssociations");
|
||||||
|
|
||||||
|
entity.HasKey(e => new { e.VATRegisterType, e.EndUserType, e.Category, e.ProdCode });
|
||||||
|
|
||||||
|
entity.Property(e => e.VATRegisterType)
|
||||||
|
.HasColumnName("VATRegisterType")
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.EndUserType)
|
||||||
|
.HasColumnName("end_user_type")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.Category)
|
||||||
|
.HasColumnName("category")
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.ProdCode)
|
||||||
|
.HasColumnName("prod_code")
|
||||||
|
.HasMaxLength(10)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.TaxCode)
|
||||||
|
.HasColumnName("tax_code")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.VATRegisterCode)
|
||||||
|
.HasColumnName("VATRegisterCode")
|
||||||
|
.HasMaxLength(20)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.InWorkflow)
|
||||||
|
.HasColumnName("InWorkflow")
|
||||||
|
.HasColumnType("tinyint")
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.NoteExistsFlag)
|
||||||
|
.HasColumnName("NoteExistsFlag")
|
||||||
|
.HasColumnType("tinyint")
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.RecordDate)
|
||||||
|
.HasColumnName("RecordDate")
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.RowPointer)
|
||||||
|
.HasColumnName("RowPointer")
|
||||||
|
.HasColumnType("uniqueidentifier")
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.CreatedBy)
|
||||||
|
.HasColumnName("CreatedBy")
|
||||||
|
.HasMaxLength(60)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.UpdatedBy)
|
||||||
|
.HasColumnName("UpdatedBy")
|
||||||
|
.HasMaxLength(60)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.CreateDate)
|
||||||
|
.HasColumnName("CreateDate")
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsFovhdAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsFovhdAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsFovhdDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsFovhdDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsLbrAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsLbrAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsLbrAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsLbrDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsLbrDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsVovhdAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsVovhdAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCgsVovhdDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCgsVovhdDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCOGSVarsAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCOGSVarsAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCOGSVarsAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesCOGVarsDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesCOGVarsDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesOutAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesOutAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesOutAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesOutAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesOutAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesOutAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesOutAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesOutDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesOutDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSaleDsAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSaleDsAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSaleDsAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSaleDsDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSaleDsDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSalesAcct)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSalesAcct")
|
||||||
|
.HasMaxLength(12)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit1)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSalesAcctUnit1")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit2)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSalesAcctUnit2")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit3)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSalesAcctUnit3")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSalesAcctUnit4)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSalesAcctUnit4")
|
||||||
|
.HasMaxLength(6)
|
||||||
|
.IsRequired(false);
|
||||||
|
|
||||||
|
entity.Property(e => e.Uf_ZPL_CodesSalesDescription)
|
||||||
|
.HasColumnName("uf_ZPL_CodesSalesDescription")
|
||||||
|
.HasMaxLength(200)
|
||||||
|
.IsRequired(false);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user