Can you explain your problem, please? Fixing an unknown problem is quite difficult.
I strongly recommend you look at the query you generated and compare it with what you intended. Call qbdsCustInvoiceJour.toString() to get the SQL-like query string. You'll probably need to add .fetchMode(QueryFetchMode::One2One) on the child data sources to see them there (or to restructure your query to use CustTable as the root datasource).
By the way, make sure that your GatePassLine table has a corresponding relation.