Skip to content

Commit

Permalink
Update Company.sql
Browse files Browse the repository at this point in the history
Correct `entity__list_credit()` not filtering based on supplied entity_class.
  • Loading branch information
NoGare committed May 19, 2021
1 parent c1b50d7 commit 00be1f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/modules/Company.sql
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@ $$
ec.taxform_id
FROM entity e
JOIN entity_credit_account ec ON (e.id = ec.entity_id)
WHERE e.id = in_entity_id
WHERE e.id = in_entity_id
AND ec.entity_class = in_entity_class;
$$ LANGUAGE SQL;

COMMENT ON FUNCTION entity__list_credit (in_entity_id int, in_entity_class int)
Expand Down

0 comments on commit 00be1f1

Please sign in to comment.