You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/cc/altius/FASP/dao/impl/ReportDaoImpl.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -702,7 +702,7 @@ public List<BudgetReportOutput> getBudgetReport(BudgetReportInput br, CustomUser
702
702
+ " SELECT "
703
703
+ " st.BUDGET_ID, "
704
704
+ " SUM(IF(st.SHIPMENT_STATUS_ID IN (1), ((IFNULL(st.FREIGHT_COST,0)+IFNULL(st.PRODUCT_COST,0))*s.CONVERSION_RATE_TO_USD),0)) `PLANNED_BUDGET`, "
705
-
+ " SUM(IF(st.SHIPMENT_STATUS_ID IN (3,4,5,6,7,9), ((IFNULL(st.FREIGHT_COST,0)+IFNULL(st.PRODUCT_COST,0))*s.CONVERSION_RATE_TO_USD),0)) `ORDERED_BUDGET` "
705
+
+ " SUM(IF(st.SHIPMENT_STATUS_ID IN (3,4,5,6,7,9), ((IFNULL(st.FREIGHT_COST,0)+IFNULL(st.PRODUCT_COST,0))*s.CONVERSION_RATE_TO_USD),0)) `ORDERED_BUDGET`, SUM(IF(:programIds='' OR FIND_IN_SET(s.PROGRAM_ID, :programIds), 1, 0)) AS MATCH_COUNT "
706
706
+ "FROM rm_shipment s "
707
707
+ "LEFT JOIN rm_shipment_trans st ON "
708
708
+ " s.SHIPMENT_ID=st.SHIPMENT_ID "
@@ -712,12 +712,12 @@ public List<BudgetReportOutput> getBudgetReport(BudgetReportInput br, CustomUser
712
712
+ " AND st.ACTIVE "
713
713
+ " LEFT JOIN rm_program_planning_unit ppu ON ppu.PROGRAM_ID=s.PROGRAM_ID AND ppu.PLANNING_UNIT_ID=st.PLANNING_UNIT_ID "
714
714
+ " LEFT JOIN rm_planning_unit pu ON pu.PLANNING_UNIT_ID=st.PLANNING_UNIT_ID "
715
-
+ " WHERE ppu.ACTIVE AND pu.ACTIVE AND (:programIds='' OR FIND_IN_SET(s.PROGRAM_ID, :programIds)) "
715
+
+ " WHERE ppu.ACTIVE AND pu.ACTIVE "
716
716
+ "GROUP BY st.BUDGET_ID) stc ON stc.BUDGET_ID=b.BUDGET_ID "
717
717
+ "WHERE "
718
718
+ " TRUE AND b.ACTIVE "
719
719
+ " AND (:programIds='' OR FIND_IN_SET(bp.PROGRAM_ID, :programIds)) "
720
-
+ " AND stc.BUDGET_ID IS NOT NULL "
720
+
+ " AND stc.MATCH_COUNT > 0 "
721
721
+ " AND (:fundingSourceIds='' OR FIND_IN_SET(b.FUNDING_SOURCE_ID, :fundingSourceIds)) "
722
722
+ " AND (b.START_DATE BETWEEN :startDate AND :stopDate OR b.STOP_DATE BETWEEN :startDate AND :stopDate OR :startDate BETWEEN b.START_DATE AND b.STOP_DATE) ");
SELECTMAX(l.STATIC_LABEL_ID) INTO @MAX FROM ap_static_label l ;
3
+
4
+
INSERT INTO ap_static_label_languages VALUES(NULL,@MAX,1,'For multi-program budgets, the numbers in the graph/table represent the total budget amounts, regardless of which programs are selected in the program dropdown.');-- en
5
+
INSERT INTO ap_static_label_languages VALUES(NULL,@MAX,2,'Pour les budgets multiprogrammes, les chiffres du graphique/tableau représentent les montants budgétaires totaux, quels que soient les programmes sélectionnés dans la liste déroulante des programmes.');-- fr
6
+
INSERT INTO ap_static_label_languages VALUES(NULL,@MAX,3,'Para presupuestos multiprograma, los números en el gráfico/tabla representan los montos totales del presupuesto, independientemente de qué programas estén seleccionados en el menú desplegable de programas.');-- sp
7
+
INSERT INTO ap_static_label_languages VALUES(NULL,@MAX,4,'Para orçamentos com vários programas, os números no gráfico/tabela representam os valores totais do orçamento, independentemente dos programas selecionados no menu suspenso de programas.');-- pr
0 commit comments