Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
96694274
Commit
96694274
authored
Nov 20, 2022
by
季圣华
Browse files
优化采购退货和销售退货单据,在选择单据的时候自动计算本次该退货的明细数量
parent
0b098b4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
96694274
...
...
@@ -392,6 +392,13 @@
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
let
info
=
selectBillDetailRows
[
j
];
if
(
info
.
finishNumber
>
0
)
{
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
let
taxRate
=
info
.
taxRate
-
0
info
.
taxMoney
=
(
info
.
allPrice
*
taxRate
/
100
).
toFixed
(
2
)
-
0
info
.
taxLastMoney
=
(
info
.
allPrice
+
info
.
taxMoney
).
toFixed
(
2
)
-
0
}
info
.
linkId
=
info
.
id
allTaxLastMoney
+=
info
.
taxLastMoney
listEx
.
push
(
info
)
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
96694274
...
...
@@ -403,6 +403,13 @@
let
allTaxLastMoney
=
0
for
(
let
j
=
0
;
j
<
selectBillDetailRows
.
length
;
j
++
)
{
let
info
=
selectBillDetailRows
[
j
];
if
(
info
.
finishNumber
>
0
)
{
info
.
operNumber
=
info
.
preNumber
-
info
.
finishNumber
info
.
allPrice
=
info
.
operNumber
*
info
.
unitPrice
-
0
let
taxRate
=
info
.
taxRate
-
0
info
.
taxMoney
=
(
info
.
allPrice
*
taxRate
/
100
).
toFixed
(
2
)
-
0
info
.
taxLastMoney
=
(
info
.
allPrice
+
info
.
taxMoney
).
toFixed
(
2
)
-
0
}
info
.
linkId
=
info
.
id
allTaxLastMoney
+=
info
.
taxLastMoney
listEx
.
push
(
info
)
...
...
Write
Preview
Supports
Markdown
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