diff --git a/FaKrosnoApi/Controllers/VatCodeAssociationController.cs b/FaKrosnoApi/Controllers/VatCodeAssociationController.cs new file mode 100644 index 0000000..4c495d3 --- /dev/null +++ b/FaKrosnoApi/Controllers/VatCodeAssociationController.cs @@ -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> GetVatCodesAssociation(string customerDoInvoice, + string endUserType, string productCode) + { + var result = await service.GetVatCodesAssociation(customerDoInvoice, endUserType, productCode); + if (result == null) + { + return NotFound(); + } + + return Ok(mapper.Map(result)); + } + +} \ No newline at end of file diff --git a/FaKrosnoApi/Program.cs b/FaKrosnoApi/Program.cs index 2784783..7dcbed3 100644 --- a/FaKrosnoApi/Program.cs +++ b/FaKrosnoApi/Program.cs @@ -106,6 +106,7 @@ builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); +builder.Services.AddScoped(); builder.Services.AddHostedService(); diff --git a/SytelineSaAppEfDataModel/Dtos/VatCodeAssociationDto.cs b/SytelineSaAppEfDataModel/Dtos/VatCodeAssociationDto.cs new file mode 100644 index 0000000..22ccfab --- /dev/null +++ b/SytelineSaAppEfDataModel/Dtos/VatCodeAssociationDto.cs @@ -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; } +} \ No newline at end of file diff --git a/SytelineSaAppEfDataModel/Entities/VatCodeAssociation.cs b/SytelineSaAppEfDataModel/Entities/VatCodeAssociation.cs new file mode 100644 index 0000000..5d24d0a --- /dev/null +++ b/SytelineSaAppEfDataModel/Entities/VatCodeAssociation.cs @@ -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; } +} \ No newline at end of file diff --git a/SytelineSaAppEfDataModel/MappingProfile.cs b/SytelineSaAppEfDataModel/MappingProfile.cs index aec29a7..b3b81b3 100644 --- a/SytelineSaAppEfDataModel/MappingProfile.cs +++ b/SytelineSaAppEfDataModel/MappingProfile.cs @@ -29,6 +29,7 @@ namespace SytelineSaAppEfDataModel CreateMap().ReverseMap(); CreateMap().ReverseMap(); CreateMap().ReverseMap(); + CreateMap().ReverseMap(); } } } diff --git a/SytelineSaAppEfDataModel/Services/IVatCodeAssociationService.cs b/SytelineSaAppEfDataModel/Services/IVatCodeAssociationService.cs new file mode 100644 index 0000000..6bb52a0 --- /dev/null +++ b/SytelineSaAppEfDataModel/Services/IVatCodeAssociationService.cs @@ -0,0 +1,8 @@ +using SytelineSaAppEfDataModel.Dtos; + +namespace SytelineSaAppEfDataModel.Services; + +public interface IVatCodeAssociationService +{ + Task GetVatCodesAssociation(string customerDoInvoice, string endUserType, string productCode); +} \ No newline at end of file diff --git a/SytelineSaAppEfDataModel/Services/VatCodeAssociationService.cs b/SytelineSaAppEfDataModel/Services/VatCodeAssociationService.cs new file mode 100644 index 0000000..fa163a6 --- /dev/null +++ b/SytelineSaAppEfDataModel/Services/VatCodeAssociationService.cs @@ -0,0 +1,14 @@ +using AutoMapper; +using SytelineSaAppEfDataModel.Dtos; + +namespace SytelineSaAppEfDataModel.Services; + +public class VatCodeAssociationService(SytelineSaAppDbContext context, IMapper mapper) : IVatCodeAssociationService +{ + public async Task GetVatCodesAssociation(string customerDoInvoice, string endUserType, + string productCode) + { + return await Task.FromResult(mapper.Map(context.VatCodeAssociations.FirstOrDefault(x => + x.VATRegisterType == customerDoInvoice && x.EndUserType == endUserType && x.ProdCode == productCode))); + } +} \ No newline at end of file diff --git a/SytelineSaAppEfDataModel/SytelineSaAppDbContext.cs b/SytelineSaAppEfDataModel/SytelineSaAppDbContext.cs index 01a0ebe..a7fd0e6 100644 --- a/SytelineSaAppEfDataModel/SytelineSaAppDbContext.cs +++ b/SytelineSaAppEfDataModel/SytelineSaAppDbContext.cs @@ -28,6 +28,7 @@ namespace SytelineSaAppEfDataModel public DbSet Customers { get; set; } public DbSet CustomerTps { get; set; } public DbSet Items { get; set; } + public DbSet VatCodeAssociations { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { @@ -1988,6 +1989,316 @@ namespace SytelineSaAppEfDataModel .HasDatabaseName("IX_item_RowPointer") .IsUnique(); }); + + modelBuilder.Entity(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); + }); } } }