Commit e7346d40 authored by suryakant's avatar suryakant

Table Header Update

parent c34dd82d
...@@ -203,8 +203,7 @@ class CustomReportHandler: ...@@ -203,8 +203,7 @@ class CustomReportHandler:
header_end_col = header_start_col + shape[1] - 1 header_end_col = header_start_col + shape[1] - 1
border_json[ border_json[
(header_row, header_start_col, header_row, header_end_col) (header_row, header_start_col, header_row, header_end_col)
] = \ ] = category_data["addition"]["merge_header"]
category_data["addition"]["merge_header"]
column_counter += shape[1] column_counter += shape[1]
previous_category_cols = column_counter previous_category_cols = column_counter
......
...@@ -87,16 +87,7 @@ class SterliteRefineryTemplate: ...@@ -87,16 +87,7 @@ class SterliteRefineryTemplate:
"anode_availability", "uom", "norms", "anode_availability", "uom", "norms",
"on_date", "mtd", "ytd"], "on_date", "mtd", "ytd"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"SAFETY REPORT": { "SAFETY REPORT": {
"columns": ["SAFETY REPORT", "UOM", "NORMS", "ON DATE", "MTD", "YTD"], "columns": ["SAFETY REPORT", "UOM", "NORMS", "ON DATE", "MTD", "YTD"],
"query": { "query": {
...@@ -183,16 +174,7 @@ class SterliteRefineryTemplate: ...@@ -183,16 +174,7 @@ class SterliteRefineryTemplate:
"norms", "on_date", "mtd", "norms", "on_date", "mtd",
"ytd"], "ytd"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"RM ANODE RECEIPT DETAILS": { "RM ANODE RECEIPT DETAILS": {
"columns": [ "columns": [
"RM ANODE RECEIPT DETAILS", "RM ANODE RECEIPT DETAILS",
...@@ -249,16 +231,7 @@ class SterliteRefineryTemplate: ...@@ -249,16 +231,7 @@ class SterliteRefineryTemplate:
"data_column": ["efficiencies", "uom", "norms", "data_column": ["efficiencies", "uom", "norms",
"on_date", "mtd", "ytd"], "on_date", "mtd", "ytd"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"BANK / CROP": { "BANK / CROP": {
"columns": [ "columns": [
"BANK / CROP", "BANK / CROP",
...@@ -301,16 +274,7 @@ class SterliteRefineryTemplate: ...@@ -301,16 +274,7 @@ class SterliteRefineryTemplate:
"data_column": ["production", "uom", "norms", "data_column": ["production", "uom", "norms",
"on_date", "mtd", "ytd"], "on_date", "mtd", "ytd"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"CIRCULATION": { "CIRCULATION": {
"columns": ["CIRCULATION", "CE%", "THEOR. WEIGHT", "ACTUAL WEIGHT"], "columns": ["CIRCULATION", "CE%", "THEOR. WEIGHT", "ACTUAL WEIGHT"],
"query": { "query": {
...@@ -353,16 +317,7 @@ class SterliteRefineryTemplate: ...@@ -353,16 +317,7 @@ class SterliteRefineryTemplate:
"data": [], "data": [],
"data_column": ["fg_inventory", "on_date", "mtd", "ytd"], "data_column": ["fg_inventory", "on_date", "mtd", "ytd"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"PRODUCTION": { "PRODUCTION": {
"columns": ["PRODUCTION", "ON DATE", "MTD", "YTD"], "columns": ["PRODUCTION", "ON DATE", "MTD", "YTD"],
"query": { "query": {
...@@ -409,16 +364,7 @@ class SterliteRefineryTemplate: ...@@ -409,16 +364,7 @@ class SterliteRefineryTemplate:
"data_column": ["crop", "banks", "total_cells", "data_column": ["crop", "banks", "total_cells",
"cell_voltage", "t_shorts"], "cell_voltage", "t_shorts"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"DEPOSIT LOSS (-) / GAIN (+) DETAILS": { "DEPOSIT LOSS (-) / GAIN (+) DETAILS": {
"columns": [ "columns": [
"CATEGORY", "CATEGORY",
...@@ -565,16 +511,7 @@ class SterliteRefineryTemplate: ...@@ -565,16 +511,7 @@ class SterliteRefineryTemplate:
"primary": "utilities_consumptions" "primary": "utilities_consumptions"
} }
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"SPECIFIC CONSUMPTION": { "SPECIFIC CONSUMPTION": {
"columns": ["CONSUMABLES", "UOM", "NORMS", "ON DATE", "MTD", "YTD"], "columns": ["CONSUMABLES", "UOM", "NORMS", "ON DATE", "MTD", "YTD"],
"query": { "query": {
...@@ -619,16 +556,7 @@ class SterliteRefineryTemplate: ...@@ -619,16 +556,7 @@ class SterliteRefineryTemplate:
"cir_2", "cir_2",
], ],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"SUSPENDED SOLIDS 1": { "SUSPENDED SOLIDS 1": {
"columns": [ "columns": [
"SUSPENDED SOLIDS (Cir-1: I/L)", "SUSPENDED SOLIDS (Cir-1: I/L)",
...@@ -716,16 +644,7 @@ class SterliteRefineryTemplate: ...@@ -716,16 +644,7 @@ class SterliteRefineryTemplate:
"equipment_location", "duration", "equipment_location", "duration",
"production", "cause"], "production", "cause"],
}, },
"BLANK": {
"columns": [
None
],
"data": [],
"query": {},
"data_column": [
None
]
},
"PM COMPLIANCE": { "PM COMPLIANCE": {
"columns": [ "columns": [
"PM COMPLIANCE", "PM COMPLIANCE",
...@@ -753,4 +672,3 @@ class SterliteRefineryTemplate: ...@@ -753,4 +672,3 @@ class SterliteRefineryTemplate:
} }
}, },
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment