Sample CCE file download & UI
As a system administrator, I want the default CCE Catalog to be populated by a template file with all the correct headings so that I can download the current catalog as a CSV and plug in all the CCE items and their required fields needed to create my country's CCE catalog.
The default CCE catalog will be a CSV catalog template with the headers built in https://openlmis.atlassian.net/browse/OLMIS-2604
The default template catalog will have no line items, only the correct headers
This template file will be accessed by clicking the "Download Current Catalog" button as seen in https://openlmis.atlassian.net/browse/OLMIS-2872
(No additional UI needs to be built for this feature)
Test case created for this ticket
Note: Attached to this ticket is a CSV file with the just the headers from and no line items. The only change is that the Fuel Consumption header needed to be split into "Fuel consumption kerosene" and "Fuel consumption LP gas" for clarity.
What I mean is on test server there is always some items and we can't check that we have only headers there.
But I tested it locally and if no items, all headers from template are shown.
Also updated test case
— The default template catalog will have no line items, only the correct headers
What we want to edit? If there are only headers we can only add new rows.
This test case should include Downloading the sample csv file with the headers and being able to edit it. We shouldn't be removing or adding any catalog items here, that is part of OLMIS-2872.
Test case require using local ref distro because we can't remove demo data catalog items by API. Do you want me to write such test case?
CSV is missing Gross volume and Net volume