Skip to content

Conversation

IMB11
Copy link
Member

@IMB11 IMB11 commented Feb 20, 2025

First part of simplifying the "pending" information on the dashboard. Will need this on staging or prod to develop the UI, having issues running it locally.

TLDR, updates the balance endpoint with a new pending_interval field which is an array of the following type:

pub struct PendingInterval {
    pub value: Decimal,
    pub date: chrono::NaiveDate,
}

It stores the value of money that will be moved into the balance when the NET 60 period is over (the end date specified by date)

Example:

{
	"balance": 192.481018470000000,
	"pending": 783.392947002803900,
	"pending_interval": [
		{ "value": 392.399202998400, "date": "1st March ... blah" },
		...
	]
}

@IMB11 IMB11 marked this pull request as ready for review February 20, 2025 21:42
@IMB11 IMB11 changed the title Break down pending revenue into their respective NET 60 blocks (API) Break down pending revenue into timestamped blocks Feb 20, 2025
@IMB11
Copy link
Member Author

IMB11 commented Feb 20, 2025

Replaced by #3283

@IMB11 IMB11 closed this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant