DS7Zhanhao
hanxuntao 2 years ago
commit a345036932

@ -406,22 +406,22 @@ namespace DSWeb.MvcShipping.DAL.MsRptZjTotalDAL
if (item.SETTLETIME == null) if (item.SETTLETIME == null)
{ {
feedays = (DateTime.Now - Convert.ToDateTime(head.ETD)).Days - days; 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 else
{ {
if (item.SETTLEMENT == item.AMOUNT) if (item.SETTLEMENT == item.AMOUNT)
{ {
feedays = ((DateTime)item.SETTLETIME - Convert.ToDateTime(head.ETD)).Days - days; 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 else
{ {
feedays = ((DateTime)item.SETTLETIME - Convert.ToDateTime(head.ETD)).Days - days; 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; 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);
} }
} }

Loading…
Cancel
Save