The right way to connect DC terminals

So in the back of my inverter (in the DC terminals section) I have a cable lug, nut, washer and a washer lock. And I have no idea how to put them in the right order. Should the cable lug be connected directly to the terminal end of the inverter ? or should I put the washer and its locker between the cable lug and the terminal end ? Please help 😥.
*attached is an image of my situation, I placed them in the order I think it's most appropriate but didnt tighten them up.
*attached is an image of my situation, I placed them in the order I think it's most appropriate but didnt tighten them up.
Comments
Main daytime system ~4kw panels into 2xMNClassic150 370ah 48v bank 2xOutback 3548 inverter 120v + 240v autotransformer
Night system ~1kw panels into 1xMNClassic150 700ah 12v bank morningstar 300w inverter
Second system 1890W 3 × 300W No name brand poly, 3×330 Sunsolar Poly panels, Morningstar TS 60 PWM controller, no name 2000W inverter 400Ah LFP 24V nominal battery with Daly BMS, used for water pumping and day time air conditioning.
5Kw Yanmar clone single cylinder air cooled diesel generator for rare emergency charging and welding.