Skip to content

Commit

Permalink
fix: Commission gateway calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
ediamin committed Sep 28, 2020
1 parent 85a246a commit 58d5a54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Commission.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function calculate_gateway_fee( $order_id ) {
$gateway_fee_added = $tmp_order->get_meta( 'dokan_gateway_fee' );
$vendor_earning = $this->get_earning_from_order_table( $tmp_order->get_id() );

if ( is_null( $vendor_earning ) || $gateway_fee_added ) {
if ( $order->get_meta( 'has_sub_order' ) && ( is_null( $vendor_earning ) || $gateway_fee_added ) ) {
continue;
}

Expand Down

0 comments on commit 58d5a54

Please sign in to comment.