Subversion Repositories SmartDukaan

Rev

Rev 37533 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37533 Rev 37586
Line 28... Line 28...
28
    List<RbmBrandPartnerCountModel> getBrandPartnerCountByRbm(int authId, int warehouseId, LocalDate startDate, LocalDate endDate);
28
    List<RbmBrandPartnerCountModel> getBrandPartnerCountByRbm(int authId, int warehouseId, LocalDate startDate, LocalDate endDate);
29
 
29
 
30
    List<WarehouseBuyingByMovementModel> getWarehouseBuyingByMovement(int warehouseId, LocalDate startDate, LocalDate endDate);
30
    List<WarehouseBuyingByMovementModel> getWarehouseBuyingByMovement(int warehouseId, LocalDate startDate, LocalDate endDate);
31
 
31
 
32
    /**
32
    /**
-
 
33
     * Opening stock value per movement class for a warehouse at the start of a period.
-
 
34
     * Used by the RBM DRR drill-down "Warehouse Flow" table to contextualise the
-
 
35
     * period's buying/selling ratio against stock that already existed before the
-
 
36
     * period.
-
 
37
     *
-
 
38
     * @param warehouseId warehouse whose opening we want
-
 
39
     * @param asOfDate    the period start; everything received before this date
-
 
40
     *                    and everything sold before this date contribute
-
 
41
     */
-
 
42
    List<WarehouseOpeningByMovementModel> getWarehouseOpeningByMovement(int warehouseId, LocalDate asOfDate);
-
 
43
 
-
 
44
    /**
33
     * Daily writer for Sales-hierarchy targets (mirrors {@link #setMovementWiseRbmTargets}).
45
     * Daily writer for Sales-hierarchy targets (mirrors {@link #setMovementWiseRbmTargets}).
34
     * Reads today's persisted RBM snapshots from inventory.rbm_targets, rolls them up per
46
     * Reads today's persisted RBM snapshots from inventory.rbm_targets, rolls them up per
35
     * (sales_auth_id × warehouse_id) for every active Sales person whose downline contains
47
     * (sales_auth_id × warehouse_id) for every active Sales person whose downline contains
36
     * at least one RBM, and inserts one row per (sales, warehouse) into inventory.sales_targets.
48
     * at least one RBM, and inserts one row per (sales, warehouse) into inventory.sales_targets.
37
     * Intended to run once daily via the cron flag {@code pushSalesTargets},
49
     * Intended to run once daily via the cron flag {@code pushSalesTargets},