Amazon inventory ledger testing and implementation

Tested what I can until more data for the Amazon Ledger Detail table comes in
This commit is contained in:
Bobbie Hodgetts
2024-11-21 17:50:18 +00:00
committed by GitHub
parent 7a12b49b44
commit c8689e3bba
10 changed files with 134 additions and 184 deletions
+13 -4
View File
@@ -15,7 +15,10 @@ namespace bnhtrade.Core.Logic.Validate
/// <returns></returns>
public static bool SkuNumber(string skuNumber)
{
if (string.IsNullOrEmpty(skuNumber)) { return false;}
if (string.IsNullOrEmpty(skuNumber))
{
return false;
}
int count = 0;
foreach (char c in skuNumber)
@@ -50,11 +53,17 @@ namespace bnhtrade.Core.Logic.Validate
public static bool DateTime(DateTime dateTime)
{
if (dateTime == default(DateTime))
{ return false; }
{
return false;
}
else if (dateTime.Kind != DateTimeKind.Utc)
{ return false; }
{
return false;
}
else
{ return true; }
{
return true;
}
}
}
}