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
42d9cb15
Commit
42d9cb15
authored
Jan 15, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改物流应付账款增加更新资产负债表的方法
parent
d50d4236
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
FinanceReportServices.cs
Bailun.DC.Services/FinanceReportServices.cs
+30
-0
No files found.
Bailun.DC.Services/FinanceReportServices.cs
View file @
42d9cb15
...
...
@@ -272,6 +272,8 @@ namespace Bailun.DC.Services
var
result
=
cn
.
Update
<
dc_daily_lg_waitpay
>(
obj
);
UpdateLogisticsEndAmount
(
obj
.
day
,
obj
.
amount_end
);
return
result
>
0
?
""
:
"保存异常,请重试!"
;
}
}
...
...
@@ -329,6 +331,9 @@ namespace Bailun.DC.Services
obj
.
amount_end
=
obj
.
amount_start
+
obj
.
amount_happen
+
obj
.
amount_happen_adjust
-
obj
.
amount_payed
-
obj
.
amount_payed_adjust
;
cn
.
Insert
<
dc_daily_lg_waitpay
>(
obj
);
}
UpdateLogisticsEndAmount
(
date
,
payamount
);
}
return
""
;
...
...
@@ -340,6 +345,31 @@ namespace Bailun.DC.Services
}
/// <summary>
/// 更新资产负债表的物流应付款额
/// </summary>
/// <param name="day">日期</param>
/// <param name="amount">期末金额</param>
/// <returns></returns>
public
string
UpdateLogisticsEndAmount
(
DateTime
day
,
decimal
amount
)
{
var
url
=
"http://fee.bailuntec.com/balanceSheet/updateSheetLogisticsSupplier?date="
+
day
.
ToString
(
"yyyy-MM-dd"
)+
"&logisticsPayableSum="
+
amount
;
var
result
=
Common
.
HttpHelper
.
NetHelper
.
Request
(
url
);
var
json
=
Newtonsoft
.
Json
.
Linq
.
JObject
.
Parse
(
result
);
if
(
json
[
"success"
].
ToString
().
ToLower
()
==
"true"
)
{
return
""
;
}
else
{
return
json
[
"message"
].
ToString
();
}
}
#
endregion
#
region
管理成本
...
...
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