taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F2Header").text Name of Respondent:
[@ferc:RespondentLegalName @period=$currentDuration] Duke Energy Kentucky, Inc.
taxonomy().concept(ferc:SubmissionType).label("http://ferc.gov/form/2020-01-01/roles/label/F2Header").text This report is:
(1) if missing({covered @concept=ferc:SubmissionType}) ☐ An Original']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "O" ☑ An Original']]> else ☐ An Original']]> An Original
(2) if missing([covered @concept=ferc:SubmissionType @period=$currentDuration]) ☐ A Resubmission']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "R" ☑ A Resubmission']]> else ☐ A Resubmission']]> A Resubmission
taxonomy().concept(ferc:ReportDate).label("http://ferc.gov/form/2020-01-01/roles/label/F2Header").text Date of Report:
[@ferc:ReportDate @period=$currentDuration] 04/26/2019
taxonomy().concept(ferc:ReportYearPeriod).label("http://ferc.gov/form/2020-01-01/roles/label/F2Header").text Year/Period of Report:
End of: [@ferc:ReportYear @period=$currentDuration] 2018 / [@ferc:ReportPeriod @period=$currentDuration] Q4
// adding a comment $headings = filter (taxonomy().concept(ferc:ScheduleUnrecoveredPlantAndRegulatoryStudyCostsAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "230c - Schedule - Unrecovered Plant And Regulatory Study Costs (Account 182.2)" and $item.part-by-name(ferc-part:ValueType).part-value == "Column") $NoCols = $headings.length; $heading = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:Period).part-value, taxonomy().concept(to-qname($ref.part-by-name(ferc-part:ElementName).part-value)))); $heading_dict = dict(for $row in $heading list("("+$row[1]+")",list(if $row[2] == "Current" if $row[3].period-type == duration $currentDuration else $currentInstant else $priorInstant , $row[3])) ); $blankCols = list(for $c in range($NoCols) none ); $data2 = list(for $i in range(10) list($i) + $blankCols ); $data = if count(list({covered @ferc:UnrecoveredPlantAndRegulatoryStudyCostsAxis=*})) > 0 list({covered @ferc:UnrecoveredPlantAndRegulatoryStudyCostsAxis=* {list( if exists({@ferc:OrderNumber @unit=* @period=$currentDuration}) first(list({@ferc:OrderNumber @unit=* @period=$currentDuration})) else 0, if exists({@ferc:DescriptionOfUnrecoveredPlantAndRegulatoryStudyCosts @unit @period=$currentDuration}) first(list({@ferc:DescriptionOfUnrecoveredPlantAndRegulatoryStudyCosts @unit @period=$currentDuration})) else none, if exists({@ferc:UnrecoveredPlantAndRegulatoryStudyCosts @unit @period=$priorInstant}) first(list({@ferc:UnrecoveredPlantAndRegulatoryStudyCosts @unit @period=$priorInstant})) else none, if exists({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsNotYetRecognized @unit @period=$currentDuration}) first(list({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsNotYetRecognized @unit @period=$currentDuration})) else none, if exists({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsRecognized @unit @period=$currentDuration}) first(list({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsRecognized @unit @period=$currentDuration})) else none, if exists({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsWrittenOffAccountCharged @unit @period=$currentDuration}) first(list({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsWrittenOffAccountCharged @unit @period=$currentDuration})) else none, if exists({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsWrittenOff @unit @period=$currentDuration}) first(list({@ferc:UnrecoveredPlantAndRegulatoryStudyCostsWrittenOff @unit @period=$currentDuration})) else none, if exists({@ferc:UnrecoveredPlantAndRegulatoryStudyCosts @unit @period=$currentInstant}) first(list({@ferc:UnrecoveredPlantAndRegulatoryStudyCosts @unit @period=$currentInstant})) else none /** THIS SHOULD WORK BUT XULE HAS AN ALIGNMENT PROBLEM WITH NONE SO DO NOT USE **/ /** for $row in $heading_dict.keys.sort if exists({@concept = $heading_dict[$row][2] @unit @period = $heading_dict[$row][1]}) {@concept = $heading_dict[$row][2] @unit @period = $heading_dict[$row][1]} else none**/ )}}) else $data2; $uniqueData = list(for $x in $data if $x == list(0) + $blankCols skip else $x ); for $row in $uniqueData.sort
Prepayments (Acct 165), Extraordinary Property Losses (Acct 182.1), Unrecovered Plant and Regulatory Study Costs (Acct 182.2) (continued)
taxonomy().concept(ferc:ScheduleUnrecoveredPlantAndRegulatoryStudyCostsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2ScheduleTitle").text UNRECOVERED PLANT AND REGULATORY STUDY COSTS (ACCOUNT 182.2)
taxonomy().concept(ferc:ScheduleUnrecoveredPlantAndRegulatoryStudyCostsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F2Instructions").text
  1. Include in the description of costs, the date of Commission authorization to use Account 182.2 and period of amortization (mo, yr, to mo, yr).
  2. Add rows as necessary to report all data. Number rows in sequence beginning with the next row number after the last row number used for extraordinary property losses.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleUnrecoveredPlantAndRegulatoryStudyCostsAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "230c - Schedule - Unrecovered Plant And Regulatory Study Costs (Account 182.2)") $heading = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value, $ref.part-by-name(ferc-part:ElementName).part-value)) $heading_dict = dict(for $row in $heading list("("+$row[1]+")",list($row[2],taxonomy().concept(to-qname($row[3])))) ); for $row in $heading_dict.keys.sort
$heading_dict[$row][2].name.local-name
$heading_dict[$row][1] Nature of Payment
$row (a)
16 16 $row[2] ABC Processing Plant Abandonment $row[3] $12,389,511 $row[4] $0 $row[5] $55,036 $row[7] $3,281,566 $row[8] $9,162,981
26 taxonomy().concept(ferc:UnrecoveredPlantAndRegulatoryStudyCosts).label("http://ferc.gov/form/2020-01-01/roles/label/F2Total").text
Total
first(list([covered @concept=ferc:UnrecoveredPlantAndRegulatoryStudyCosts @period = $priorInstant])) $12,389,511 first(list([covered @concept=ferc:UnrecoveredPlantAndRegulatoryStudyCostsNotYetRecognized @period = $currentDuration])) $0 first(list([covered @concept=ferc:UnrecoveredPlantAndRegulatoryStudyCostsRecognized @period = $currentDuration])) $55,036 first(list([covered @concept=ferc:UnrecoveredPlantAndRegulatoryStudyCostsWrittenOff @period = $currentDuration])) $3,281,566 first(list([covered @concept=ferc:UnrecoveredPlantAndRegulatoryStudyCosts @period = $currentInstant])) $9,162,981