Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Fix export products to XLS
KrzysztofPajak4a5930ad0706
diff --git a/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.cs b/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.csindex b3d72eefc..046fbff39 100644--- a/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.cs+++ b/src/Business/Grand.Business.System/Services/ExportImport/ExportManager.cs@@ -151,7 +151,7 @@ namespace Grand.Business.System.Services.ExportImportvar properties = new[]{new PropertyByName<Product>("Id", p => p.Id),- new PropertyByName<Product>("ProductTypeId", p => p.ProductTypeId),+ new PropertyByName<Product>("ProductTypeId", p => (int)p.ProductTypeId),new PropertyByName<Product>("ParentGroupedProductId", p => p.ParentGroupedProductId),new PropertyByName<Product>("VisibleIndividually", p => p.VisibleIndividually),new PropertyByName<Product>("Name", p => p.Name),@@ -173,7 +173,7 @@ namespace Grand.Business.System.Services.ExportImportnew PropertyByName<Product>("Mpn", p => p.Mpn),new PropertyByName<Product>("Gtin", p => p.Gtin),new PropertyByName<Product>("IsGiftVoucher", p => p.IsGiftVoucher),- new PropertyByName<Product>("GiftVoucherTypeId", p => p.GiftVoucherTypeId),+ new PropertyByName<Product>("GiftVoucherTypeId", p => (int)p.GiftVoucherTypeId),new PropertyByName<Product>("OverriddenGiftVoucherAmount", p => p.OverGiftAmount),new PropertyByName<Product>("RequireOtherProducts", p => p.RequireOtherProducts),new PropertyByName<Product>("RequiredProductIds", p => p.RequiredProductIds),@@ -182,17 +182,17 @@ namespace Grand.Business.System.Services.ExportImportnew PropertyByName<Product>("DownloadId", p => p.DownloadId),new PropertyByName<Product>("UnlimitedDownloads", p => p.UnlimitedDownloads),new PropertyByName<Product>("MaxNumberOfDownloads", p => p.MaxNumberOfDownloads),- new PropertyByName<Product>("DownloadActivationTypeId", p => p.DownloadActivationTypeId),+ new PropertyByName<Product>("DownloadActivationTypeId", p => (int)p.DownloadActivationTypeId),new PropertyByName<Product>("HasSampleDownload", p => p.HasSampleDownload),new PropertyByName<Product>("SampleDownloadId", p => p.SampleDownloadId),new PropertyByName<Product>("HasUserAgreement", p => p.HasUserAgreement),new PropertyByName<Product>("UserAgreementText", p => p.UserAgreementText),new PropertyByName<Product>("IsRecurring", p => p.IsRecurring),new PropertyByName<Product>("RecurringCycleLength", p => p.RecurringCycleLength),- new PropertyByName<Product>("RecurringCyclePeriodId", p => p.RecurringCyclePeriodId),+ new PropertyByName<Product>("RecurringCyclePeriodId", p => (int)p.RecurringCyclePeriodId),new PropertyByName<Product>("RecurringTotalCycles", p => p.RecurringTotalCycles),new PropertyByName<Product>("Interval", p => p.Interval),- new PropertyByName<Product>("IntervalUnitId", p => p.IntervalUnitId),+ new PropertyByName<Product>("IntervalUnitId", p => (int)p.IntervalUnitId),new PropertyByName<Product>("IsShipEnabled", p => p.IsShipEnabled),new PropertyByName<Product>("IsFreeShipping", p => p.IsFreeShipping),new PropertyByName<Product>("ShipSeparately", p => p.ShipSeparately),@@ -201,7 +201,7 @@ namespace Grand.Business.System.Services.ExportImportnew PropertyByName<Product>("IsTaxExempt", p => p.IsTaxExempt),new PropertyByName<Product>("TaxCategoryId", p => p.TaxCategoryId),new PropertyByName<Product>("IsTele", p => p.IsTele),- new PropertyByName<Product>("ManageInventoryMethodId", p => p.ManageInventoryMethodId),+ new PropertyByName<Product>("ManageInventoryMethodId", p => (int)p.ManageInventoryMethodId),new PropertyByName<Product>("UseMultipleWarehouses", p => p.UseMultipleWarehouses),new PropertyByName<Product>("WarehouseId", p => p.WarehouseId),new PropertyByName<Product>("StockQuantity", p => p.StockQuantity),@@ -209,9 +209,9 @@ namespace Grand.Business.System.Services.ExportImportnew PropertyByName<Product>("DisplayStockAvailability", p => p.StockAvailability),new PropertyByName<Product>("DisplayStockQuantity", p => p.DisplayStockQuantity),new PropertyByName<Product>("MinStockQuantity", p => p.MinStockQuantity),- new PropertyByName<Product>("LowStockActivityId", p => p.LowStockActivityId),+ new PropertyByName<Product>("LowStockActivityId", p => (int)p.LowStockActivityId),new PropertyByName<Product>("NotifyAdminForQuantityBelow", p => p.NotifyAdminForQuantityBelow),- new PropertyByName<Product>("BackorderModeId", p => p.BackorderModeId),+ new PropertyByName<Product>("BackorderModeId", p => (int)p.BackorderModeId),new PropertyByName<Product>("AllowOutOfStockSubscriptions", p => p.AllowOutOfStockSubscriptions),new PropertyByName<Product>("OrderMinimumQuantity", p => p.OrderMinimumQuantity),new PropertyByName<Product>("OrderMaximumQuantity", p => p.OrderMaximumQuantity),