-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into track-expense
- Loading branch information
Showing
11 changed files
with
230 additions
and
67 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
docs/articles/expensify-classic/expenses/Track-group-expenses.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: Track group expenses | ||
description: Use Attendee Tracking to track group expenses | ||
--- | ||
<div id="expensify-classic" markdown="1"> | ||
|
||
Capture group and event expenses with Attendee Tracking by documenting who attended and the cost per attendee. The amount is always divided evenly between all attendees—different amounts cannot be allocated to specific attendees. To divide the amounts differently, you’ll first have to split the expense. | ||
|
||
{% include info.html %} | ||
Attendees added to an expense will not be notified that they were added to an expense, nor will they share in the expense or be requested to pay for any portion of the expense. | ||
{% include end-info.html %} | ||
|
||
{% include selector.html values="desktop, mobile" %} | ||
|
||
{% include option.html value="desktop" %} | ||
1. Click the **Expenses** tab. | ||
2. Click the expense you want to add attendees to. | ||
3. Click the attendees field and enter the name or email address of the attendee. | ||
- If the attendee is a member of your workspace, you can select their name from the list. | ||
- If the attendee is not a member of your workspace, enter their full name or email address and press Enter on your keyboard to add them as a new attendee. | ||
4. Click **Save**. | ||
|
||
Once added, you’ll also see the list of attendees in the expense overview on the Expenses tab. To see the cost per employee, hover over the receipt total. These details are also available on any report that you add the expense to. | ||
{% include end-option.html %} | ||
|
||
{% include option.html value="mobile" %} | ||
1. Tap the **Expenses** tab. | ||
2. Tap the expense you want to add attendees to. | ||
3. Scroll down to the bottom and tap **More Options**. | ||
4. Tap the attendees field and enter the name or email address of the attendee. | ||
- If the attendee is a member of your workspace, you can select their name from the list. | ||
- If the attendee is not a member of your workspace, enter their full name or email address and press Enter on your keyboard to add them as a new attendee. | ||
5. Tap **Save**. | ||
|
||
Attendees will also be listed on any report that you add the expense to. | ||
|
||
{% include end-option.html %} | ||
|
||
{% include end-selector.html %} | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
// Converts milliseconds to '[hours:]minutes:seconds' format | ||
const convertMillisecondsToTime = (milliseconds: number) => { | ||
/** | ||
* Converts milliseconds to '[hours:]minutes:seconds' format | ||
*/ | ||
function convertMillisecondsToTime(milliseconds: number) { | ||
const hours = Math.floor(milliseconds / 3600000); | ||
const minutes = Math.floor((milliseconds / 60000) % 60); | ||
const seconds = Math.floor((milliseconds / 1000) % 60) | ||
.toFixed(0) | ||
.padStart(2, '0'); | ||
return hours > 0 ? `${hours}:${String(minutes).padStart(2, '0')}:${seconds}` : `${minutes}:${seconds}`; | ||
}; | ||
} | ||
|
||
export default convertMillisecondsToTime; | ||
/** | ||
* Adds a #t=seconds tag to the end of the URL to skip first seconds of the video | ||
*/ | ||
function addSkipTimeTagToURL(url: string, seconds: number) { | ||
if (url.includes('#t=')) { | ||
return url; | ||
} | ||
return `${url}#t=${seconds}`; | ||
} | ||
|
||
export {convertMillisecondsToTime, addSkipTimeTagToURL}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.