Discounts Aggregation
https://confluence.oraclecorp.com/confluence/display/DDA/Aggregations+flow https://confluence.oraclecorp.com/confluence/display/DDA/New+Aggregation+Implementation+after+Spark+no+longer+supported+by+AI+APPS main () runProcess runProcess () extractSettings //SettingsDaoImpl extractAndAggregateData saveSettings uploadDataInSolrCollection indexSuppliersInfoToSolr deleteOutdatedSolrDocuments extractSettings get data from erp_ap_settings table returns MAP with minAPR, maxAPR, conversionType, gblCurrency extractAndAggregateData() InvoicePaymentsExtractor.prepareDataBeforeExtraction erp_ap_aggregation_pkg.clean_payments ( DiscountsDatabase/src/main/resources/db/migration/oracle/create) Defaults bucurrency and invoicecurrency on invoice payments if null from invoice & gl_currencies calculator = new APRCalculator(minAPR, maxAPR); suppliersRDD(id, supplierPojo) = SuppliersExtractor.extractSuppliers(tenantId, jsc, calculator) getCount call extractSuppliersRDD() to retu...