Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
WordPress
WooCommerce Accounting
Commits
f694fa40
Commit
f694fa40
authored
9 months ago
by
Bastien Ho
Browse files
Options
Download
Email Patches
Plain Diff
shipping_tax can be a float
parent
a91ab08c
Pipeline
#34704
passed with stages
in 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
accounting-for-woocommerce/inc/export.php
+2
-1
accounting-for-woocommerce/inc/export.php
with
2 additions
and
1 deletion
+2
-1
accounting-for-woocommerce/inc/export.php
+
2
-
1
View file @
f694fa40
...
...
@@ -75,6 +75,7 @@ function woocommerce_accounting_export_data() {
$order_args
=
array
(
'limit'
=>
-
1
,
'type'
=>
'shop_order'
,
'status'
=>
$order_status
,
'orderby'
=>
'ID'
,
'order'
=>
'ASC'
,
...
...
@@ -147,7 +148,7 @@ function woocommerce_accounting_export_data() {
$order
->
original_date
=
$order
->
piecedate
;
$order
->
total_tax
=
(
float
)
$wcOrder
->
get_total_tax
();
$order
->
shipping_tax
=
(
float
)
intval
(
$wcOrder
->
get_shipping_tax
()
)
;
$order
->
shipping_tax
=
(
float
)
$wcOrder
->
get_shipping_tax
();
$order
->
outcome
=
round
(
$wcOrder
->
get_total
(),
$rounding_precision
);
$order
->
income_tax
=
round
(
$order
->
total_tax
>
$small_number
?
$order
->
total_tax
:
0
,
$rounding_precision
)
+
round
(
$order
->
shipping_tax
>
$small_number
?
$order
->
shipping_tax
:
0
,
$rounding_precision
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets