[CORE] #12 : Mise à jour des types de champs de statistiques

This commit is contained in:
Notmoo-PC\Notmoo 2018-01-23 18:02:22 +01:00
parent e87aecf2f9
commit b609661c03
2 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,8 @@
package com.pqt.core.common_resources.statistics; package com.pqt.core.common_resources.statistics;
public enum StatisticFieldType { public enum StatisticFieldType {
SIMPLE, SIMPLE_NUMBER,
LIST SIMPLE_CURRENCY,
LIST,
OTHER
} }

View File

@ -2,14 +2,14 @@ package com.pqt.core.common_resources.statistics;
public enum StatisticFields { public enum StatisticFields {
TOTAL_SALE_WORTH("total_sale_worth", StatisticFieldType.SIMPLE), TOTAL_SALE_WORTH("total_sale_worth", StatisticFieldType.SIMPLE_CURRENCY),
TOTAL_SALE_AMOUNT("total_sale_amount", StatisticFieldType.SIMPLE), TOTAL_SALE_AMOUNT("total_sale_amount", StatisticFieldType.SIMPLE_NUMBER),
TOTAL_MONEY_MADE("total_money_made", StatisticFieldType.SIMPLE), TOTAL_MONEY_MADE("total_money_made", StatisticFieldType.SIMPLE_CURRENCY),
TOP_POPULAR_PRODUCTS("top_popular_products", StatisticFieldType.LIST), TOP_POPULAR_PRODUCTS("top_popular_products", StatisticFieldType.LIST),
STAFF_SALE_WORTH("staff_sale_worth", StatisticFieldType.SIMPLE), STAFF_SALE_WORTH("staff_sale_worth", StatisticFieldType.SIMPLE_CURRENCY),
STAFF_SALE_AMOUNT("staff_sale_amount", StatisticFieldType.SIMPLE), STAFF_SALE_AMOUNT("staff_sale_amount", StatisticFieldType.SIMPLE_NUMBER),
GUEST_SALE_WORTH("guest_sale_worth", StatisticFieldType.SIMPLE), GUEST_SALE_WORTH("guest_sale_worth", StatisticFieldType.SIMPLE_CURRENCY),
GUEST_SALE_AMOUNT("guest_sale_amount", StatisticFieldType.SIMPLE); GUEST_SALE_AMOUNT("guest_sale_amount", StatisticFieldType.SIMPLE_NUMBER);
private final String str; private final String str;
private final StatisticFieldType type; private final StatisticFieldType type;