app/classes/commodity.js
// Assign the additional code to the measure
Assign the additional code to the measure
Assign the additional code to the measure
assign_additional_codes() {
        this.measures.forEach(m => {
            this.additional_codes.forEach(ac => {
                if (m.additional_code_id == ac.id) {
                    m.additional_code = ac;
                    m.additional_code_code = ac.code
                }
            });
        });
    }
assign_additional_codes ( ) { this . measures . forEach ( m => { this . additional_codes . forEach ( ac => { if ( m . additional_code_id == ac . id ) { m . additional_code = ac ; m . additional_code_code = ac . code } } ) ; } ) ; }
Assign the additional code to the measure
Assign the additional code to the measure