This commit is contained in:
Bobbie Hodgetts
2020-09-23 16:49:56 +01:00
parent dcd32b76fa
commit f95c1d7508
9 changed files with 42 additions and 10 deletions

View File

@@ -92,13 +92,13 @@ namespace bnhtrade.Core.Data.Database.Stock
string sql = @"
SELECT tblStockSkuTransaction.StockSkuTransactionID AS SkuTransactionId
,tblStockSkuTransaction.TransactionDate
,tblStockSkuTransaction.StockSkuTransactionTypeID AS SkuTransactionTypeId
,tblStockSkuTransaction.ForeignKey
,tblStockSkuTransaction.Reference
,tblStockSkuTransaction.Detail
,tblStockSkuTransaction.Quantity
,tblStockSkuTransaction.IsProcessed
,tblStockSkuTransaction.StockJournalID AS StockJournalId
,tblStockSkuTransactionType.TypeCode AS SkuTransactionTypeCode
,tblStockSkuTransactionType.TypeName AS SkuTransactionTypeName
,tblSku.skuSkuNumber AS SkuNumber
,tblStockSkuTransaction.SkuID

View File

@@ -42,7 +42,7 @@ namespace bnhtrade.Core.Logic.Stock
public int CurrentTransactionId { get; private set; }
public int CurrentTransactionTypeId { get; private set; }
public string CurrentTransactionTypeCode { get; private set; }
public Model.Stock.SkuTransaction CurrentSkuTransaction { get; private set; }
@@ -54,7 +54,7 @@ namespace bnhtrade.Core.Logic.Stock
ProgressMessage = null;
ReconciliationComplete = false;
CurrentTransactionId = 0;
CurrentTransactionTypeId = 0;
CurrentTransactionTypeCode = null;
}
/// <summary>
@@ -109,7 +109,7 @@ namespace bnhtrade.Core.Logic.Stock
// setup return values
CurrentSkuTransaction = transList[i];
CurrentTransactionId = transList[i].SkuTransactionId;
CurrentTransactionTypeId = transList[i].SkuTransactionType.TypeId;
CurrentTransactionTypeCode = transList[i].SkuTransactionType.TypeCode;
LastItemDateTime = transList[i].TransactionDate;
// load type into variable

View File

@@ -14,7 +14,6 @@ namespace bnhtrade.Core.Model.Stock
private short? quantity = null;
private int? stockjournalId = null;
private int? skuTransactionId = null;
private int? skuTransactionTypeId = null;
private int? foreignKey = null;
private string skuTransactionTypeCode;
private Model.Stock.SkuTransactionType skuTransactionType;

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace bnhtrade.Core.Test.COM
{
class COMClassLib
{
}
}

View File

@@ -166,6 +166,7 @@
<Compile Include="Model\Stock\SkuTransaction.cs" />
<Compile Include="Test\Account\Account.cs" />
<Compile Include="Test\AutoExec.cs" />
<Compile Include="Test\COM\COMClassLib.cs" />
<Compile Include="Test\Export\Export.cs" />
<Compile Include="Test\Import\AmazonSettlement.cs" />
<Compile Include="Test\InboundShipmentInfo.cs" />