Adding Settings with Docker and `appsettings.json`. [Link](https://stackoverflow.com/questions/48298284/merging-appsettings-with-environment-variables-in-net-core)
### Back-end Functions
### Accounts & Envelopes
@ -56,115 +58,6 @@ Credit Envelope (CE)
If an account or envelope is ```null``` we call it ```(void)```, a placeholder entity that isn't tracked.
#### Scenarios
```
Conflicting Debit & Credit Entities
If (DA != null && DE.Account != DA)
If (CA != null && CE.Account != CA)
If (DE.Account != DA)
If (DE.Account != DA)
If (DE.Account != DA)
```
```
Envelopes Affecting Accounts
If Envelope Accounts differ, account transfer is performed as well as envelope value adjusting.
If Envelopes use the same Account (or null envelope) Account value is unaffected.
Operations with Envelopes should always trigger an update to the virtual balance of the underlying account.
```
```
DA -> CA
DE -> CE
Value is deducted from DA
Value is added to CA
Value is deducted from DE
Value is added to CE
DE.A Value isn't necessarily changed
CE.A Value isn't necessarily changed
```
```csharp
if (DA != null)
{
addAmount(DA, -amount);
}
if (DE != null)
{
addAmount(DE, -amount);
}
if (CA != null)
{
addAmount(CA, amount);
}
if (CE != null)
{
addAmount(CE, amount);
}
```
```
DA -> CA
null -> null
Value is deducted from DA
Value is added to CA
```
```
DA -> null
null -> null
Value is deducted from DA
```
```
null -> CA
null -> null
Value is added to CA
```
```
null -> null
DE -> CE
Value is deducted from DE
If DE Account differs from CE Account,
then value must also be transferred between accounts