Login About Gallery
Add Transaction
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
<inline variable>
SCRIPTING
Get
Value
for
url
in
Dictionary
SCRIPTING
If
dict_url
does not have any value
SCRIPTING
Show alert
Error
Title
Error
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
Otherwise
End If
SCRIPTING
Get
Value
for
personal_token
in
Dictionary
SCRIPTING
If
dict_token
does not have any value
SCRIPTING
Show alert
Error
Title
Error
Show Cancel Button
SCRIPTING
Exit shortcut with
Result
Otherwise
End If
VARIABLES
Set variable
config
to
Dictionary
NUMBER
0
VARIABLES
Set variable
budget_id
to
Number
TEXT
(none)
TEXT
asset
SCRIPTING
Set
accounts_type
to
accounts_type
in
Dictionary
SHORTCUTS
Run
List Accounts
Show While Running
LIST
Transfer
Withdrawal
Deposit
SCRIPTING
Choose from
List
Prompt
Transaction Type
Select Multiple
TEXT
Change
Chosen Item
to
lowercase
VARIABLES
Set variable
transaction_type
to
Updated Text
SCRIPTING
If
transaction_type
is
deposit
TEXT
revenue
SCRIPTING
Set
accounts_type
to
accounts_type
in
Dictionary
SHORTCUTS
Run
List Accounts
Show While Running
VARIABLES
Set variable
source_account
to
Revenue Accounts
VARIABLES
Set variable
dest_account
to
Asset Accounts
Otherwise
VARIABLES
Set variable
source_account
to
Asset Accounts
SCRIPTING
If
transaction_type
is
withdrawal
TEXT
expense
SCRIPTING
Set
accounts_type
to
accounts_type
in
Dictionary
SHORTCUTS
Run
List Accounts
Show While Running
VARIABLES
Set variable
dest_account
to
Expense Account
Otherwise
VARIABLES
Set variable
dest_account
to
Asset Accounts
End If
End If
SCRIPTING
Choose from
source_account
Prompt
Source Account
Select Multiple
SCRIPTING
Choose from
dest_account
Prompt
Destination Account
Select Multiple
SCRIPTING
If
transaction_type
is
withdrawal
SHORTCUTS
Run
List Budgets
Input
config
Show While Running
VARIABLES
Set variable
budgets
to
res_budgets
SCRIPTING
If
budgets
has any value
VARIABLES
Set variable
budgets_list
to
(none)
VARIABLES
Add
budgets
to
budgets_list
SCRIPTING
Choose from
budgets_list
Prompt
Budget
Select Multiple
SCRIPTING
If
budget
is not
(none)
SCRIPTING
Get
Value
for
budget
in
budgets
VARIABLES
Set variable
budget_id
to
Dictionary Value
End If
End If
End If
SCRIPTING
Ask
Description
Input Type
Text
Default Answer
Text
SCRIPTING
Ask
Amount
Input Type
Number
Default Answer
0
SHORTCUTS
Run
List Categories
Input
config
Show While Running
VARIABLES
Set variable
categories
to
(none)
VARIABLES
Add
res_categories
to
categories
SCRIPTING
Choose from
categories
Prompt
Category
Select Multiple
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
Current Date
<inline variable>
transaction_type
VARIABLES
Set variable
payload
to
Dictionary
SCRIPTING
If
budget_id
is greater than
0
SCRIPTING
Set
budget_id
to
budget_id
in
Dictionary
VARIABLES
Set variable
payload
to
Dictionary
End If
SCRIPTING
If
category_text
is
(none)
Otherwise
VARIABLES
Set variable
category
to
category_text
End If
Otherwise
TEXT
Match
^(.+)( \()
in
source_acc_text
Case Sensitive
SCRIPTING
If
Matches
has any value
TEXT
Get
Group At Index
1
in
Matches
VARIABLES
Set variable
source_acc
to
Text
Otherwise
VARIABLES
Set variable
source_acc
to
source_acc_text
End If
End If
SCRIPTING
Otherwise
TEXT
Match
^(.+)( \()
in
dest_acc_text
Case Sensitive
SCRIPTING
If
Matches
has any value
TEXT
Get
Group At Index
1
in
Matches
VARIABLES
Set variable
dest_acc
to
Text
Otherwise
VARIABLES
Set variable
dest_acc
to
dest_acc_text
End If
End If
SCRIPTING
If
category
has any value
SCRIPTING
Set
category_name
to
category
in
Dictionary
VARIABLES
Set variable
payload
to
Dictionary
Otherwise
End If
SCRIPTING
If
source_acc
has any value
SCRIPTING
Set
source_name
to
source_acc
in
Dictionary
VARIABLES
Set variable
payload
to
Dictionary

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 5 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

32 more actions