Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
736497e7
Commit
736497e7
authored
Sep 16, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
412bebf5
da9dcf38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+17
-5
No files found.
Mall.Module.Product/OrderModule.cs
View file @
736497e7
...
...
@@ -8139,6 +8139,13 @@ namespace Mall.Module.Product
if
(
financeConfigurineList
!=
null
&&
financeConfigurineList
.
Any
())
{
var
item
=
financeConfigurineList
.
FirstOrDefault
();
var
dlist
=
goods_OrderDetailRepository
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
()
{
OrderId
=
dmodel
.
OrderId
??
0
});
string
Remark1
=
""
;
if
(
dlist
.
Any
())
{
foreach
(
var
qqitem
in
dlist
)
{
Remark1
+=
qqitem
.
GoodsName
+
" "
+
qqitem
.
Specification
+
" "
;
}
}
var
detailList
=
new
List
<
object
>()
{
new
{
...
...
@@ -8146,11 +8153,10 @@ namespace Mall.Module.Product
Number
=
1
,
OriginalMoney
=
Money
,
UnitPrice
=
Money
,
Remark
=
"订
单号:"
+
omodel
.
OrderNo
+
"售后单号:"
+
(
dmodel
.
ReOrderNo
??
"暂无"
)
+
" "
+
dstr
Remark
=
Remark1
+
"
单号:"
+
omodel
.
OrderNo
+
"售后单号:"
+
(
dmodel
.
ReOrderNo
??
"暂无"
)
+
" "
+
dstr
}
};
List
<
RB_ECFinanceId_Relation
>
ECList
=
new
List
<
RB_ECFinanceId_Relation
>();
var
dlist
=
goods_OrderDetailRepository
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
()
{
OrderId
=
dmodel
.
OrderId
??
0
});
foreach
(
var
qitem
in
dlist
)
{
ECList
.
Add
(
new
RB_ECFinanceId_Relation
()
...
...
@@ -8174,7 +8180,7 @@ namespace Mall.Module.Product
TemplateId
=
item
.
WorkFlowId
,
OrderSource
=
16
,
OtherType
=
23
,
ReFinanceId
=
dmodel
.
ReOrderId
,
ReFinanceId
=
dmodel
.
OrderId
??
0
,
Remark
=
"名称:"
+
umodel
.
Name
+
"("
+
umodel
.
Id
+
")"
+
" "
+
System
.
DateTime
.
Now
.
ToString
(
"yyyy年MM月dd日"
)
+
"自动生成财务单据(erp订单)"
,
detailList
,
RB_Depart_Id
=
Config
.
ExpendDepartment
,
...
...
@@ -9359,6 +9365,13 @@ namespace Mall.Module.Product
if
(
financeConfigurineList
!=
null
&&
financeConfigurineList
.
Any
())
{
var
item
=
financeConfigurineList
.
FirstOrDefault
();
var
dlist
=
goods_OrderDetailRepository
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
()
{
OrderId
=
omodel
.
OrderId
});
string
Remark1
=
""
;
if
(
dlist
.
Any
())
{
foreach
(
var
qqitem
in
dlist
)
{
Remark1
+=
qqitem
.
GoodsName
+
" "
+
qqitem
.
Specification
+
" "
;
}
}
var
detailList
=
new
List
<
object
>()
{
new
{
...
...
@@ -9366,7 +9379,7 @@ namespace Mall.Module.Product
Number
=
1
,
OriginalMoney
=
Money
,
UnitPrice
=
Money
,
Remark
=
"订
单号:"
+
omodel
.
OrderNo
+
" "
+
dstr
Remark
=
Remark1
+
"
单号:"
+
omodel
.
OrderNo
+
" "
+
dstr
}
};
...
...
@@ -9377,7 +9390,6 @@ namespace Mall.Module.Product
Remark
=
"后台强制取消该订单,用户名称:"
+
umodel
.
Name
+
"("
+
umodel
.
Id
+
")"
+
" "
+
System
.
DateTime
.
Now
.
ToString
(
"yyyy年MM月dd日"
)
+
" 自动生成财务单据(ERP下单)"
;
}
List
<
RB_ECFinanceId_Relation
>
ECList
=
new
List
<
RB_ECFinanceId_Relation
>();
var
dlist
=
goods_OrderDetailRepository
.
GetOrderDetailList
(
new
RB_Goods_OrderDetail_Extend
()
{
OrderId
=
omodel
.
OrderId
});
foreach
(
var
qitem
in
dlist
)
{
ECList
.
Add
(
new
RB_ECFinanceId_Relation
()
...
...
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