Skip to content

Commit

Permalink
DUKA SQL order export Divide by zero error
Browse files Browse the repository at this point in the history
  • Loading branch information
DWDBE committed Nov 25, 2024
1 parent dc6e3ef commit e358892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>10.8.3</Version>
<Version>10.8.4</Version>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>Order Provider</Title>
<Description>Order Provider</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/OrderSourceReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected override string GetColumns()
}
break;
case "EcomOrderLines":
columns = columns + ", (-1 * OrderLineTotalDiscountWithVAT) / OrderLinePriceWithVat * 100 as [OrderLineCalculatedDiscountPercentage]";
columns = columns + ", (-1 * OrderLineTotalDiscountWithVAT) / NULLIF(OrderLinePriceWithVat, 0) * 100 as [OrderLineCalculatedDiscountPercentage]";
break;

}
Expand Down

0 comments on commit e358892

Please sign in to comment.