Skip to content

Commit

Permalink
Remove early money formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
KarinG committed Apr 7, 2021
1 parent 70fa222 commit f3bc64b
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 f3bc64b

Please sign in to comment.