--
This commit is contained in:
+19
-2
@@ -1,7 +1,7 @@
|
||||
"""Allow-listed imported CSV tables and their database columns."""
|
||||
|
||||
TABLES: dict[str, tuple[str, ...]] = {
|
||||
"sales_projection": ("name", "headquarter", "report_date", "month", "serial_no", "product_name", "pts", "secondary_qty", "value", "closing", "secondary_value", "aug_sales", "value_2"),
|
||||
"sales_projection": ("name", "headquarter", "report_date", "month", "serial_no", "product_name", "pts", "closing_qty", "closing_value", "projection_qty", "projection_value"),
|
||||
"weekly_report": ("employee_name", "report_date", "headquarter", "month", "no_of_days_worked", "no_of_doctor_called", "no_of_chemist_called", "pob_booked", "secondary_sales", "pob_objective", "secondary_objective", "product_offer_scheme_booked", "product_offer_scheme_objective"),
|
||||
"field_activity_report": ("name", "headquarter", "month", "report_date", "station_worked", "no_of_doctors_called", "no_of_chemists_pds_called", "doctor_call_avg", "chemist_call_avg"),
|
||||
"fare_chart": ("name", "headquarter", "serial_no", "report_date", "from_location", "to_location", "kilometers_km"),
|
||||
@@ -11,17 +11,34 @@ TABLES: dict[str, tuple[str, ...]] = {
|
||||
"sales_and_stock_statement": ("name", "headquarter", "report_date", "month", "serial_no", "product_name", "opening", "receipt", "sale", "closing", "value_in_pts"),
|
||||
"tour_plan": ("name", "headquarter", "serial_no", "report_date", "from_location", "to_location", "pob", "stockiest_visit"),
|
||||
"standard_tour_plan": ("name", "headquarter", "serial_no", "place"),
|
||||
"expense_statement": ("name", "designation", "headquarter", "month", "serial_no", "report_date", "from_location", "to_location", "fare", "da_hq", "da_ex", "da_out", "postage", "other_expense", "total", "business_achieved"),
|
||||
}
|
||||
|
||||
#: The order the forms are listed in, on screen and in the API.
|
||||
FORM_ORDER = (
|
||||
"standard_tour_plan",
|
||||
"tour_plan",
|
||||
"fare_chart",
|
||||
"sales_and_stock_statement",
|
||||
"sales_projection",
|
||||
"field_activity_report",
|
||||
"expense_statement",
|
||||
"area_covered",
|
||||
"weekly_report",
|
||||
"core_dr_call_conversion",
|
||||
"daily_call_report_csv",
|
||||
)
|
||||
|
||||
CSV_LABELS = {
|
||||
"weekly_report": "Weekly Report",
|
||||
"field_activity_report": "Field Activity Report",
|
||||
"fare_chart": "Fare Chart",
|
||||
"daily_call_report_csv": "Daily Call Report CSV",
|
||||
"core_dr_call_conversion": "Core Doctor Call Conversion",
|
||||
"area_covered": "Area Covered",
|
||||
"area_covered": "Area Coverage",
|
||||
"sales_and_stock_statement": "Sales and Stock Statement",
|
||||
"tour_plan": "Tour Plan",
|
||||
"standard_tour_plan": "Standard Tour Plan",
|
||||
"sales_projection": "Sales Projection",
|
||||
"expense_statement": "Expense Statement",
|
||||
}
|
||||
Reference in New Issue
Block a user