71: AND a.attribute_value IN
72: (SELECT r_class.name
73: FROM ar_receipt_classes r_class,
74: ar_receipt_methods r_method,
75: ar_cash_receipts_all r_cash
76: WHERE r_class.receipt_class_id = r_method.receipt_class_id
77: AND r_cash.receipt_method_id = r_method.receipt_method_id
78: AND r_cash.cash_receipt_id = cp_cash_receipt_id
79: );