Skip to content

Commit

Permalink
Merge pull request #529 from colemanw/remove_early_money_formatting
Browse files Browse the repository at this point in the history
Remove early money formatting.
  • Loading branch information
Jitendra Purohit committed Apr 8, 2021
2 parents 70fa222 + f3bc64b commit d02fd08
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions includes/wf_crm_webform_postprocess.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2186,11 +2186,6 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base {
}
}

// Format (and round) monetary values before saving the line items
isset($item['unit_price']) ? $item['unit_price'] = CRM_Utils_Money::format($item['unit_price'], NULL, NULL, TRUE) : NULL;
isset($item['line_total']) ? $item['line_total'] = CRM_Utils_Money::format($item['line_total'], NULL, NULL, TRUE) : NULL;
isset($item['tax_amount']) ? $item['tax_amount'] = CRM_Utils_Money::format($item['tax_amount'], NULL, NULL, TRUE) : NULL;

// Save the line_item
$line_result = wf_civicrm_api('line_item', 'create', $item);
$item['id'] = $line_result['id'];
Expand Down

0 comments on commit d02fd08

Please sign in to comment.