Commit 6e00d159 by 泽锋 李

利润 释放头程费用 释放销售成本 的现金流支付周期,自动去销售金额的

parent f862e078
......@@ -980,6 +980,15 @@ where t1.create_time>=@btime and t1.create_time<=@etime ";
/// </summary>
public static DateTime CalculationPayTime(List<dc_report_cash_flow_config> configs, DateTime occur_time, int data_type, string platform_type, string web_stite)
{
if (
data_type == (int)dc_report_cash_flow_log_data_type_enum.利润
|| data_type == (int)dc_report_cash_flow_log_data_type_enum.释放头程费用
|| data_type == (int)dc_report_cash_flow_log_data_type_enum.释放销售成本
)
{
data_type = (int)dc_report_cash_flow_log_data_type_enum.销售金额;
}
var item_configs = configs.Where(s => s.data_type == data_type
&& (s.platform_type == "" || s.platform_type.Equals(platform_type))
&& (s.web_stite == "" || s.web_stite.Equals(web_stite))
......
......@@ -71,6 +71,40 @@ namespace AutoTurnOver.Models
public class dc_report_cash_flow_log_dto : dc_report_cash_flow_log
{
public string sys_url {
get
{
if(
(int)dc_report_cash_flow_log_data_type_enum.FBA== data_type
|| (int)dc_report_cash_flow_log_data_type_enum.PayPal == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.利润 == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.尾程费用 == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.平台费用 == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.释放头程费用 == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.释放销售成本 == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.销售数量 == data_type
|| (int)dc_report_cash_flow_log_data_type_enum.销售金额 == data_type
)
{
return "http://oms.bailuntec.com/#/bailun-order/all-orders?baseQueryKey=BailunOrderNo&baseQueryValue="+no;
}
else if((int)dc_report_cash_flow_log_data_type_enum.新增头程费用 == data_type || (int)dc_report_cash_flow_log_data_type_enum.新增头程费用_首单 == data_type)
{
return "http://trans.bailuntec.com/#/allot-manage/ordinaryAllotOrderList?ordercode=" + no;
}
else if ((int)dc_report_cash_flow_log_data_type_enum.新增采购费用 == data_type || (int)dc_report_cash_flow_log_data_type_enum.新增采购费用_首单 == data_type)
{
return "http://api.purchase.bailuntec.com/Purchase/Home/ApiDetail2?buyno=" + no;
} else if ((int)dc_report_cash_flow_log_data_type_enum.退款 == data_type)
{
return "http://crm.bailuntec.com/CustomerService/Detail?id=" + item_no;
}
else
{
return null;
}
} }
public string data_type_str
{
get
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment