Fix price double cast
This commit is contained in:
parent
5c9ee3ae65
commit
44a48b0818
@ -2,6 +2,7 @@
|
|||||||
using ExcelDna.Integration;
|
using ExcelDna.Integration;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Globalization;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Runtime.Caching;
|
using System.Runtime.Caching;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
@ -96,7 +97,7 @@ namespace Rehau.Sku.Assist
|
|||||||
case ProductField.Id:
|
case ProductField.Id:
|
||||||
return product.Id;
|
return product.Id;
|
||||||
case ProductField.Price:
|
case ProductField.Price:
|
||||||
return product.Price;
|
return double.Parse((string)product.Price, CultureInfo.InvariantCulture);
|
||||||
default:
|
default:
|
||||||
return ExcelError.ExcelErrorValue;
|
return ExcelError.ExcelErrorValue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user