" LEFT JOIN Set_fis b ON a.ChassisNumber = b.ChassisNumber2 \n"+
" AND a.KENNCode = b.KENNCode \n"+
" AND a.MaterialCode = b.ItemCode\n"+
" LEFT JOIN ( SELECT SUM( amt )/ SUM( Qty ) InvoicePrice, MaterialCode FROM set_invoice WHERE version = '202110' GROUP BY materialcode ) c ON a.MaterialCode = c.MaterialCode\n"+
" LEFT JOIN ( SELECT SUM( amt )/ SUM( Qty ) InvoicePrice, MaterialCode FROM set_invoice WHERE version = '{0}' GROUP BY materialcode ) c ON a.MaterialCode = c.MaterialCode\n"+
" LEFT JOIN set_material d ON a.MaterialCode = d.CustomerPartCode \n"+