Skip to content
Snippets Groups Projects
Commit 2c35902f authored by eileen's avatar eileen
Browse files

#2493 Default to not cleaning money for order.create api

parent 73a5a9a9
Branches
Tags
No related merge requests found
......@@ -239,6 +239,11 @@ function _civicrm_api3_order_create_spec(&$params) {
'name' => 'total_amount',
'title' => 'Total Amount',
];
$params['skipCleanMoney'] = [
'api.default' => TRUE,
'title' => 'Do not attempt to convert money values',
'type' => CRM_Utils_Type::T_BOOLEAN,
];
$params['financial_type_id'] = [
'name' => 'financial_type_id',
'title' => 'Financial Type',
......
......@@ -1123,6 +1123,7 @@ WHERE eft.entity_id = %1 AND ft.to_financial_account_id <> %2";
'receipt_date' => '20080522000000',
'total_amount' => '20,000.00',
'api.Payment.create' => ['total_amount' => '8,000.00'],
'skipCleanMoney' => FALSE,
];
$contribution = $this->callAPISuccess('Order', 'create', $params);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment