mirror of
https://github.com/stokebob/BealeEngineering.git
synced 2026-03-19 06:37:15 +00:00
Handle-zero-or-negative-number-on-invoice-line
This commit is contained in:
@@ -81,11 +81,11 @@ namespace BealeEngineering.Core.Model.Sale
|
||||
foreach (var line in InvoiceLineList)
|
||||
{
|
||||
// checks on each line
|
||||
if (line.Quantity <= 0)
|
||||
{
|
||||
var result = new ValidationResult("Quantity must be greater than zero.");
|
||||
ValidationResults.Add(result);
|
||||
}
|
||||
//if (line.Quantity <= 0)
|
||||
//{
|
||||
// var result = new ValidationResult("Quantity must be greater than zero.");
|
||||
// ValidationResults.Add(result);
|
||||
//}
|
||||
|
||||
lineTotal = lineTotal + line.LineNetAmount;
|
||||
lineTaxTotal = lineTaxTotal + line.TaxAmount;
|
||||
|
||||
Reference in New Issue
Block a user