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
ca76bb78
Commit
ca76bb78
authored
Oct 26, 2022
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
31663ab6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
RB_Supplies_Inventory.cs
Mall.Model/Entity/Property/RB_Supplies_Inventory.cs
+5
-0
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+3
-1
No files found.
Mall.Model/Entity/Property/RB_Supplies_Inventory.cs
View file @
ca76bb78
...
...
@@ -105,5 +105,10 @@ namespace Mall.Model.Entity.Property
get
;
set
;
}
/// <summary>
/// 账面单价 用于展示 不做计算的
/// </summary>
public
decimal
ShowUnit_Price
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Module.Property/PropertyModule.cs
View file @
ca76bb78
...
...
@@ -823,6 +823,7 @@ namespace Mall.Module.Property
var
iModel
=
ilist
.
FirstOrDefault
();
iModel
.
Number
+=
item
.
Number
;
//增加库存
iModel
.
Money
+=
item
.
Money
;
iModel
.
ShowUnit_Price
=
iModel
.
Number
>
0
?
Math
.
Round
((
iModel
.
Money
??
0
)
/
(
iModel
.
Number
??
1
),
2
,
MidpointRounding
.
AwayFromZero
)
:
0
;
var
iflag
=
supplies_InventoryRepository
.
Update
(
iModel
,
trans
);
if
(
iflag
)
{
...
...
@@ -859,7 +860,8 @@ namespace Mall.Module.Property
SuppliesId
=
item
.
SuppliesId
,
UpdateBy
=
demodel
.
UpdateBy
,
UpdateDate
=
demodel
.
UpdateDate
,
WarehouseId
=
demodel
.
WarehouseId
WarehouseId
=
demodel
.
WarehouseId
,
ShowUnit_Price
=
item
.
Number
>
0
?
Math
.
Round
((
item
.
Money
??
0
)
/
(
item
.
Number
??
1
),
2
,
MidpointRounding
.
AwayFromZero
)
:
0
},
trans
);
if
(
iId
>
0
)
{
...
...
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