Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add weighted averages report #246

Merged
merged 18 commits into from
Jan 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add WeightedAveragesReportCsvWriter service to di
ZIMkaRU committed Jan 6, 2023
commit 8b5eaf01028cd8b35adc46c66d34b400eaf214df
13 changes: 12 additions & 1 deletion workers/loc.api/di/app.deps.js
Original file line number Diff line number Diff line change
@@ -90,7 +90,8 @@ const CurrencyConverter = require('../sync/currency.converter')
const CsvJobData = require('../generate-csv/csv.job.data')
const {
fullSnapshotReportCsvWriter,
fullTaxReportCsvWriter
fullTaxReportCsvWriter,
weightedAveragesReportCsvWriter
} = require('../generate-csv/csv-writer')
const FullTaxReport = require('../sync/full.tax.report')
const WeightedAveragesReport = require('../sync/weighted.averages.report')
@@ -360,6 +361,16 @@ module.exports = ({
]
)
)
bind(TYPES.WeightedAveragesReportCsvWriter)
.toConstantValue(
bindDepsToFn(
weightedAveragesReportCsvWriter,
[
TYPES.RService,
TYPES.GetDataFromApi
]
)
)
bind(TYPES.FullTaxReport)
.to(FullTaxReport)
bind(TYPES.WeightedAveragesReport)