Skip to content

Commit

Permalink
Merge pull request #116 from angelleye/PFWMA-298
Browse files Browse the repository at this point in the history
Tax calculation issue, PFWMA-298
  • Loading branch information
kcppdevelopers authored Jun 6, 2023
2 parents 1e55231 + 2591f03 commit c801c07
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1998,8 +1998,11 @@ public function angelleye_get_line_item_from_order($order, $values) {
public function angelleye_get_extra_fee_array($amount, $divided, $type) {
$total = 0;
$partition_array = array();
if($amount > 0 && $divided > 0) {
$partition = AngellEYE_Gateway_Paypal::number_format($amount / $divided);
if($divided == 0) {
$partition = $amount;
} else {
$partition = AngellEYE_Gateway_Paypal::number_format($amount / $divided);
}
for ($i = 1; $i <= $divided; $i++) {
$partition_array[$i] = $partition;
$total = $total + $partition;
Expand Down Expand Up @@ -2043,9 +2046,7 @@ public function angelleye_get_extra_fee_array($amount, $divided, $type) {
}
}
return $partition_array;
} else {
return $partition_array;
}

}

public function angelleye_is_multi_account_api_set($microprocessing_array, $gateways) {
Expand Down

0 comments on commit c801c07

Please sign in to comment.