AND <dtml-vartable_1>.portal_type = "Bank Reconciliation"\n
AND <dtml-vartable_0>.base_category_uid = <dtml-var"portal_categories.aggregate.getUid()">\n
<dtml-iftable_2><dtml-comment>This related key can also be used with a criterion on delivery.date, in this case we join with a 3rd table</dtml-comment>\n
<value><string>XXX since this constraint only needs to be enforced when closing a bank reconciliation, we only apply it in open state, which is completely incorrect.</string></value>
<value><string>Documents in this state were deleted by the user as a result of clicking on the trash button or calling the delete action</string></value>