Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
65cce21a
Commit
65cce21a
authored
Jan 18, 2022
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
630ef37f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
dc_base_stock.cs
AutoTurnOver.Models/dc_base_stock.cs
+22
-10
No files found.
AutoTurnOver.Models/dc_base_stock.cs
View file @
65cce21a
...
...
@@ -311,12 +311,15 @@ namespace AutoTurnOver.Models
/// <summary>
/// sku头程费 / kg
/// </summary>
public
decimal
?
cost_first_weight
{
get
public
decimal
?
cost_first_weight
{
if
(
cost_first
==
null
||
weight
==
null
)
get
{
if
(
cost_first
==
null
||
weight
==
null
)
{
return
null
;
}
else
if
(
cost_first
<=
0
||
weight
<=
0
)
}
else
if
(
cost_first
<=
0
||
weight
<=
0
)
{
return
0
;
}
...
...
@@ -325,7 +328,8 @@ namespace AutoTurnOver.Models
return
Math
.
Round
(
cost_first
.
Value
/
(
weight
.
Value
/
1000
),
2
);
}
}
}
}
}
/// <summary>
/// 产品线
...
...
@@ -353,15 +357,23 @@ namespace AutoTurnOver.Models
/// <summary>
/// 供应链长度所需库存 (缺货)
/// </summary>
public
decimal
?
turnover_days_outofstock_quantity
{
get
{
return
Math
.
Max
(
0
,
(
turnover_days_quantity
??
0
)
-
sum_actual_stock
);
}
}
public
decimal
?
turnover_days_outofstock_quantity
{
get
{
return
Math
.
Max
(
0
,
(
turnover_days_quantity
??
0
)
-
sum_actual_stock
);
}
}
/// <summary>
/// 供应链长度所需库存 (冗余)
/// </summary>
public
decimal
?
turnover_days_redundancy_quantity
{
get
{
return
Math
.
Max
(
0
,
sum_actual_stock
-(
turnover_days_quantity
??
0
)
);
}
}
public
decimal
?
turnover_days_redundancy_quantity
{
get
{
return
Math
.
Max
(
0
,
sum_actual_stock
-
(
turnover_days_quantity
??
0
));
}
}
public
DateTime
?
lately_transfer_expect_arrival_time
{
get
;
set
;
}
...
...
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