|
|
|
@ -406,22 +406,22 @@ namespace DSWeb.MvcShipping.DAL.MsRptZjTotalDAL
|
|
|
|
|
if (item.SETTLETIME == null)
|
|
|
|
|
{
|
|
|
|
|
feedays = (DateTime.Now - Convert.ToDateTime(head.ETD)).Days - days;
|
|
|
|
|
amountfee += Convert.ToDecimal(item.EXCHANGERATE * item.AMOUNT * 0.12M / 365);
|
|
|
|
|
amountfee += feedays * Convert.ToDecimal(item.EXCHANGERATE * item.AMOUNT * 0.12M / 365);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (item.SETTLEMENT == item.AMOUNT)
|
|
|
|
|
{
|
|
|
|
|
feedays = ((DateTime)item.SETTLETIME - Convert.ToDateTime(head.ETD)).Days - days;
|
|
|
|
|
amountfee += Convert.ToDecimal((item.SETTLEAMOUNT) * 0.12M / 365);
|
|
|
|
|
amountfee += feedays * Convert.ToDecimal((item.SETTLEAMOUNT) * 0.12M / 365);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
feedays = ((DateTime)item.SETTLETIME - Convert.ToDateTime(head.ETD)).Days - days;
|
|
|
|
|
amountfee += Convert.ToDecimal((item.SETTLEAMOUNT) * 0.12M / 365);
|
|
|
|
|
amountfee += feedays * Convert.ToDecimal((item.SETTLEAMOUNT) * 0.12M / 365);
|
|
|
|
|
|
|
|
|
|
feedays = (DateTime.Now - Convert.ToDateTime(head.ETD)).Days - days;
|
|
|
|
|
amountfee += Convert.ToDecimal((item.EXCHANGERATE * item.AMOUNT - item.SETTLEAMOUNT) * 0.12M / 365);
|
|
|
|
|
amountfee += feedays * Convert.ToDecimal((item.EXCHANGERATE * item.AMOUNT - item.SETTLEAMOUNT) * 0.12M / 365);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|