Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
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
liudong1993
huatu_API
Commits
3d6183d0
Commit
3d6183d0
authored
Aug 28, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
daf2289a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
FinancialService.cs
REBORN.Services.FinanceService/FinancialService.cs
+22
-22
No files found.
REBORN.Services.FinanceService/FinancialService.cs
View file @
3d6183d0
...
...
@@ -3029,28 +3029,28 @@ namespace REBORN.Services.FinanceService
#
endregion
#
region
条件
if
(
model
.
FinanceType
==
1
&&
model
.
MatchFrId
==
0
&&
model
.
OtherType
!=
7
&&
model
.
Type
==
WFTempLateClassEnum
.
OUT
&&
((
model
.
TCIDList
!=
null
&&
model
.
TCIDList
.
Any
())
||
(
",55,61,66,67,"
.
Contains
(
","
+
(
model
.
OtherType
??
0
)
+
","
)
&&
model
.
ReFinanceId2
==
3
)
||
(
model
.
OrderSource
==
OrderResourceEnum
.
Visia
&&
model
.
OrderID
>
0
&&
model
.
ReFinanceId2
==
3
))
&&
!(
",2,46,61,126,131,178,179,182,196,198,200,201,164,255,267,"
).
Contains
(
","
+
(
model
.
TemplateId
??
0
)
+
","
)
&&
model
.
PayDate
.
HasValue
&&
model
.
PayDate
.
Value
<=
Convert
.
ToDateTime
(
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd"
)).
AddDays
(
2
))
{
bool
IsComfrt
=
true
;
if
(
model
.
TCIDList
!=
null
&&
model
.
TCIDList
.
Any
())
{
var
pmodel
=
travel_PriceRepository
.
GetPriceListRepository
(
new
RB_Travel_Price_Extend
()
{
RB_Group_Id
=
userInfo
.
RB_Group_id
,
TCID
=
model
.
TCIDList
.
FirstOrDefault
()
}).
FirstOrDefault
();
if
(
pmodel
!=
null
&&
pmodel
.
LineID
==
90
)
{
IsComfrt
=
false
;
}
}
else
if
(
",55,61,66,67,"
.
Contains
(
","
+
(
model
.
OtherType
??
0
)
+
","
)
&&
model
.
ReFinanceId2
==
3
&&
(
userInfo
.
EmployeeId
==
57
||
userInfo
.
EmployeeId
==
2822
))
{
IsComfrt
=
false
;
}
if
(
IsComfrt
)
{
return
ApiResult
.
Failed
(
"预计付款日期必须大于等于"
+
DateTime
.
Now
.
AddDays
(
3
).
ToString
(
"yyyy-MM-dd"
));
}
}
//
if (model.FinanceType == 1 && model.MatchFrId == 0 && model.OtherType != 7 && model.Type == WFTempLateClassEnum.OUT && ((model.TCIDList != null && model.TCIDList.Any()) || (",55,61,66,67,".Contains("," + (model.OtherType ?? 0) + ",") && model.ReFinanceId2 == 3)
//
|| (model.OrderSource == OrderResourceEnum.Visia && model.OrderID > 0 && model.ReFinanceId2 == 3)) && !(",2,46,61,126,131,178,179,182,196,198,200,201,164,255,267,").Contains("," + (model.TemplateId ?? 0) + ",")
//
&& model.PayDate.HasValue && model.PayDate.Value <= Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")).AddDays(2))
//
{
//
bool IsComfrt = true;
//
if (model.TCIDList != null && model.TCIDList.Any())
//
{
//
var pmodel = travel_PriceRepository.GetPriceListRepository(new RB_Travel_Price_Extend() { RB_Group_Id = userInfo.RB_Group_id, TCID = model.TCIDList.FirstOrDefault() }).FirstOrDefault();
//
if (pmodel != null && pmodel.LineID == 90)
//
{
//
IsComfrt = false;
//
}
//
}
//
else if (",55,61,66,67,".Contains("," + (model.OtherType ?? 0) + ",") && model.ReFinanceId2 == 3 && (userInfo.EmployeeId == 57 || userInfo.EmployeeId == 2822))
//
{
//
IsComfrt = false;
//
}
//
if (IsComfrt)
//
{
//
return ApiResult.Failed("预计付款日期必须大于等于" + DateTime.Now.AddDays(3).ToString("yyyy-MM-dd"));
//
}
//
}
if
(!
model
.
RB_Branch_Id
.
HasValue
)
{
...
...
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