2 CREATE OR REPLACE FUNCTION voidbankreconciliation(i_bankrec_id INTEGER)
6 v_bankrec_posted BOOLEAN;
7 v_bankaccnt_id INTEGER;
20 bankrec_id = i_bankrec_id;
22 -- first of all, check if the bankrec exist...
27 -- check if the bankrec is posted
28 IF (NOT v_bankrec_posted) THEN
35 bankrec_posted = FALSE,
36 bankrec_postdate = NULL
38 bankrec_id = i_bankrec_id;
52 bankrecitem_source = 'GL'
56 bankrecitem_bankrec_id = i_bankrec_id
65 LANGUAGE plpgsql VOLATILE
68 ALTER FUNCTION voidbankreconciliation(INTEGER)