Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
7f28e323
Commit
7f28e323
authored
Mar 20, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
etsy平台改为预收
parent
4edb12f7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
36 deletions
+36
-36
Program.cs
Bailun.DC.DailyPlatformReceivable/Program.cs
+20
-20
Services.cs
Bailun.DC.DailyPlatformReceivable/Services.cs
+0
-0
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+12
-12
PlatformReceivable.cshtml
...Web/Areas/Reports/Views/Finance/PlatformReceivable.cshtml
+4
-4
No files found.
Bailun.DC.DailyPlatformReceivable/Program.cs
View file @
7f28e323
...
...
@@ -7,29 +7,29 @@ namespace Bailun.DC.DailyPlatformReceivable
{
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>();
//
});
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();
//
}
await
builder
.
RunConsoleAsync
();
}
static
void
Main
(
string
[]
args
)
{
//
static void Main(string[] args)
//
{
var
_services
=
new
Services
();
//
var _services = new Services();
var
start
=
DateTime
.
Parse
(
"2020-11-30
"
);
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
{
Console
.
WriteLine
(
start
);
_services
.
Init
(
start
);
start
=
start
.
AddDays
(
1
);
}
}
// var start = DateTime.Parse("2021-03-01
");
//
while (start.AddDays(1) < DateTime.Now)
//
{
//
Console.WriteLine(start);
//
_services.Init(start);
//
start = start.AddDays(1);
//
}
//
}
}
}
Bailun.DC.DailyPlatformReceivable/Services.cs
View file @
7f28e323
This diff is collapsed.
Click to expand it.
Bailun.DC.Services/FinanceReportServices.cs
View file @
7f28e323
...
...
@@ -7030,15 +7030,15 @@ group by currency";
if
(
type
==
1
)
//Ebay
{
sql
+=
" and platform in ('Ebay','shopify') "
;
sql_start
+=
" and platform in ('Ebay','shopify') "
;
sql_end
+=
" and platform in ('Ebay','shopify') "
;
sql
+=
" and platform in ('Ebay','shopify'
,'Etsy'
) "
;
sql_start
+=
" and platform in ('Ebay','shopify'
,'Etsy'
) "
;
sql_end
+=
" and platform in ('Ebay','shopify'
,'Etsy'
) "
;
}
else
if
(
type
==
2
)
//非Ebay
{
sql
+=
" and platform!='Ebay' and platform!='shopify' "
;
sql_start
+=
" and platform!='Ebay' and platform!='shopify' "
;
sql_end
+=
" and platform!='Ebay' and platform!='shopify' "
;
sql
+=
" and platform!='Ebay' and platform!='shopify'
and platform!='Etsy'
"
;
sql_start
+=
" and platform!='Ebay' and platform!='shopify'
and platform!='Etsy'
"
;
sql_end
+=
" and platform!='Ebay' and platform!='shopify'
and platform!='Etsy'
"
;
}
sql
+=
" group by platform"
;
...
...
@@ -7102,11 +7102,11 @@ group by currency";
if
(
type
==
1
)
//Ebay
{
sql
+=
" and platform in('Ebay','shopify') "
;
sql
+=
" and platform in('Ebay','shopify'
,'Etsy'
) "
;
}
else
if
(
type
==
2
)
//非Ebay
{
sql
+=
" and platform!='Ebay' and platform!='shopify' "
;
;
sql
+=
" and platform!='Ebay' and platform!='shopify'
and platform!='Etsy'
"
;
;
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
...
...
@@ -7143,11 +7143,11 @@ group by currency";
if
(
type
==
1
)
//Ebay
{
sql
+=
" and platform in ('Ebay','shopify') "
;
sql
+=
" and platform in ('Ebay','shopify'
,'Etsy'
) "
;
}
else
if
(
type
==
2
)
//非Ebay
{
sql
+=
" and platform!='Ebay' and platform!='shopify' "
;
sql
+=
" and platform!='Ebay' and platform!='shopify'
and platform!='Etsy'
"
;
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
...
...
@@ -7203,7 +7203,7 @@ group by currency";
}
if
(
obj
.
platform
.
ToLower
()
==
"ebay"
||
obj
.
platform
.
ToLower
()
==
"shopify"
)
if
(
obj
.
platform
.
ToLower
()
==
"ebay"
||
obj
.
platform
.
ToLower
()
==
"shopify"
||
obj
.
platform
.
ToLower
()
==
"etsy"
)
{
//期初预收余额+本期收款(订单付款金额)-发货金额-退款(未发货的)+其他
obj
.
amount_end
=
obj
.
amount_start
+
obj
.
amount_sale_pay
-
obj
.
amount_shipping
-
obj
.
amount_refund
+
obj
.
amount_other
;
...
...
@@ -7288,7 +7288,7 @@ group by currency";
if
(
obj
!=
null
)
{
//Ebay预收账款=期初预收余额+本期收款(订单付款金额)-发货金额-退款(未发货的)
if
(
obj
.
platform
.
ToLower
()
==
"ebay"
||
obj
.
platform
.
ToLower
()
==
"shopify"
)
if
(
obj
.
platform
.
ToLower
()
==
"ebay"
||
obj
.
platform
.
ToLower
()
==
"shopify"
||
obj
.
platform
.
ToLower
()==
"etsy"
)
{
obj
.
amount_start
=
m
.
amount_end
;
...
...
Bailun.DC.Web/Areas/Reports/Views/Finance/PlatformReceivable.cshtml
View file @
7f28e323
...
...
@@ -10,8 +10,8 @@
<div class="ibox-content m-b-sm border-bottom">
<div class="alert alert-warning">
说明:<br />
Ebay预收账款
= 期初预收余额+本期收款(订单付款金额)-发货金额-退款(未发货的)+其他<br />
非Ebay
应收账款 = 期初应收余额+本期销售收入-平台扣费-放款金额-退款金额+其他
预收账款(ebay、shopify、etsy)
= 期初预收余额+本期收款(订单付款金额)-发货金额-退款(未发货的)+其他<br />
应收账款 = 期初应收余额+本期销售收入-平台扣费-放款金额-退款金额+其他
</div>
</div>
<div class="ibox-content m-b-sm border-bottom">
...
...
@@ -20,8 +20,8 @@
<div class="form-group">
<label>类型</label>
<select id="type" name="type" class="form-control" style="width:160px;">
<option value="1">
Ebay和shopify
</option>
<option value="2">
非Ebay
</option>
<option value="1">
预收
</option>
<option value="2">
应收
</option>
</select>
</div>
<div class="form-group">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment