aboutsummaryrefslogtreecommitdiff
path: root/Source/ExcelDNA/Functions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Source/ExcelDNA/Functions.cs')
-rw-r--r--Source/ExcelDNA/Functions.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/ExcelDNA/Functions.cs b/Source/ExcelDNA/Functions.cs
new file mode 100644
index 0000000..a9bdfca
--- /dev/null
+++ b/Source/ExcelDNA/Functions.cs
@@ -0,0 +1,19 @@
+using ExcelDna.Integration;
+
+namespace Rehau.Sku.Assist
+{
+ public class Functions
+ {
+ [ExcelFunction]
+ public static object RAUNAME(string request)
+ => SkuAssist.GetProduct(request, ProductField.Name);
+
+ [ExcelFunction]
+ public static object RAUSKU(string request)
+ => SkuAssist.GetProduct(request, ProductField.Id);
+
+ [ExcelFunction]
+ public static object RAUPRICE(string request)
+ => SkuAssist.GetProduct(request, ProductField.Price);
+ }
+} \ No newline at end of file