Skip to content

Commit 2f5a9ce

Browse files
committed
ParentCurrencyExchangeRate update fix
1 parent dd7418c commit 2f5a9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectIvy.BL/MapExtensions/ExpenseExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static Expense ToEntity(this ExpenseBinding binding, MainContext context,
2626
entity.Modified = DateTime.Now;
2727
entity.ParentCurrencyId = string.IsNullOrEmpty(binding.ParentCurrencyId) ? null : context.Currencies.SingleOrDefault(x => x.Code == binding.ParentCurrencyId)?.Id;
2828
entity.PaymentTypeId = context.PaymentTypes.GetId(binding.PaymentTypeId);
29-
entity.ParentCurrencyExchangeRate = entity.ParentCurrencyExchangeRate;
29+
entity.ParentCurrencyExchangeRate = binding.ParentCurrencyExchangeRate;
3030
entity.PoiId = context.Pois.GetId(binding.PoiId);
3131
entity.ValueId = binding.Id;
3232
entity.VendorId = context.Vendors.GetId(binding.VendorId);

0 commit comments

Comments
 (0)