<commit_before><!--
  ~ Copyright © 2013 <NAME>, Inc. (JSI). All Rights Reserved.
  ~
  ~ The U.S. Agency for International Development (USAID) funded this section of the application development under the terms of the USAID | DELIVER PROJECT contract no. GPO-I-00-06-00007-00.
  -->

<div class="row-fluid sortable ui-sortable">
            <div class="box span12">
                    <div class="box-header">
                        <h2><i class="icon-edit"></i><span class="break"></span>Summary Report</h2>
                        <div class="box-icon">
                            <a ng-click="section(0)" ng-show="show(1)" class="btn-minimize"><i class="icon-chevron-up"></i></a>
                            <a ng-click="section(1)"  ng-show="show(0)" class="btn-minimize"><i class="icon-chevron-down"></i></a>
                            <a id="pdf-button" href="#list" ng-click="exportReport('PDF')" class='btn-small btn-info'>PDF</a>
                            <a id="xls-button" href="#list" ng-click="exportReport('xls')" class='btn-small btn-info'>Excel</a>
                        </div>
                    </div>

            <div class="box-content" >
                <div class="app-form" style="padding: 5px;">
                        <form ng-submit="filterGrid()"  name="filterForm" novalidate>
                            <div class="clearfix ">

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Program <span class="label-required">*</span></label>

                                    <div class="form-fields">
                                        <select ui-select2 style="width:200px;" class="large-input" name="program" ng-change="filterGrid()" ng-model="program">
                                            <option  ng-repeat="option in programs" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Schedule <span class="label-required">*</span></label>

                                    <div class="form-fields">
                                        <select ui-select2 style="width:200px;" class="large-input" name="schedule" ng-change="ChangeSchedule()" ng-model="schedule">
                                            <option  ng-repeat="option in schedules" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters">
                                    <label class="labels">Period <span class="label-required">*</span></label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" class="input-large" ng-required="true" ng-change="filterGrid()" name="period" ng-model="period" >
                                            <option  ng-repeat="option in periods" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="clearfix"></div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Product</label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" name="product"  ng-model="product" >
                                            <option  ng-repeat="option in products" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Zone</label>

                                    <div class="form-field">
                                        <select  ui-select2 style="width:200px;" ng-required="true"  name="zone" ng-model="zone" ng-change="filterGrid()" >
                                            <option  ng-repeat="option in zones" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Reporting Groups</label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:250px;" name="requisitionGroup"  ng-model="rgroup" >
                                            <option  ng-repeat="option in requisitionGroups" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Facility Type</label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" id="facility-type"  name="facilityType" ng-model="facilityType" >
                                            <option  ng-repeat="option in facilityTypes" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>
                                <!-- Facility-->
                                <div class="form-cell horizontalFilters">
                                    <label class="labels">Facility Name<span  class="label-required"> *</span></label>
                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" id="facility-name"  name="facility" ng-model="facility" >
                                            <option  ng-repeat="option in facilities" value="{{ option.id }}">{{ option.code }} - {{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                            </div>
                         </form>
                </div>
            </div>

        <table ng-show="datarows.length == 0" class="table">
            <tr>
                <td >
                    No Data to show under selected filters
                </td>
            </tr>
        </table>
         <table ng-show="datarows.length > 0" class="table-bordered table" show-filter="true" ng-table="tableParams">

             <tbody>
                <tr ng-repeat="row in datarows">
                    <td data-title="'Code'" sortable="code" filter="{ 'code': 'text' }">{{ row.code }}</td>
                    <td data-title="'Product'" sortable="product" filter="{ 'product': 'text' }">{{ row.product }}</td>
                    <td class="number" sortable="openingBalance" data-title="'Opening Balance'" filter="{ 'action': 'button' }">{{ row.openingBalance | number}}</td>
                    <td class="number" sortable="receipts" data-title="'Recipts'">{{ row.receipts | number}}</td>
                    <td class="number" sortable="issues" data-title="'Issues'">{{ row.issues | number}}</td>
                    <td class="number" sortable="adjustements" data-title="'Adjustments'">{{ row.adjustments | number}}</td>
                    <td class="number" sortable="closingBalance" data-title="'Closing Balance'">{{ row.closingBalance | number}}</td>
                    <td class="number" sortable="monthsOfStock" data-title="'MOS'">{{ row.monthsOfStock | number}}</td>
                    <td class="number" sortable="averageMonthlyConsumption" data-title="'AMC'">{{ row.averageMonthlyConsumption | number}}</td>
                    <td class="number" sortable="minimumStock" data-title="'Minimum Stock'">{{ row.minimumStock | number}}</td>
                    <td class="number" sortable="reorderAmount" data-title="'Reorder Amount'">{{ row.reorderAmount | number}}</td>
                </tr>

             </tbody>
         </table>




   </div>
  </div>
<commit_msg>ELMIS-734: Changed the Zone Label to Geographic Zones.<commit_after><!--
  ~ Copyright © 2013 <NAME>, Inc. (JSI). All Rights Reserved.
  ~
  ~ The U.S. Agency for International Development (USAID) funded this section of the application development under the terms of the USAID | DELIVER PROJECT contract no. GPO-I-00-06-00007-00.
  -->

<div class="row-fluid sortable ui-sortable">
            <div class="box span12">
                    <div class="box-header">
                        <h2><i class="icon-edit"></i><span class="break"></span>Summary Report</h2>
                        <div class="box-icon">
                            <a ng-click="section(0)" ng-show="show(1)" class="btn-minimize"><i class="icon-chevron-up"></i></a>
                            <a ng-click="section(1)"  ng-show="show(0)" class="btn-minimize"><i class="icon-chevron-down"></i></a>
                            <a id="pdf-button" href="#list" ng-click="exportReport('PDF')" class='btn-small btn-info'>PDF</a>
                            <a id="xls-button" href="#list" ng-click="exportReport('xls')" class='btn-small btn-info'>Excel</a>
                        </div>
                    </div>

            <div class="box-content" >
                <div class="app-form" style="padding: 5px;">
                        <form ng-submit="filterGrid()"  name="filterForm" novalidate>
                            <div class="clearfix ">

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Program <span class="label-required">*</span></label>

                                    <div class="form-fields">
                                        <select ui-select2 style="width:200px;" class="large-input" name="program" ng-change="filterGrid()" ng-model="program">
                                            <option  ng-repeat="option in programs" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Schedule <span class="label-required">*</span></label>

                                    <div class="form-fields">
                                        <select ui-select2 style="width:200px;" class="large-input" name="schedule" ng-change="ChangeSchedule()" ng-model="schedule">
                                            <option  ng-repeat="option in schedules" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters">
                                    <label class="labels">Period <span class="label-required">*</span></label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" class="input-large" ng-required="true" ng-change="filterGrid()" name="period" ng-model="period" >
                                            <option  ng-repeat="option in periods" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="clearfix"></div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Product</label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" name="product"  ng-model="product" >
                                            <option  ng-repeat="option in products" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Geographic Zone</label>

                                    <div class="form-field">
                                        <select  ui-select2 style="width:200px;" ng-required="true"  name="zone" ng-model="zone" ng-change="filterGrid()" >
                                            <option  ng-repeat="option in zones" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Reporting Groups</label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:250px;" name="requisitionGroup"  ng-model="rgroup" >
                                            <option  ng-repeat="option in requisitionGroups" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-cell horizontalFilters" >
                                    <label class="labels">Facility Type</label>

                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" id="facility-type"  name="facilityType" ng-model="facilityType" >
                                            <option  ng-repeat="option in facilityTypes" value="{{ option.id }}">{{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>
                                <!-- Facility-->
                                <div class="form-cell horizontalFilters">
                                    <label class="labels">Facility Name</label>
                                    <div class="form-field">
                                        <select ui-select2 style="width:200px;" id="facility-name"  name="facility" ng-model="facility" >
                                            <option  ng-repeat="option in facilities" value="{{ option.id }}">{{ option.code }} - {{ option.name }}</option>
                                        </select>
                                    </div>
                                </div>

                            </div>
                         </form>
                </div>
            </div>

        <table ng-show="datarows.length == 0" class="table">
            <tr>
                <td >
                    No Data to show under selected filters
                </td>
            </tr>
        </table>
         <table ng-show="datarows.length > 0" class="table-bordered table" show-filter="true" ng-table="tableParams">

             <tbody>
                <tr ng-repeat="row in datarows">
                    <td data-title="'Code'" sortable="code" filter="{ 'code': 'text' }">{{ row.code }}</td>
                    <td data-title="'Product'" sortable="product" filter="{ 'product': 'text' }">{{ row.product }}</td>
                    <td class="number" sortable="openingBalance" data-title="'Opening Balance'" filter="{ 'action': 'button' }">{{ row.openingBalance | number}}</td>
                    <td class="number" sortable="receipts" data-title="'Receipt'">{{ row.receipts | number}}</td>
                    <td class="number" sortable="issues" data-title="'Issues'">{{ row.issues | number}}</td>
                    <td class="number" sortable="adjustements" data-title="'Adjustments'">{{ row.adjustments | number}}</td>
                    <td class="number" sortable="closingBalance" data-title="'Closing Balance'">{{ row.closingBalance | number}}</td>
                    <td class="number" sortable="monthsOfStock" data-title="'MOS'">{{ row.monthsOfStock | number}}</td>
                    <td class="number" sortable="averageMonthlyConsumption" data-title="'AMC'">{{ row.averageMonthlyConsumption | number}}</td>
                    <td class="number" sortable="minimumStock" data-title="'Minimum Stock'">{{ row.minimumStock | number}}</td>
                    <td class="number" sortable="reorderAmount" data-title="'Reorder Amount'">{{ row.reorderAmount | number}}</td>
                </tr>

             </tbody>
         </table>




   </div>
  </div>

{'fraction_non_alphanumeric': 0.14056317027011528, 'fraction_numerical': 0.006824568446407065, 'mean_word_length': 1.2028802425467409, 'pattern_counts': {'":': 0, '<': 323, '<?xml version=': 0, '>': 325, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 130, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5047629', 'n_tokens_mistral': 4244, 'n_tokens_neox': 3883, 'n_words': 826}