mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-05-19 03:58:19 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user