update settings to use new model
This commit is contained in:
@@ -12,6 +12,15 @@ std::wstring from_utf8(std::string string);
|
||||
|
||||
std::string get_path_relative_to_home(std::string path);
|
||||
|
||||
const std::map<std::string, ColumnType> column_names = {
|
||||
{"date", ColumnType::date},
|
||||
{"goods_name", ColumnType::goods_name},
|
||||
{"goods_price_per_unit", ColumnType::goods_price_per_unit},
|
||||
{"goods_quantity", ColumnType::goods_quantity},
|
||||
{"goods_net_weight", ColumnType::goods_net_weight},
|
||||
{"goods_total", ColumnType::goods_total}
|
||||
};
|
||||
|
||||
// template <typename K, typename V>
|
||||
// K find_key_by_value(std::map<K, V> &m, V value);
|
||||
std::string find_key_by_value(const std::map<std::string, ColumnType> &m, ColumnType value);
|
||||
|
||||
Reference in New Issue
Block a user