{"package":"BILLING_RUN","pdr_config":{"mappings":[{"REPORT_NAME":"BILLING","REPORT_SUB_TYPE":"PRIORADJUSTMENTS","VERSION":5}],"transaction_type":"INSERT"},"documentation_urls":["https://nemweb.com.au/Reports/Current/MMSDataModelReport/Electricity/ElectricityDataModelReport_files/Elec16.htm#388"],"comment":"BILLINGPRIORADJUSTMENTS sets out prior period adjustments and associated interest inserted in subsequent Final Statements arising from Revision Statement postings.","description":"BILLINGPRIORADJUSTMENTS data is confidential to the relevant\nparticipant.\n\nSource\n\nBILLINGPRIORADJUSTMENTS is populated on the posting of a Final billing\nrun only.\n\nVolume\n\nApproximately two records inserted per week.\n\nNote\n\nActual adjustment payable is ADJAMOUNT - PERAMOUNT + INTEREST AMOUNT.","primary_keys":["ADJBILLRUNNO","ADJCONTRACTYEAR","ADJWEEKNO","BILLRUNNO","CONTRACTYEAR","PARTICIPANTID","WEEKNO"],"indexes":[["LASTCHANGED"],["PARTICIPANTID","LASTCHANGED"]],"columns":{"ADJBILLRUNNO":{"sql_type":"NUMBER(3,0)","pl_type":"pl.Int16","mandatory":true,"comment":"Bill run number of the posted revision statement inserted to the Final Statement","is_integer":true,"num_int_bits":16},"ADJCONTRACTYEAR":{"sql_type":"NUMBER(4,0)","pl_type":"pl.Int16","mandatory":true,"comment":"ContractYear of the posted revision statement inserted to the Final Statement","is_integer":true,"num_int_bits":16},"ADJWEEKNO":{"sql_type":"NUMBER(3,0)","pl_type":"pl.Int16","mandatory":true,"comment":"WeekNo of the posted revision statement inserted to the Final Statement","is_integer":true,"num_int_bits":16},"BILLRUNNO":{"sql_type":"NUMBER(3,0)","pl_type":"pl.UInt16","mandatory":true,"comment":"Billing run number.","is_integer":true,"unsigned_int":true,"num_int_bits":16},"CONTRACTYEAR":{"sql_type":"NUMBER(4,0)","pl_type":"pl.UInt16","mandatory":true,"comment":"Settlement year.","is_integer":true,"unsigned_int":true,"num_int_bits":16},"PARTICIPANTID":{"sql_type":"VARCHAR2(10)","pl_type":"pl.Categorical","mandatory":true,"comment":"Participant ID","is_categorical":true},"WEEKNO":{"sql_type":"NUMBER(3,0)","pl_type":"pl.UInt16","mandatory":true,"comment":"Settlement week number.","warnings":["There may be 53 weeks in a year, depending on how weeks align to the year start/end."],"is_integer":true,"unsigned_int":true,"num_int_bits":16},"ADJAMOUNT":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"Adjusted amount.","is_float":true},"INTERESTAMOUNT":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"Interest amount.","is_float":true},"IRN":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"Interest rate applied to the revision adjustment","is_float":true},"LASTCHANGED":{"sql_type":"DATE","pl_type":"pl.Datetime()","mandatory":false,"comment":"Last changed.","examples":["2026/01/20 00:05:00"],"parse_csv_as_string":true,"is_s_datetime":true},"PREVAMOUNT":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"Statement total of the previous posted revision statement inserted to the Final Statement.","is_float":true},"IRP":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"unused; always null","unused":true,"is_float":true},"IRSR_ADJAMOUNT":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"unused; always null","unused":true,"is_float":true},"IRSR_INTERESTAMOUNT":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"unused; always null","unused":true,"is_float":true},"IRSR_PREVAMOUNT":{"sql_type":"NUMBER(15,5)","pl_type":"pl.Float64","mandatory":false,"comment":"unused; always null","unused":true,"is_float":true}},"visibility":"Private","trigger":"After posting of a final billing run"}