|
@@ -236,10 +236,13 @@ namespace Comal.Classes
|
|
|
ExTax = Qty * Cost;
|
|
|
}
|
|
|
|
|
|
- else if (name.Equals(nameof(Cost)) && (after is double cost) &&
|
|
|
- PurchaseOrderLink.SupplierLink.Currency.ID != Guid.Empty)
|
|
|
+ else if (name.Equals(nameof(Cost)) && (after is double cost))
|
|
|
+
|
|
|
{
|
|
|
- ForeignCurrencyCost = cost * (PurchaseOrderLink.SupplierLink.Currency.ExchangeRate.IsEffectivelyEqual(0.0) ? 1.0 : PurchaseOrderLink.SupplierLink.Currency.ExchangeRate);
|
|
|
+ ExTax = cost * Qty;
|
|
|
+ if (PurchaseOrderLink.SupplierLink.Currency.ID != Guid.Empty)
|
|
|
+ ForeignCurrencyCost = cost * (PurchaseOrderLink.SupplierLink.Currency.ExchangeRate.IsEffectivelyEqual(0.0) ? 1.0 : PurchaseOrderLink.SupplierLink.Currency.ExchangeRate);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
else if (name.Equals(nameof(ExTax)) && after is double extax)
|