Warehouses #1
@@ -12,22 +12,22 @@ namespace FaKrosnoApi.Controllers
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<IEnumerable<CustomerOrderDto>>> GetAll()
|
||||
{
|
||||
IEnumerable<CustomerOrderDto?> ediCustomerOrders = await service.GetAll();
|
||||
return Ok(ediCustomerOrders);
|
||||
IEnumerable<CustomerOrderDto?> customerOrders = await service.GetAll();
|
||||
return Ok(customerOrders);
|
||||
}
|
||||
|
||||
[HttpGet("by-order-number")]
|
||||
public async Task<ActionResult<CustomerOrderDto?>> GetByCustomerOrderNumber([FromQuery] Guid customerOrderNumber)
|
||||
{
|
||||
CustomerOrderDto? scheduleOrder = await service.GetByOrderNumber(customerOrderNumber);
|
||||
return scheduleOrder != null ? Ok(scheduleOrder) : NotFound();
|
||||
CustomerOrderDto? customerOrder = await service.GetByOrderNumber(customerOrderNumber);
|
||||
return customerOrder != null ? Ok(customerOrder) : NotFound();
|
||||
}
|
||||
|
||||
[HttpGet("by-co-number")]
|
||||
public async Task<ActionResult<CustomerOrderDto?>> GetByCoNumber([FromQuery] string customerOrderNumber)
|
||||
{
|
||||
CustomerOrderDto? scheduleOrder = await service.GetByCoNumber(customerOrderNumber);
|
||||
return scheduleOrder != null ? Ok(scheduleOrder) : NotFound();
|
||||
CustomerOrderDto? customerOrder = await service.GetByCoNumber(customerOrderNumber);
|
||||
return customerOrder != null ? Ok(customerOrder) : NotFound();
|
||||
}
|
||||
|
||||
[HttpGet("items-by-co-number")]
|
||||
@@ -36,5 +36,13 @@ namespace FaKrosnoApi.Controllers
|
||||
var customerOrderLineItems = await service.GetItemsByCoNumber(customerOrderNumber);
|
||||
return customerOrderLineItems != null ? Ok(customerOrderLineItems) : NotFound();
|
||||
}
|
||||
|
||||
[HttpGet("by-customer-and-po")]
|
||||
public async Task<ActionResult<CustomerOrderDto?>> GetByCustomerAndPo([FromQuery] string customerNumber, [FromQuery] int customerSequence, [FromQuery] string poNumber)
|
||||
{
|
||||
CustomerOrderDto? customerOrder =
|
||||
await service.GetByCustomerAndPo(customerNumber, customerSequence, poNumber);
|
||||
return customerOrder != null ? Ok(customerOrder) : NotFound();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,117 +16,117 @@ public class CustomerDto
|
||||
public string Slsman { get; set; }
|
||||
public string StateCycle { get; set; }
|
||||
public bool FinChg { get; set; }
|
||||
public DateTime? LastInv { get; set; }
|
||||
public DateTime? LastPaid { get; set; }
|
||||
public decimal? SalesYtd { get; set; }
|
||||
public decimal? SalesLstYr { get; set; }
|
||||
public decimal? DiscYtd { get; set; }
|
||||
public decimal? DiscLstYr { get; set; }
|
||||
public DateTime? LastFinChg { get; set; }
|
||||
public decimal? SalesPtd { get; set; }
|
||||
public DateTime? CalcDate { get; set; }
|
||||
public int? NumPeriods { get; set; }
|
||||
public int? AvgDaysOs { get; set; }
|
||||
public int? NumInvoices { get; set; }
|
||||
public int? HistDaysOs { get; set; }
|
||||
public int? LargDaysOs { get; set; }
|
||||
public int? LastDaysOs { get; set; }
|
||||
public decimal? AvgBalOs { get; set; }
|
||||
public decimal? LargeBalOs { get; set; }
|
||||
public decimal? LastBalOs { get; set; }
|
||||
public string Whse { get; set; }
|
||||
public string Charfld1 { get; set; }
|
||||
public string Charfld2 { get; set; }
|
||||
public string Charfld3 { get; set; }
|
||||
public decimal? Decifld1 { get; set; }
|
||||
public decimal? Decifld2 { get; set; }
|
||||
public decimal? Decifld3 { get; set; }
|
||||
public bool Logifld { get; set; }
|
||||
public DateTime? Datefld { get; set; }
|
||||
public string TaxRegNum1 { get; set; }
|
||||
public string BankCode { get; set; }
|
||||
public string TaxRegNum2 { get; set; }
|
||||
public string PayType { get; set; }
|
||||
public bool EdiCust { get; set; }
|
||||
public string BranchId { get; set; }
|
||||
public string TransNat { get; set; }
|
||||
public string Delterm { get; set; }
|
||||
public string ProcessInd { get; set; }
|
||||
public bool UseExchRate { get; set; }
|
||||
public string TaxCode1 { get; set; }
|
||||
public string TaxCode2 { get; set; }
|
||||
public string Pricecode { get; set; }
|
||||
public bool ShipEarly { get; set; }
|
||||
public bool ShipPartial { get; set; }
|
||||
public string LangCode { get; set; }
|
||||
public string EndUserType { get; set; }
|
||||
public string ShipSite { get; set; }
|
||||
public bool LcrReqd { get; set; }
|
||||
public string CustBank { get; set; }
|
||||
public bool DraftPrintFlag { get; set; }
|
||||
public bool RcvInternalEmail { get; set; }
|
||||
public string CustomerEmailAddr { get; set; }
|
||||
public bool SendCustomerEmail { get; set; }
|
||||
public bool ApsPullUp { get; set; }
|
||||
public string DoInvoice { get; set; }
|
||||
public bool Consolidate { get; set; }
|
||||
public string InvFreq { get; set; }
|
||||
public bool Summarize { get; set; }
|
||||
public bool NoteExistsFlag { get; set; }
|
||||
public DateTime RecordDate { get; set; }
|
||||
public Guid RowPointer { get; set; }
|
||||
public bool Einvoice { get; set; }
|
||||
public decimal? OrderBal { get; set; }
|
||||
public decimal? PostedBal { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public string UpdatedBy { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CrmGuid { get; set; }
|
||||
public bool InWorkflow { get; set; }
|
||||
public bool PrintPackInv { get; set; }
|
||||
public bool OnePackInv { get; set; }
|
||||
public string InvCategory { get; set; }
|
||||
public bool IncludeTaxInPrice { get; set; }
|
||||
public string TransNat2 { get; set; }
|
||||
public bool UseRevisionPayDays { get; set; }
|
||||
public int? RevisionDay { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime2 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime2 { get; set; }
|
||||
public int? PayDay { get; set; }
|
||||
public TimeSpan? PayDayStartTime1 { get; set; }
|
||||
public TimeSpan? PayDayStartTime2 { get; set; }
|
||||
public TimeSpan? PayDayEndTime1 { get; set; }
|
||||
public TimeSpan? PayDayEndTime2 { get; set; }
|
||||
public string ExportType { get; set; }
|
||||
public bool ActiveForDataIntegration { get; set; }
|
||||
public bool ShowInShipToDropDownList { get; set; }
|
||||
public bool ShowInDropDownList { get; set; }
|
||||
public string SicCode { get; set; }
|
||||
public int? NumberOfEmployees { get; set; }
|
||||
public decimal? CompanyRevenue { get; set; }
|
||||
public string TerritoryCode { get; set; }
|
||||
public string SalesTeamId { get; set; }
|
||||
public int? DaysShippedBeforeDueDateTolerance { get; set; }
|
||||
public int? DaysShippedAfterDueDateTolerance { get; set; }
|
||||
public decimal? ShippedOverOrderedQtyTolerance { get; set; }
|
||||
public decimal? ShippedUnderOrderedQtyTolerance { get; set; }
|
||||
public int DefaultShipTo { get; set; }
|
||||
public bool IncludeOrdersInTaxRpt { get; set; }
|
||||
public decimal? ConstructiveSalePricePct { get; set; }
|
||||
public string Uf_ZPL_FedId { get; set; }
|
||||
public string Uf_ZPL_VATRegisterCode { get; set; }
|
||||
public int? Uf_INT_CustSeq { get; set; }
|
||||
public bool Uf_INT_Replicate { get; set; }
|
||||
public int? Uf_FKR_FA_SL_SYKOF { get; set; }
|
||||
public bool? Uf_FKR_FA_Eksport_SYKOF { get; set; }
|
||||
public string Uf_FKR_FA_Kod_Dostawcy_u_Klienta { get; set; }
|
||||
public string Uf_FKR_FA_Rampa { get; set; }
|
||||
public string Uf_FKR_FA_Zaklad_Przeznaczenia { get; set; }
|
||||
public char? Uf_FKR_Customer_Status { get; set; }
|
||||
public bool? Uf_bpx_customer_printbatch { get; set; }
|
||||
public string Uf_cust_receiver_line1 { get; set; }
|
||||
public string Uf_cust_receiver_line2 { get; set; }
|
||||
public int? Uf_cust_supplier_no { get; set; }
|
||||
public DateTime? LastInv { get; set; }
|
||||
public DateTime? LastPaid { get; set; }
|
||||
public decimal? SalesYtd { get; set; }
|
||||
public decimal? SalesLstYr { get; set; }
|
||||
public decimal? DiscYtd { get; set; }
|
||||
public decimal? DiscLstYr { get; set; }
|
||||
public DateTime? LastFinChg { get; set; }
|
||||
public decimal? SalesPtd { get; set; }
|
||||
public DateTime? CalcDate { get; set; }
|
||||
public short? NumPeriods { get; set; }
|
||||
public short? AvgDaysOs { get; set; }
|
||||
public int? NumInvoices { get; set; }
|
||||
public int? HistDaysOs { get; set; }
|
||||
public int? LargDaysOs { get; set; }
|
||||
public short? LastDaysOs { get; set; }
|
||||
public decimal? AvgBalOs { get; set; }
|
||||
public decimal? LargeBalOs { get; set; }
|
||||
public decimal? LastBalOs { get; set; }
|
||||
public string Whse { get; set; }
|
||||
public string Charfld1 { get; set; }
|
||||
public string Charfld2 { get; set; }
|
||||
public string Charfld3 { get; set; }
|
||||
public decimal? Decifld1 { get; set; }
|
||||
public decimal? Decifld2 { get; set; }
|
||||
public decimal? Decifld3 { get; set; }
|
||||
public bool Logifld { get; set; }
|
||||
public DateTime? Datefld { get; set; }
|
||||
public string TaxRegNum1 { get; set; }
|
||||
public string BankCode { get; set; }
|
||||
public string TaxRegNum2 { get; set; }
|
||||
public string PayType { get; set; }
|
||||
public bool EdiCust { get; set; }
|
||||
public string BranchId { get; set; }
|
||||
public string TransNat { get; set; }
|
||||
public string Delterm { get; set; }
|
||||
public string ProcessInd { get; set; }
|
||||
public bool UseExchRate { get; set; }
|
||||
public string TaxCode1 { get; set; }
|
||||
public string TaxCode2 { get; set; }
|
||||
public string Pricecode { get; set; }
|
||||
public bool ShipEarly { get; set; }
|
||||
public bool ShipPartial { get; set; }
|
||||
public string LangCode { get; set; }
|
||||
public string EndUserType { get; set; }
|
||||
public string ShipSite { get; set; }
|
||||
public bool LcrReqd { get; set; }
|
||||
public string CustBank { get; set; }
|
||||
public bool DraftPrintFlag { get; set; }
|
||||
public bool RcvInternalEmail { get; set; }
|
||||
public string CustomerEmailAddr { get; set; }
|
||||
public bool SendCustomerEmail { get; set; }
|
||||
public bool ApsPullUp { get; set; }
|
||||
public string DoInvoice { get; set; }
|
||||
public bool Consolidate { get; set; }
|
||||
public string InvFreq { get; set; }
|
||||
public bool Summarize { get; set; }
|
||||
public bool NoteExistsFlag { get; set; }
|
||||
public DateTime RecordDate { get; set; }
|
||||
public Guid RowPointer { get; set; }
|
||||
public bool Einvoice { get; set; }
|
||||
public decimal? OrderBal { get; set; }
|
||||
public decimal? PostedBal { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public string UpdatedBy { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CrmGuid { get; set; }
|
||||
public bool InWorkflow { get; set; }
|
||||
public bool PrintPackInv { get; set; }
|
||||
public bool OnePackInv { get; set; }
|
||||
public string InvCategory { get; set; }
|
||||
public bool IncludeTaxInPrice { get; set; }
|
||||
public string TransNat2 { get; set; }
|
||||
public bool UseRevisionPayDays { get; set; }
|
||||
public int? RevisionDay { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime2 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime2 { get; set; }
|
||||
public int? PayDay { get; set; }
|
||||
public TimeSpan? PayDayStartTime1 { get; set; }
|
||||
public TimeSpan? PayDayStartTime2 { get; set; }
|
||||
public TimeSpan? PayDayEndTime1 { get; set; }
|
||||
public TimeSpan? PayDayEndTime2 { get; set; }
|
||||
public string ExportType { get; set; }
|
||||
public bool ActiveForDataIntegration { get; set; }
|
||||
public bool ShowInShipToDropDownList { get; set; }
|
||||
public bool ShowInDropDownList { get; set; }
|
||||
public string SicCode { get; set; }
|
||||
public int? NumberOfEmployees { get; set; }
|
||||
public decimal? CompanyRevenue { get; set; }
|
||||
public string TerritoryCode { get; set; }
|
||||
public string SalesTeamId { get; set; }
|
||||
public short? DaysShippedBeforeDueDateTolerance { get; set; }
|
||||
public short? DaysShippedAfterDueDateTolerance { get; set; }
|
||||
public decimal? ShippedOverOrderedQtyTolerance { get; set; }
|
||||
public decimal? ShippedUnderOrderedQtyTolerance { get; set; }
|
||||
public int DefaultShipTo { get; set; }
|
||||
public bool IncludeOrdersInTaxRpt { get; set; }
|
||||
public decimal? ConstructiveSalePricePct { get; set; }
|
||||
public string Uf_ZPL_FedId { get; set; }
|
||||
public string Uf_ZPL_VATRegisterCode { get; set; }
|
||||
public int? Uf_INT_CustSeq { get; set; }
|
||||
public bool Uf_INT_Replicate { get; set; }
|
||||
public int? Uf_FKR_FA_SL_SYKOF { get; set; }
|
||||
public bool? Uf_FKR_FA_Eksport_SYKOF { get; set; }
|
||||
public string Uf_FKR_FA_Kod_Dostawcy_u_Klienta { get; set; }
|
||||
public string Uf_FKR_FA_Rampa { get; set; }
|
||||
public string Uf_FKR_FA_Zaklad_Przeznaczenia { get; set; }
|
||||
public char? Uf_FKR_Customer_Status { get; set; }
|
||||
public bool? Uf_bpx_customer_printbatch { get; set; }
|
||||
public string Uf_cust_receiver_line1 { get; set; }
|
||||
public string Uf_cust_receiver_line2 { get; set; }
|
||||
public int? Uf_cust_supplier_no { get; set; }
|
||||
}
|
||||
@@ -22,7 +22,7 @@ public class CustomerTpDto
|
||||
public bool ValCredit { get; set; }
|
||||
public string NoteProc { get; set; }
|
||||
public string UseDate { get; set; }
|
||||
public int? DateOffset { get; set; }
|
||||
public short? DateOffset { get; set; }
|
||||
public string InvCode { get; set; }
|
||||
public string AckCode { get; set; }
|
||||
public string AsnCode { get; set; }
|
||||
|
||||
@@ -16,117 +16,117 @@ public class Customer
|
||||
public string Slsman { get; set; }
|
||||
public string StateCycle { get; set; }
|
||||
public bool FinChg { get; set; }
|
||||
public DateTime? LastInv { get; set; }
|
||||
public DateTime? LastPaid { get; set; }
|
||||
public decimal? SalesYtd { get; set; }
|
||||
public decimal? SalesLstYr { get; set; }
|
||||
public decimal? DiscYtd { get; set; }
|
||||
public decimal? DiscLstYr { get; set; }
|
||||
public DateTime? LastFinChg { get; set; }
|
||||
public decimal? SalesPtd { get; set; }
|
||||
public DateTime? CalcDate { get; set; }
|
||||
public int? NumPeriods { get; set; }
|
||||
public int? AvgDaysOs { get; set; }
|
||||
public int? NumInvoices { get; set; }
|
||||
public int? HistDaysOs { get; set; }
|
||||
public int? LargDaysOs { get; set; }
|
||||
public int? LastDaysOs { get; set; }
|
||||
public decimal? AvgBalOs { get; set; }
|
||||
public decimal? LargeBalOs { get; set; }
|
||||
public decimal? LastBalOs { get; set; }
|
||||
public string Whse { get; set; }
|
||||
public string Charfld1 { get; set; }
|
||||
public string Charfld2 { get; set; }
|
||||
public string Charfld3 { get; set; }
|
||||
public decimal? Decifld1 { get; set; }
|
||||
public decimal? Decifld2 { get; set; }
|
||||
public decimal? Decifld3 { get; set; }
|
||||
public bool Logifld { get; set; }
|
||||
public DateTime? Datefld { get; set; }
|
||||
public string TaxRegNum1 { get; set; }
|
||||
public string BankCode { get; set; }
|
||||
public string TaxRegNum2 { get; set; }
|
||||
public string PayType { get; set; }
|
||||
public bool EdiCust { get; set; }
|
||||
public string BranchId { get; set; }
|
||||
public string TransNat { get; set; }
|
||||
public string Delterm { get; set; }
|
||||
public string ProcessInd { get; set; }
|
||||
public bool UseExchRate { get; set; }
|
||||
public string TaxCode1 { get; set; }
|
||||
public string TaxCode2 { get; set; }
|
||||
public string Pricecode { get; set; }
|
||||
public bool ShipEarly { get; set; }
|
||||
public bool ShipPartial { get; set; }
|
||||
public string LangCode { get; set; }
|
||||
public string EndUserType { get; set; }
|
||||
public string ShipSite { get; set; }
|
||||
public bool LcrReqd { get; set; }
|
||||
public string CustBank { get; set; }
|
||||
public bool DraftPrintFlag { get; set; }
|
||||
public bool RcvInternalEmail { get; set; }
|
||||
public string CustomerEmailAddr { get; set; }
|
||||
public bool SendCustomerEmail { get; set; }
|
||||
public bool ApsPullUp { get; set; }
|
||||
public string DoInvoice { get; set; }
|
||||
public bool Consolidate { get; set; }
|
||||
public string InvFreq { get; set; }
|
||||
public bool Summarize { get; set; }
|
||||
public bool NoteExistsFlag { get; set; }
|
||||
public DateTime RecordDate { get; set; }
|
||||
public Guid RowPointer { get; set; }
|
||||
public bool Einvoice { get; set; }
|
||||
public decimal? OrderBal { get; set; }
|
||||
public decimal? PostedBal { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public string UpdatedBy { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CrmGuid { get; set; }
|
||||
public bool InWorkflow { get; set; }
|
||||
public bool PrintPackInv { get; set; }
|
||||
public bool OnePackInv { get; set; }
|
||||
public string InvCategory { get; set; }
|
||||
public bool IncludeTaxInPrice { get; set; }
|
||||
public string TransNat2 { get; set; }
|
||||
public bool UseRevisionPayDays { get; set; }
|
||||
public int? RevisionDay { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime2 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime2 { get; set; }
|
||||
public int? PayDay { get; set; }
|
||||
public TimeSpan? PayDayStartTime1 { get; set; }
|
||||
public TimeSpan? PayDayStartTime2 { get; set; }
|
||||
public TimeSpan? PayDayEndTime1 { get; set; }
|
||||
public TimeSpan? PayDayEndTime2 { get; set; }
|
||||
public string ExportType { get; set; }
|
||||
public bool ActiveForDataIntegration { get; set; }
|
||||
public bool ShowInShipToDropDownList { get; set; }
|
||||
public bool ShowInDropDownList { get; set; }
|
||||
public string SicCode { get; set; }
|
||||
public int? NumberOfEmployees { get; set; }
|
||||
public decimal? CompanyRevenue { get; set; }
|
||||
public string TerritoryCode { get; set; }
|
||||
public string SalesTeamId { get; set; }
|
||||
public int? DaysShippedBeforeDueDateTolerance { get; set; }
|
||||
public int? DaysShippedAfterDueDateTolerance { get; set; }
|
||||
public decimal? ShippedOverOrderedQtyTolerance { get; set; }
|
||||
public decimal? ShippedUnderOrderedQtyTolerance { get; set; }
|
||||
public int DefaultShipTo { get; set; }
|
||||
public bool IncludeOrdersInTaxRpt { get; set; }
|
||||
public decimal? ConstructiveSalePricePct { get; set; }
|
||||
public string Uf_ZPL_FedId { get; set; }
|
||||
public string Uf_ZPL_VATRegisterCode { get; set; }
|
||||
public int? Uf_INT_CustSeq { get; set; }
|
||||
public bool Uf_INT_Replicate { get; set; }
|
||||
public int? Uf_FKR_FA_SL_SYKOF { get; set; }
|
||||
public bool? Uf_FKR_FA_Eksport_SYKOF { get; set; }
|
||||
public string Uf_FKR_FA_Kod_Dostawcy_u_Klienta { get; set; }
|
||||
public string Uf_FKR_FA_Rampa { get; set; }
|
||||
public string Uf_FKR_FA_Zaklad_Przeznaczenia { get; set; }
|
||||
public char? Uf_FKR_Customer_Status { get; set; }
|
||||
public bool? Uf_bpx_customer_printbatch { get; set; }
|
||||
public string Uf_cust_receiver_line1 { get; set; }
|
||||
public string Uf_cust_receiver_line2 { get; set; }
|
||||
public int? Uf_cust_supplier_no { get; set; }
|
||||
public DateTime? LastInv { get; set; }
|
||||
public DateTime? LastPaid { get; set; }
|
||||
public decimal? SalesYtd { get; set; }
|
||||
public decimal? SalesLstYr { get; set; }
|
||||
public decimal? DiscYtd { get; set; }
|
||||
public decimal? DiscLstYr { get; set; }
|
||||
public DateTime? LastFinChg { get; set; }
|
||||
public decimal? SalesPtd { get; set; }
|
||||
public DateTime? CalcDate { get; set; }
|
||||
public short? NumPeriods { get; set; }
|
||||
public short? AvgDaysOs { get; set; }
|
||||
public int? NumInvoices { get; set; }
|
||||
public int? HistDaysOs { get; set; }
|
||||
public int? LargDaysOs { get; set; }
|
||||
public short? LastDaysOs { get; set; }
|
||||
public decimal? AvgBalOs { get; set; }
|
||||
public decimal? LargeBalOs { get; set; }
|
||||
public decimal? LastBalOs { get; set; }
|
||||
public string Whse { get; set; }
|
||||
public string Charfld1 { get; set; }
|
||||
public string Charfld2 { get; set; }
|
||||
public string Charfld3 { get; set; }
|
||||
public decimal? Decifld1 { get; set; }
|
||||
public decimal? Decifld2 { get; set; }
|
||||
public decimal? Decifld3 { get; set; }
|
||||
public bool Logifld { get; set; }
|
||||
public DateTime? Datefld { get; set; }
|
||||
public string TaxRegNum1 { get; set; }
|
||||
public string BankCode { get; set; }
|
||||
public string TaxRegNum2 { get; set; }
|
||||
public string PayType { get; set; }
|
||||
public bool EdiCust { get; set; }
|
||||
public string BranchId { get; set; }
|
||||
public string TransNat { get; set; }
|
||||
public string Delterm { get; set; }
|
||||
public string ProcessInd { get; set; }
|
||||
public bool UseExchRate { get; set; }
|
||||
public string TaxCode1 { get; set; }
|
||||
public string TaxCode2 { get; set; }
|
||||
public string Pricecode { get; set; }
|
||||
public bool ShipEarly { get; set; }
|
||||
public bool ShipPartial { get; set; }
|
||||
public string LangCode { get; set; }
|
||||
public string EndUserType { get; set; }
|
||||
public string ShipSite { get; set; }
|
||||
public bool LcrReqd { get; set; }
|
||||
public string CustBank { get; set; }
|
||||
public bool DraftPrintFlag { get; set; }
|
||||
public bool RcvInternalEmail { get; set; }
|
||||
public string CustomerEmailAddr { get; set; }
|
||||
public bool SendCustomerEmail { get; set; }
|
||||
public bool ApsPullUp { get; set; }
|
||||
public string DoInvoice { get; set; }
|
||||
public bool Consolidate { get; set; }
|
||||
public string InvFreq { get; set; }
|
||||
public bool Summarize { get; set; }
|
||||
public bool NoteExistsFlag { get; set; }
|
||||
public DateTime RecordDate { get; set; }
|
||||
public Guid RowPointer { get; set; }
|
||||
public bool Einvoice { get; set; }
|
||||
public decimal? OrderBal { get; set; }
|
||||
public decimal? PostedBal { get; set; }
|
||||
public string CreatedBy { get; set; }
|
||||
public string UpdatedBy { get; set; }
|
||||
public DateTime CreateDate { get; set; }
|
||||
public string CrmGuid { get; set; }
|
||||
public bool InWorkflow { get; set; }
|
||||
public bool PrintPackInv { get; set; }
|
||||
public bool OnePackInv { get; set; }
|
||||
public string InvCategory { get; set; }
|
||||
public bool IncludeTaxInPrice { get; set; }
|
||||
public string TransNat2 { get; set; }
|
||||
public bool UseRevisionPayDays { get; set; }
|
||||
public int? RevisionDay { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayStartTime2 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime1 { get; set; }
|
||||
public TimeSpan? RevisionDayEndTime2 { get; set; }
|
||||
public int? PayDay { get; set; }
|
||||
public TimeSpan? PayDayStartTime1 { get; set; }
|
||||
public TimeSpan? PayDayStartTime2 { get; set; }
|
||||
public TimeSpan? PayDayEndTime1 { get; set; }
|
||||
public TimeSpan? PayDayEndTime2 { get; set; }
|
||||
public string ExportType { get; set; }
|
||||
public bool ActiveForDataIntegration { get; set; }
|
||||
public bool ShowInShipToDropDownList { get; set; }
|
||||
public bool ShowInDropDownList { get; set; }
|
||||
public string SicCode { get; set; }
|
||||
public int? NumberOfEmployees { get; set; }
|
||||
public decimal? CompanyRevenue { get; set; }
|
||||
public string TerritoryCode { get; set; }
|
||||
public string SalesTeamId { get; set; }
|
||||
public short? DaysShippedBeforeDueDateTolerance { get; set; }
|
||||
public short? DaysShippedAfterDueDateTolerance { get; set; }
|
||||
public decimal? ShippedOverOrderedQtyTolerance { get; set; }
|
||||
public decimal? ShippedUnderOrderedQtyTolerance { get; set; }
|
||||
public int DefaultShipTo { get; set; }
|
||||
public bool IncludeOrdersInTaxRpt { get; set; }
|
||||
public decimal? ConstructiveSalePricePct { get; set; }
|
||||
public string Uf_ZPL_FedId { get; set; }
|
||||
public string Uf_ZPL_VATRegisterCode { get; set; }
|
||||
public int? Uf_INT_CustSeq { get; set; }
|
||||
public bool Uf_INT_Replicate { get; set; }
|
||||
public int? Uf_FKR_FA_SL_SYKOF { get; set; }
|
||||
public bool? Uf_FKR_FA_Eksport_SYKOF { get; set; }
|
||||
public string Uf_FKR_FA_Kod_Dostawcy_u_Klienta { get; set; }
|
||||
public string Uf_FKR_FA_Rampa { get; set; }
|
||||
public string Uf_FKR_FA_Zaklad_Przeznaczenia { get; set; }
|
||||
public char? Uf_FKR_Customer_Status { get; set; }
|
||||
public bool? Uf_bpx_customer_printbatch { get; set; }
|
||||
public string Uf_cust_receiver_line1 { get; set; }
|
||||
public string Uf_cust_receiver_line2 { get; set; }
|
||||
public int? Uf_cust_supplier_no { get; set; }
|
||||
}
|
||||
@@ -22,7 +22,7 @@ public class CustomerTp
|
||||
public bool ValCredit { get; set; }
|
||||
public string NoteProc { get; set; }
|
||||
public string UseDate { get; set; }
|
||||
public int? DateOffset { get; set; }
|
||||
public short? DateOffset { get; set; }
|
||||
public string InvCode { get; set; }
|
||||
public string AckCode { get; set; }
|
||||
public string AsnCode { get; set; }
|
||||
|
||||
@@ -65,6 +65,14 @@ namespace SytelineSaAppEfDataModel.Services
|
||||
return customerOrder;
|
||||
}
|
||||
|
||||
public async Task<CustomerOrderDto?> GetByCustomerAndPo(string customerNumber, int customerSequence,
|
||||
string poNumber)
|
||||
{
|
||||
return await context.CustomerOrders
|
||||
.Where(x => x.CustNum == customerNumber && x.CustSeq == customerSequence && x.CustPo == poNumber)
|
||||
.Select(x => mapper.Map<CustomerOrderDto>(x)).FirstOrDefaultAsync();
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<CustomerOrderLineItemDto>?> GetItemsByCoNumber(string customerOrderNumber)
|
||||
{
|
||||
List<CustomerOrderLineItemDto> customerOrderLineItems = await context.CustomerOrderLineItems
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace SytelineSaAppEfDataModel.Services
|
||||
Task<IEnumerable<CustomerOrderDto>> GetAll();
|
||||
Task<CustomerOrderDto?> GetByOrderNumber(Guid orderNumber);
|
||||
Task<CustomerOrderDto?> GetByCoNumber(string orderNumber);
|
||||
Task<CustomerOrderDto?> GetByCustomerAndPo(string customerNumber, int customerSequence, string poNumber);
|
||||
Task<IEnumerable<CustomerOrderLineItemDto>?> GetItemsByCoNumber(string customerOrderNumber);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1362,25 +1362,36 @@ namespace SytelineSaAppEfDataModel
|
||||
entity.Property(e => e.ShipCode).HasColumnName("ship_code").HasMaxLength(6).IsRequired(false);
|
||||
entity.Property(e => e.Slsman).HasColumnName("slsman").HasMaxLength(6).IsRequired(false);
|
||||
entity.Property(e => e.StateCycle).HasColumnName("state_cycle").HasMaxLength(2).IsRequired(false);
|
||||
entity.Property(e => e.FinChg).HasColumnName("fin_chg").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.FinChg).HasColumnName("fin_chg").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.LastInv).HasColumnName("last_inv").IsRequired(false);
|
||||
entity.Property(e => e.LastPaid).HasColumnName("last_paid").IsRequired(false);
|
||||
entity.Property(e => e.SalesYtd).HasColumnName("sales_ytd").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.SalesLstYr).HasColumnName("sales_lst_yr").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.SalesLstYr).HasColumnName("sales_lst_yr").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.DiscYtd).HasColumnName("disc_ytd").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.DiscLstYr).HasColumnName("disc_lst_yr").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.DiscLstYr).HasColumnName("disc_lst_yr").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.LastFinChg).HasColumnName("last_fin_chg").IsRequired(false);
|
||||
entity.Property(e => e.SalesPtd).HasColumnName("sales_ptd").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.CalcDate).HasColumnName("calc_date").IsRequired(false);
|
||||
entity.Property(e => e.NumPeriods).HasColumnName("num_periods").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.AvgDaysOs).HasColumnName("avg_days_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.NumInvoices).HasColumnName("num_invoices").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.HistDaysOs).HasColumnName("hist_days_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.LargDaysOs).HasColumnName("larg_days_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.LastDaysOs).HasColumnName("last_days_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.NumPeriods).HasColumnName("num_periods").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.AvgDaysOs).HasColumnName("avg_days_os").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.NumInvoices).HasColumnName("num_invoices").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.HistDaysOs).HasColumnName("hist_days_os").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.LargDaysOs).HasColumnName("larg_days_os").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.LastDaysOs).HasColumnName("last_days_os").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.AvgBalOs).HasColumnName("avg_bal_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.LargeBalOs).HasColumnName("large_bal_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.LastBalOs).HasColumnName("last_bal_os").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.LargeBalOs).HasColumnName("large_bal_os").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.LastBalOs).HasColumnName("last_bal_os").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Whse).HasColumnName("whse").HasMaxLength(8).IsRequired(false);
|
||||
entity.Property(e => e.Charfld1).HasColumnName("charfld1").HasMaxLength(40).IsRequired(false);
|
||||
entity.Property(e => e.Charfld2).HasColumnName("charfld2").HasMaxLength(40).IsRequired(false);
|
||||
@@ -1388,57 +1399,83 @@ namespace SytelineSaAppEfDataModel
|
||||
entity.Property(e => e.Decifld1).HasColumnName("decifld1").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.Decifld2).HasColumnName("decifld2").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.Decifld3).HasColumnName("decifld3").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.Logifld).HasColumnName("logifld").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.Logifld).HasColumnName("logifld").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.Datefld).HasColumnName("datefld").IsRequired(false);
|
||||
entity.Property(e => e.TaxRegNum1).HasColumnName("tax_reg_num1").HasMaxLength(40).IsRequired(false);
|
||||
entity.Property(e => e.BankCode).HasColumnName("bank_code").HasMaxLength(8).IsRequired(false);
|
||||
entity.Property(e => e.TaxRegNum2).HasColumnName("tax_reg_num2").HasMaxLength(40).IsRequired(false);
|
||||
entity.Property(e => e.PayType).HasColumnName("pay_type").HasMaxLength(1).HasDefaultValueSql("'C'");
|
||||
entity.Property(e => e.EdiCust).HasColumnName("edi_cust").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.EdiCust).HasColumnName("edi_cust").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.BranchId).HasColumnName("branch_id").HasMaxLength(20).IsRequired(false);
|
||||
entity.Property(e => e.TransNat).HasColumnName("trans_nat").HasMaxLength(4).IsRequired(false);
|
||||
entity.Property(e => e.Delterm).HasColumnName("delterm").HasMaxLength(8).IsRequired(false);
|
||||
entity.Property(e => e.ProcessInd).HasColumnName("process_ind").HasMaxLength(2).IsRequired(false);
|
||||
entity.Property(e => e.UseExchRate).HasColumnName("use_exch_rate").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.UseExchRate).HasColumnName("use_exch_rate").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.TaxCode1).HasColumnName("tax_code1").HasMaxLength(12).IsRequired(false);
|
||||
entity.Property(e => e.TaxCode2).HasColumnName("tax_code2").HasMaxLength(12).IsRequired(false);
|
||||
entity.Property(e => e.Pricecode).HasColumnName("pricecode").HasMaxLength(6).IsRequired(false);
|
||||
entity.Property(e => e.ShipEarly).HasColumnName("ship_early").HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShipPartial).HasColumnName("ship_partial").HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShipEarly).HasColumnName("ship_early").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShipPartial).HasColumnName("ship_partial").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("1");
|
||||
entity.Property(e => e.LangCode).HasColumnName("lang_code").HasMaxLength(6).IsRequired(false);
|
||||
entity.Property(e => e.EndUserType).HasColumnName("end_user_type").HasMaxLength(6).IsRequired(false);
|
||||
entity.Property(e => e.ShipSite).HasColumnName("ship_site").HasMaxLength(16).IsRequired(false);
|
||||
entity.Property(e => e.LcrReqd).HasColumnName("lcr_reqd").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.LcrReqd).HasColumnName("lcr_reqd").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.CustBank).HasColumnName("cust_bank").HasMaxLength(8).IsRequired(false);
|
||||
entity.Property(e => e.DraftPrintFlag).HasColumnName("draft_print_flag").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.RcvInternalEmail).HasColumnName("rcv_internal_email").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.CustomerEmailAddr).HasColumnName("customer_email_addr").HasMaxLength(60).IsRequired(false);
|
||||
entity.Property(e => e.SendCustomerEmail).HasColumnName("send_customer_email").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.ApsPullUp).HasColumnName("aps_pull_up").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.DraftPrintFlag).HasColumnName("draft_print_flag").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.RcvInternalEmail).HasColumnName("rcv_internal_email").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.CustomerEmailAddr).HasColumnName("customer_email_addr").HasMaxLength(60)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.SendCustomerEmail).HasColumnName("send_customer_email").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.ApsPullUp).HasColumnName("aps_pull_up").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.DoInvoice).HasColumnName("do_invoice").HasMaxLength(1).HasDefaultValueSql("'S'");
|
||||
entity.Property(e => e.Consolidate).HasColumnName("consolidate").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.Consolidate).HasColumnName("consolidate").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.InvFreq).HasColumnName("inv_freq").HasMaxLength(1).HasDefaultValueSql("'W'");
|
||||
entity.Property(e => e.Summarize).HasColumnName("summarize").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.NoteExistsFlag).HasColumnName("NoteExistsFlag").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.Summarize).HasColumnName("summarize").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.NoteExistsFlag).HasColumnName("NoteExistsFlag").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.RecordDate).HasColumnName("RecordDate").HasDefaultValueSql("getdate()");
|
||||
entity.Property(e => e.RowPointer).HasColumnName("RowPointer").HasColumnType("uniqueidentifier").HasDefaultValueSql("newid()");
|
||||
entity.Property(e => e.Einvoice).HasColumnName("einvoice").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.RowPointer).HasColumnName("RowPointer").HasColumnType("uniqueidentifier")
|
||||
.HasDefaultValueSql("newid()");
|
||||
entity.Property(e => e.Einvoice).HasColumnName("einvoice").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.OrderBal).HasColumnName("order_bal").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.PostedBal).HasColumnName("posted_bal").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.CreatedBy).HasColumnName("CreatedBy").HasMaxLength(60).HasDefaultValueSql("suser_sname()");
|
||||
entity.Property(e => e.UpdatedBy).HasColumnName("UpdatedBy").HasMaxLength(60).HasDefaultValueSql("suser_sname()");
|
||||
entity.Property(e => e.CreatedBy).HasColumnName("CreatedBy").HasMaxLength(60)
|
||||
.HasDefaultValueSql("suser_sname()");
|
||||
entity.Property(e => e.UpdatedBy).HasColumnName("UpdatedBy").HasMaxLength(60)
|
||||
.HasDefaultValueSql("suser_sname()");
|
||||
entity.Property(e => e.CreateDate).HasColumnName("CreateDate").HasDefaultValueSql("getdate()");
|
||||
entity.Property(e => e.CrmGuid).HasColumnName("crm_guid").HasMaxLength(36).IsRequired(false);
|
||||
entity.Property(e => e.InWorkflow).HasColumnName("InWorkflow").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.PrintPackInv).HasColumnName("print_pack_inv").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.OnePackInv).HasColumnName("one_pack_inv").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.InvCategory).HasColumnName("inv_category").HasMaxLength(20).HasDefaultValueSql("'DEFAULTCATEGORY'");
|
||||
entity.Property(e => e.IncludeTaxInPrice).HasColumnName("include_tax_in_price").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.InWorkflow).HasColumnName("InWorkflow").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.PrintPackInv).HasColumnName("print_pack_inv").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.OnePackInv).HasColumnName("one_pack_inv").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.InvCategory).HasColumnName("inv_category").HasMaxLength(20)
|
||||
.HasDefaultValueSql("'DEFAULTCATEGORY'");
|
||||
entity.Property(e => e.IncludeTaxInPrice).HasColumnName("include_tax_in_price").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.TransNat2).HasColumnName("trans_nat_2").HasMaxLength(4).IsRequired(false);
|
||||
entity.Property(e => e.UseRevisionPayDays).HasColumnName("use_revision_pay_days").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.UseRevisionPayDays).HasColumnName("use_revision_pay_days")
|
||||
.HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.RevisionDay).HasColumnName("revision_day").IsRequired(false);
|
||||
entity.Property(e => e.RevisionDayStartTime1).HasColumnName("revision_day_start_time##1").IsRequired(false);
|
||||
entity.Property(e => e.RevisionDayStartTime2).HasColumnName("revision_day_start_time##2").IsRequired(false);
|
||||
entity.Property(e => e.RevisionDayStartTime1).HasColumnName("revision_day_start_time##1")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.RevisionDayStartTime2).HasColumnName("revision_day_start_time##2")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.RevisionDayEndTime1).HasColumnName("revision_day_end_time##1").IsRequired(false);
|
||||
entity.Property(e => e.RevisionDayEndTime2).HasColumnName("revision_day_end_time##2").IsRequired(false);
|
||||
entity.Property(e => e.PayDay).HasColumnName("pay_day").IsRequired(false);
|
||||
@@ -1446,35 +1483,58 @@ namespace SytelineSaAppEfDataModel
|
||||
entity.Property(e => e.PayDayStartTime2).HasColumnName("pay_day_start_time##2").IsRequired(false);
|
||||
entity.Property(e => e.PayDayEndTime1).HasColumnName("pay_day_end_time##1").IsRequired(false);
|
||||
entity.Property(e => e.PayDayEndTime2).HasColumnName("pay_day_end_time##2").IsRequired(false);
|
||||
entity.Property(e => e.ExportType).HasColumnName("export_type").HasMaxLength(1).HasDefaultValueSql("'N'");
|
||||
entity.Property(e => e.ActiveForDataIntegration).HasColumnName("active_for_data_integration").HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShowInShipToDropDownList).HasColumnName("show_in_ship_to_drop_down_list").HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShowInDropDownList).HasColumnName("show_in_drop_down_list").HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ExportType).HasColumnName("export_type").HasMaxLength(1)
|
||||
.HasDefaultValueSql("'N'");
|
||||
entity.Property(e => e.ActiveForDataIntegration).HasColumnName("active_for_data_integration")
|
||||
.HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShowInShipToDropDownList).HasColumnName("show_in_ship_to_drop_down_list")
|
||||
.HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.ShowInDropDownList).HasColumnName("show_in_drop_down_list")
|
||||
.HasColumnType("tinyint").HasDefaultValueSql("1");
|
||||
entity.Property(e => e.SicCode).HasColumnName("sic_code").HasMaxLength(8).IsRequired(false);
|
||||
entity.Property(e => e.NumberOfEmployees).HasColumnName("number_of_employees").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.CompanyRevenue).HasColumnName("company_revenue").HasDefaultValueSql("0").IsRequired(false);
|
||||
entity.Property(e => e.TerritoryCode).HasColumnName("territory_code").HasMaxLength(10).IsRequired(false);
|
||||
entity.Property(e => e.NumberOfEmployees).HasColumnName("number_of_employees").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.CompanyRevenue).HasColumnName("company_revenue").HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.TerritoryCode).HasColumnName("territory_code").HasMaxLength(10)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.SalesTeamId).HasColumnName("sales_team_id").HasMaxLength(10).IsRequired(false);
|
||||
entity.Property(e => e.DaysShippedBeforeDueDateTolerance).HasColumnName("days_shipped_before_due_date_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.DaysShippedAfterDueDateTolerance).HasColumnName("days_shipped_after_due_date_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.ShippedOverOrderedQtyTolerance).HasColumnName("shipped_over_ordered_qty_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.ShippedUnderOrderedQtyTolerance).HasColumnName("shipped_under_ordered_qty_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.DaysShippedBeforeDueDateTolerance)
|
||||
.HasColumnName("days_shipped_before_due_date_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.DaysShippedAfterDueDateTolerance)
|
||||
.HasColumnName("days_shipped_after_due_date_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.ShippedOverOrderedQtyTolerance)
|
||||
.HasColumnName("shipped_over_ordered_qty_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.ShippedUnderOrderedQtyTolerance)
|
||||
.HasColumnName("shipped_under_ordered_qty_tolerance").IsRequired(false);
|
||||
entity.Property(e => e.DefaultShipTo).HasColumnName("default_ship_to").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.IncludeOrdersInTaxRpt).HasColumnName("include_orders_in_tax_rpt").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.ConstructiveSalePricePct).HasColumnName("constructive_sale_price_pct").IsRequired(false);
|
||||
entity.Property(e => e.IncludeOrdersInTaxRpt).HasColumnName("include_orders_in_tax_rpt")
|
||||
.HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.ConstructiveSalePricePct).HasColumnName("constructive_sale_price_pct")
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Uf_ZPL_FedId).HasColumnName("uf_ZPL_FedId").HasMaxLength(20).IsRequired(false);
|
||||
entity.Property(e => e.Uf_ZPL_VATRegisterCode).HasColumnName("uf_ZPL_VATRegisterCode").HasMaxLength(20).IsRequired(false);
|
||||
entity.Property(e => e.Uf_ZPL_VATRegisterCode).HasColumnName("uf_ZPL_VATRegisterCode").HasMaxLength(20)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Uf_INT_CustSeq).HasColumnName("Uf_INT_CustSeq").IsRequired(false);
|
||||
entity.Property(e => e.Uf_INT_Replicate).HasColumnName("UF_INT_Replicate").HasColumnType("tinyint").HasDefaultValueSql("0");
|
||||
entity.Property(e => e.Uf_INT_Replicate).HasColumnName("UF_INT_Replicate").HasColumnType("tinyint")
|
||||
.HasDefaultValueSql("0");
|
||||
entity.Property(e => e.Uf_FKR_FA_SL_SYKOF).HasColumnName("Uf_FKR_FA_SL_SYKOF").IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Eksport_SYKOF).HasColumnName("Uf_FKR_FA_Eksport_SYKOF").HasColumnType("tinyint").IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Kod_Dostawcy_u_Klienta).HasColumnName("Uf_FKR_FA_Kod_Dostawcy_u_Klienta").HasMaxLength(20).IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Rampa).HasColumnName("Uf_FKR_FA_Rampa").HasMaxLength(20).IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Zaklad_Przeznaczenia).HasColumnName("Uf_FKR_FA_Zaklad_Przeznaczenia").HasMaxLength(100).IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_Customer_Status).HasColumnName("Uf_FKR_Customer_Status").HasMaxLength(1).IsRequired(false);
|
||||
entity.Property(e => e.Uf_bpx_customer_printbatch).HasColumnName("Uf_bpx_customer_printbatch").HasColumnType("tinyint").IsRequired(false);
|
||||
entity.Property(e => e.Uf_cust_receiver_line1).HasColumnName("Uf_cust_receiver_line1").HasMaxLength(100).IsRequired(false);
|
||||
entity.Property(e => e.Uf_cust_receiver_line2).HasColumnName("Uf_cust_receiver_line2").HasMaxLength(100).IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Eksport_SYKOF).HasColumnName("Uf_FKR_FA_Eksport_SYKOF")
|
||||
.HasColumnType("tinyint").IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Kod_Dostawcy_u_Klienta)
|
||||
.HasColumnName("Uf_FKR_FA_Kod_Dostawcy_u_Klienta").HasMaxLength(20).IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Rampa).HasColumnName("Uf_FKR_FA_Rampa").HasMaxLength(20)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_FA_Zaklad_Przeznaczenia).HasColumnName("Uf_FKR_FA_Zaklad_Przeznaczenia")
|
||||
.HasMaxLength(100).IsRequired(false);
|
||||
entity.Property(e => e.Uf_FKR_Customer_Status).HasColumnName("Uf_FKR_Customer_Status").HasMaxLength(1)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Uf_bpx_customer_printbatch).HasColumnName("Uf_bpx_customer_printbatch")
|
||||
.HasColumnType("tinyint").IsRequired(false);
|
||||
entity.Property(e => e.Uf_cust_receiver_line1).HasColumnName("Uf_cust_receiver_line1").HasMaxLength(100)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Uf_cust_receiver_line2).HasColumnName("Uf_cust_receiver_line2").HasMaxLength(100)
|
||||
.IsRequired(false);
|
||||
entity.Property(e => e.Uf_cust_supplier_no).HasColumnName("Uf_cust_supplier_no").IsRequired(false);
|
||||
|
||||
entity.HasIndex(e => e.RowPointer).HasDatabaseName("IX_customer_RowPointer").IsUnique();
|
||||
@@ -1588,7 +1648,7 @@ namespace SytelineSaAppEfDataModel
|
||||
|
||||
entity.Property(e => e.DateOffset)
|
||||
.HasColumnName("date_offset")
|
||||
.HasColumnType("int")
|
||||
.HasColumnType("smallint")
|
||||
.HasDefaultValueSql("0")
|
||||
.IsRequired(false);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
<PackageId>SytelineSaAppEfDataModel</PackageId>
|
||||
<Version>1.1</Version>
|
||||
<Version>1.1.2</Version>
|
||||
<Authors>PK</Authors>
|
||||
<Description>Data Manager for SYTELINE_SA_APP database</Description>
|
||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
|
||||
Reference in New Issue
Block a user