This commit is contained in:
2025-07-14 20:28:40 +01:00
parent 2d751ebf80
commit ecf48ba8b4
6 changed files with 274 additions and 181 deletions
+1 -12
View File
@@ -87,18 +87,7 @@ namespace bnhtrade.Core.Model.Stock
{
get
{
if (Quantity > 0)
{
return true;
}
else if (Quantity < 0)
{
return false;
}
else
{
throw new InvalidOperationException("Quantity cannot be zero for a journal post.");
}
return !IsCredit;
}
}