Search…
Examples

Display all invoices

1
const token = "<token>"
2
const report = {
3
id: 1,
4
depth: 3,
5
start: "2017-01-01",
6
end: "2017-12-31",
7
filter: 100
8
}
9
10
Promise.resolve()
11
.then(() => {
12
console.log("Logging in")
13
Exivity.navigate.home()
14
Exivity.session.refreshToken(token)
15
})
16
.then(Exivity.wait.networkIdle)
17
.then(Exivity.wait.syncComplete)
18
.then(() => {
19
console.log("Selecting parameters for summary")
20
Exivity.report.byId(report.id)
21
Exivity.report.depth(report.depth)
22
Exivity.report.daterangeStart(report.start)
23
Exivity.report.daterangeEnd(report.end)
24
Exivity.report.filterAccount(report.filter)
25
Exivity.navigate.to("reports/summary")
26
})
27
.then(Exivity.wait.networkIdle)
28
.then(() => {
29
console.log("Show all summaries")
30
Exivity.report.showAllSummaries()
31
})
32
.then(() => Exivity.wait.ms(1000))
33
.then(() => "Ready")
Copied!
Last modified 2yr ago
Export as PDF
Copy link