Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
cf52acd6
Commit
cf52acd6
authored
May 05, 2022
by
赵鹏翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理打印机交易总金额、交易总笔数展示
parent
e381d498
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
PrintService.kt
...rc/main/java/com/miya/fastcashier/service/PrintService.kt
+6
-2
No files found.
app/src/main/java/com/miya/fastcashier/service/PrintService.kt
View file @
cf52acd6
...
@@ -168,17 +168,21 @@ object PrintService {
...
@@ -168,17 +168,21 @@ object PrintService {
val
totalStatistics
:
ViewOrderStatisticsInfo
.
StatisticBean
?
=
val
totalStatistics
:
ViewOrderStatisticsInfo
.
StatisticBean
?
=
orderStatisticsInfo
.
totalStatistic
orderStatisticsInfo
.
totalStatistic
if
(
totalStatistics
!=
null
)
{
if
(
totalStatistics
!=
null
)
{
var
tradeCount
=
totalStatistics
.
tradeCount
+
totalStatistics
.
refundCount
printer
.
printText
(
0
,
0
,
Page58MmPrintUtils
.
printDivideLineString
(),
true
)
printer
.
printText
(
0
,
0
,
Page58MmPrintUtils
.
printDivideLineString
(),
true
)
printer
.
printText
(
printer
.
printText
(
Page58MmPrintUtils
.
printTwoData
(
Page58MmPrintUtils
.
printTwoData
(
"总交易笔数"
,
"总交易笔数"
,
""
+
t
otalStatistics
.
t
radeCount
""
+
tradeCount
)
)
)
)
var
tradeTotalAmount
=
totalStatistics
.
tradeTotalAmount
-
totalStatistics
.
refundTotalAmount
printer
.
printText
(
printer
.
printText
(
Page58MmPrintUtils
.
printTwoData
(
Page58MmPrintUtils
.
printTwoData
(
"总交易金额"
,
"总交易金额"
,
""
+
StringPriceFormat
.
transStringPriceToDecimalString
(
t
otalStatistics
.
t
radeTotalAmount
.
toString
())
""
+
StringPriceFormat
.
transStringPriceToDecimalString
(
tradeTotalAmount
.
toString
())
)
)
)
)
}
}
...
...
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