Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.showcase.synapse.sales
Project
Project
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
com.showcase.synapse
com.showcase.synapse.sales
Commits
dab6eada
Commit
dab6eada
authored
Sep 13, 2023
by
lemin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
906402aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ProductSalesDto.java
.../java/com/showcase/synapse/sales/dto/ProductSalesDto.java
+3
-1
SalesService.java
...java/com/showcase/synapse/sales/service/SalesService.java
+3
-1
No files found.
src/main/java/com/showcase/synapse/sales/dto/ProductSalesDto.java
View file @
dab6eada
...
...
@@ -16,7 +16,9 @@ public class ProductSalesDto {
private
String
productId
;
private
String
productName
;
private
String
productComment
;
private
BigDecimal
price
;
private
BigDecimal
orgPrice
;
private
BigDecimal
ratePrice
;
private
BigDecimal
discountRate
;
private
String
salesChannel
;
private
String
whId
;
private
String
whName
;
...
...
src/main/java/com/showcase/synapse/sales/service/SalesService.java
View file @
dab6eada
...
...
@@ -66,7 +66,9 @@ public class SalesService {
dto
.
setProductId
(
tempPE
.
getId
());
dto
.
setProductName
(
tempPE
.
getName
());
dto
.
setProductComment
(
tempPE
.
getComment
());
dto
.
setPrice
(
tempPE
.
getPrice
().
multiply
(
tempPE
.
getChannel
().
getDiscountRate
().
add
(
new
BigDecimal
(
1
))));
dto
.
setOrgPrice
(
tempPE
.
getPrice
());
dto
.
setDiscountRate
(
tempPE
.
getChannel
().
getDiscountRate
());
dto
.
setRatePrice
(
tempPE
.
getPrice
().
multiply
(
tempPE
.
getChannel
().
getDiscountRate
().
add
(
new
BigDecimal
(
1
))));
dto
.
setSalesChannel
(
tempPE
.
getChannel
().
getName
());
dto
.
setWhId
(
tempPE
.
getInventory
().
getWhid
());
dto
.
setWhName
(
tempPE
.
getInventory
().
getWhName
());
...
...
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