Commit bc5a00af by guanzhenshan

解决月销售利润报表

parent 0b924a27
......@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPurchaseSellStock
{
class Program
{
static async Task Main(string[] args)
{
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Services>();
});
await builder.RunConsoleAsync();
}
//static void Main(string[] args)
//static async Task Main(string[] args)
//{
// var _services = new Services();
// var start = DateTime.Parse("2019-10-29");
// while (start.AddDays(1) < DateTime.Now)
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// Console.WriteLine(start);
// _services.Init(start);
// start = start.AddDays(1);
// }
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static void Main(string[] args)
{
var _services = new Services();
var start = DateTime.Parse("2019-10-30");
while (start.AddDays(1) < DateTime.Now)
{
Console.WriteLine(start);
_services.Init(start);
start = start.AddDays(1);
}
}
}
}
......@@ -5543,15 +5543,15 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
{
amount_sale = a.amount_sale.ToString("N2"),
cost_sale = (a.cost_sale+a.cost_sale_).ToString("N2"),
cost_sale_ = a.cost_sale_.ToString("N2"),
a.cost_sale_,
pt_count = a.pt_count.ToString("N2"), //(a.pt_platformfee+a.pt_ebay_postingfee+a.pt_paypal_fee+a.pt_platform_logistics_fee+a.pt_platform_ad_subscribe_fee + a.pt_platform_storage_fee+a.pt_refund_amount).ToString("N2"),
pt_platformfee = a.pt_platformfee.ToString("N2"),
pt_ebay_postingfee = a.pt_ebay_postingfee.ToString("N2"),
pt_paypal_fee = a.pt_paypal_fee.ToString("N2"),
pt_platform_logistics_fee = (a.pt_platform_logistics_fee+a.pt_platform_logistics_fee_).ToString("N2"),
pt_platform_logistics_fee_ = a.pt_platform_logistics_fee_.ToString("N2"),
a.pt_platform_logistics_fee_,
pt_platform_ad_subscribe_fee = (a.pt_platform_ad_subscribe_fee+a.pt_platform_ad_subscribe_fee_).ToString("N2"),
pt_platform_ad_subscribe_fee_ = a.pt_platform_ad_subscribe_fee_.ToString("N2"),
a.pt_platform_ad_subscribe_fee_,
pt_platform_storage_fee = a.pt_platform_storage_fee.ToString("N2"),
pt_refund_amount = a.pt_refund_amount.ToString("N2"),
pt_incoming = a.pt_incoming.ToString("N2"),
......@@ -5559,9 +5559,9 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
ls_count = a.ls_count.ToString("N2"),
ls_head_cost = (a.ls_head_cost+a.ls_head_cost_).ToString("N2"),
ls_head_cost_ = a.ls_head_cost_.ToString("N2"),
a.ls_head_cost_,
ls_tail_cost = (a.ls_tail_cost+a.ls_tail_cost_).ToString("N2"),
ls_tail_cost_ = a.ls_tail_cost_.ToString("N2"),
a.ls_tail_cost_,
ls_oversea_storage = a.ls_oversea_storage.ToString("N2"),
ls_platform_operation_fee = a.ls_platform_operation_fee.ToString("N2"),
......
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