Skip to content
Snippets Groups Projects
Unverified Commit 55ddef6b authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #699 from eileenmcnaughton/patch-5

Fix spelling on 'omit'
parents a4a12f26 e8f1c548
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ Things to note: ...@@ -63,7 +63,7 @@ Things to note:
5. The `line_total` *must* equal the `unit_price` × `qty` 5. The `line_total` *must* equal the `unit_price` × `qty`
!!! info !!! info
If you provide a value to `total_amount` as we have above, it *must* equal the sum of all the `line_total` values. Before 5.20 there was [a bug](https://lab.civicrm.orog/dev/financial/issues/73) that required the top-level `total_amount` was provided, but from 5.20 onward you can ommit this and it will be calculated automatically from the sum of the `line_items`. If you provide a value to `total_amount` as we have above, it *must* equal the sum of all the `line_total` values. Before 5.20 there was [a bug](https://lab.civicrm.orog/dev/financial/issues/73) that required the top-level `total_amount` was provided, but from 5.20 onward you can omit this and it will be calculated automatically from the sum of the `line_items`.
Currently the data returned from `Order.create` shows only the fields from the created Contribution. However an `Order.get` API call for the ID will also include an array of `line_items` (see below for example). Currently the data returned from `Order.create` shows only the fields from the created Contribution. However an `Order.get` API call for the ID will also include an array of `line_items` (see below for example).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment