Subversion Repositories SmartDukaan

Rev

Rev 37482 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37482 Rev 37499
Line 1985... Line 1985...
1985
 
1985
 
1986
    public void persistRbmTodayAchievements() throws Exception {
1986
    public void persistRbmTodayAchievements() throws Exception {
1987
        rbmTargetService.setMovementWiseRbmAchievement();
1987
        rbmTargetService.setMovementWiseRbmAchievement();
1988
    }
1988
    }
1989
 
1989
 
-
 
1990
    /**
-
 
1991
     * Rolls up today's persisted inventory.rbm_targets snapshots into
-
 
1992
     * inventory.sales_targets, one row per (Sales-hierarchy person × warehouse).
-
 
1993
     * Must run AFTER {@link #persistRbmTodayTargets()} on the same day.
-
 
1994
     */
-
 
1995
    public void persistSalesTodayTargets() throws Exception {
-
 
1996
        rbmTargetService.setSalesTargets();
-
 
1997
    }
-
 
1998
 
-
 
1999
    /**
-
 
2000
     * Backfill / seed variant of {@link #persistSalesTodayTargets()} for a
-
 
2001
     * specific date — reads that day's RBM snapshots and writes Sales
-
 
2002
     * snapshots stamped to that day. Handy for local / staging seeding.
-
 
2003
     */
-
 
2004
    public void persistSalesTargetsForDate(java.time.LocalDate date) throws Exception {
-
 
2005
        rbmTargetService.setSalesTargetsForDate(date);
-
 
2006
    }
-
 
2007
 
-
 
2008
    /**
-
 
2009
     * Historical Sales achievement snapshot writer (mirrors
-
 
2010
     * {@link #persistRbmTodayAchievements()}). Rolls up today's live order
-
 
2011
     * ACH into {@code inventory.sales_achievements}, one row per
-
 
2012
     * (Sales person × warehouse). Independent of {@code pushSalesTargets}
-
 
2013
     * — can run in any order.
-
 
2014
     */
-
 
2015
    public void persistSalesTodayAchievements() throws Exception {
-
 
2016
        rbmTargetService.setSalesAchievements();
-
 
2017
    }
-
 
2018
 
-
 
2019
    /** Dated variant of {@link #persistSalesTodayAchievements()} for backfill. */
-
 
2020
    public void persistSalesAchievementsForDate(java.time.LocalDate date) throws Exception {
-
 
2021
        rbmTargetService.setSalesAchievementsForDate(date);
-
 
2022
    }
-
 
2023
 
1990
    public void sendPartnerInvestmentDetails() throws Exception {
2024
    public void sendPartnerInvestmentDetails() throws Exception {
1991
        this.sendPartnerInvestmentDetails(null);
2025
        this.sendPartnerInvestmentDetails(null);
1992
    }
2026
    }
1993
 
2027
 
1994
    public void sendAgeingReport(String... sendTo) throws Exception {
2028
    public void sendAgeingReport(String... sendTo) throws Exception {