public BillNote forConcept(AtrilSession oSes, String sConcept, String sEmployeeUuid) {
String sTaxPayerId = getDocument().parents().get(0).id();
DocumentIndexer oIdx = oSes.getDocumentIndexer();
final String sQry = "taxpayer:\""+sTaxPayerId+"\" AND employee_uuid:\""+sEmployeeUuid+"\" AND concept:\"" + Gadgets.removeChars(sConcept,"\"\n'")+ "\" AND " + DocumentIndexer.AdditionalDocumentFields.DOCUMENT_TYPE_NAME.value() + ":" + "BillNote";
Log.out.debug("DocumentIndexer.query("+sQry+")");
SortableList<Document> oLst = (SortableList<Document>) oIdx.query(sQry);
if (oLst.isEmpty())
return create(oSes, "", "basic", sTaxPayerId, sConcept, sEmployeeUuid);
else
return new BillNote(oSes.getDms().getDocument(oLst.get(0).id()));
}