mirror of
https://github.com/ash-project/ash_double_entry.git
synced 2024-09-20 05:23:22 +12:00
docs: fix typos in docs
This commit is contained in:
parent
b9601d5936
commit
9642a368f2
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ Ash Double Entry is implemented as a set of Ash resource extensions. You build t
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
defmodule YourApp.Leger.Account do
|
defmodule YourApp.Ledger.Account do
|
||||||
use Ash.Resource,
|
use Ash.Resource,
|
||||||
data_layer: AshPostgres.DataLayer,
|
data_layer: AshPostgres.DataLayer,
|
||||||
extensions: [AshDoubleEntry.Account]
|
extensions: [AshDoubleEntry.Account]
|
||||||
|
@ -66,7 +66,7 @@ end
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
defmodule YourApp.Transfer do
|
defmodule YourApp.Ledger.Transfer do
|
||||||
use Ash.Resource,
|
use Ash.Resource,
|
||||||
data_layer: AshPostgres.DataLayer,
|
data_layer: AshPostgres.DataLayer,
|
||||||
extensions: [AshDoubleEntry.Transfer]
|
extensions: [AshDoubleEntry.Transfer]
|
||||||
|
@ -206,7 +206,7 @@ YourApp.Ledger.Transfer
|
||||||
#### Check an account's balance
|
#### Check an account's balance
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
YourApp.Leger.Account
|
YourApp.Ledger.Account
|
||||||
|> YourApp.Ledger.get!(account_id, load: :balance)
|
|> YourApp.Ledger.get!(account_id, load: :balance)
|
||||||
|> Map.get(:balance)
|
|> Map.get(:balance)
|
||||||
# => Decimal.new("20")
|
# => Decimal.new("20")
|
||||||
|
|
Loading…
Reference in a new issue