ShareShortcuts

Roommate Utility Bills Splitter 1.2

Создать форк «Roommate Utility Bills Splitter 1.2»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы автор оригинала получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
74K
Сохранено
1
Действия
25
Категория
Utilities
Версия
1.0
Язык
EN

This shortcut adds all of your utility bills together, splits them between your roommates, and then sends them Apple Pay requests for the correct amount and sends them an itemized receipt.

Что нового

Версия 1.0

First release

История версий
1.0 13 окт 2018 г.

First release

Что делает

Действий: 25
  1. Comment
    Created by @jacksonldame and @FindShortcuts on Twitter. Version 1.2 September 26, 2018
  2. Comment
    CUSTOMIZATION STEP 1: In the actions below, substitute "Bill 1, Bill 2, etc" with the names of the bills you have. (water, electric, etc) Add additional bills by duplicating each of the relevant Bill sections and adding an additional calculate step …
  3. Ask for Input
    How much is [Bill Name Here]?
  4. Set Variable
    Bill 1
  5. Ask for Input
    How much is [Bill Name Here]?
  6. Set Variable
    Bill 2
  7. Ask for Input
    How much is [Bill Name Here]?
  8. Set Variable
    Bill 3
  9. Ask for Input
    How much is [Bill Name Here]?
  10. Set Variable
    Bill 4
  11. Comment
    CUSTOMIZATION STEP 1A: Add more bills by adding additional Ask For Inputs above along with setting them as new variables. Then, add additional calculate actions in the following section for each bill except the last in the list above.
  12. Comment
    DESCRIPTION The following steps add the first 3 bills to the 4th and then divides the total.
  13. Calculate
  14. Calculate
  15. Calculate
  16. Round Number
  17. Set Variable
    Gross Total
  18. Comment
    CUSTOMIZATION STEP 2: In the calculate action directly below, change the number to the number of people you're splitting the bills between.
  19. Calculate
  20. Round Number
  21. Set Variable
    Split Total
  22. Show Alert
    Bill Total
  23. Date
  24. Comment
    CUSTOMIZATION STEP 3: In the request payment action, select the recipients who you always split the bills with. Roommates for example. Additionally change the bill names in the description of the payment to act as a receipt breakdown.
  25. Venmo Request

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/math'
#define color violet

/*
Created by @jacksonldame and @FindShortcuts on Twitter. 

Version 1.2
September 26, 2018
*/
/*
CUSTOMIZATION STEP 1:
In the actions below, substitute "Bill 1, Bill 2, etc" with the names of the bills you have. (water, electric, etc) Add additional bills by duplicating each of the relevant Bill sections and adding an additional calculate step for each bill.
*/
prompt("How much is [Bill Name Here]?", "Number")
@Bill1 = nil
prompt("How much is [Bill Name Here]?", "Number")
@Bill2 = nil
prompt("How much is [Bill Name Here]?", "Number")
@Bill3 = nil
prompt("How much is [Bill Name Here]?", "Number")
@Bill4 = nil
/*
CUSTOMIZATION STEP 1A: 
Add more bills by adding additional Ask For Inputs above along with setting them as new variables. Then, add additional calculate actions in the following section for each bill except the last in the list above. 
*/
/*
DESCRIPTION
The following steps add the first 3 bills to the 4th and then divides the total. 
*/
round(0)
@GrossTotal = nil
/*
CUSTOMIZATION STEP 2:
In the calculate action directly below, change the number to the number of people you're splitting the bills between.
*/
round(0)
@SplitTotal = nil
alert("The gross total is ${@GrossTotal} and the split total is ${@SplitTotal}. Send an Apple Pay request?", "Bill Total")
currentDate()
/*
CUSTOMIZATION STEP 3:
In the request payment action, select the recipients who you always split the bills with. Roommates for example. Additionally change the bill names in the description of the payment to act as a receipt breakdown. 
*/
rawAction("is.workflow.actions.venmo.request", {
	"IntentAppIdentifier": "com.apple.PassKit.PassKitIntentsExtension",
	"WFVenmoActionAmount": "@SplitTotal",
	"WFVenmoActionNote": "Utilities for {CurrentDate}\\n\\nBreakdown (Pre-split)\\nGross Total: ${@GrossTotal}\\nSplit Total: ${@SplitTotal}\\n[Bill Name Here]: ${@Bill1}\\n[Bill Name Here]: ${@Bill2}\\n[Bill Name Here]: ${@Bill3}\\n[Bill Name Here]: ${@Bill4}",
	"WFVenmoActionRecipients": ""
})
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
11 окт 2018 г.
danielbahl

Well-Crafted - Thanks for sharing 😎

Реклама

Вам также может понравиться

См. все
Реклама