288: /*Bug 14121914 - GL date can be NULL if Revenue Recognition is not run. Accrual Accounting to be used*/
289: IF (pr_new.gl_date>= ld_st_accrual_date OR pr_new.gl_date IS NULL)
290: THEN
291: IF lv_ar_trx_type <> jai_constants.ar_invoice_type_cm THEN
292: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
293: ( p_regime_id => ln_regime_id
294: , p_organization_type => jai_constants.service_tax_orgn_type
295: , p_organization_id => ln_organization_id
296: , p_location_id => ln_location_id
297: , p_tax_type => tax_type_rec.t_type
298: , p_account_name => jai_constants.liability
299: );
300: ELSE
301: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
302: ( p_regime_id => ln_regime_id
303: , p_organization_type => jai_constants.service_tax_orgn_type
304: , p_organization_id => ln_organization_id
305: , p_location_id => ln_location_id
308: );
309: END IF;
310: ELSE
311: IF lv_ar_trx_type <> jai_constants.ar_invoice_type_cm THEN
312: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
313: ( p_regime_id => ln_regime_id
314: , p_organization_type => jai_constants.service_tax_orgn_type
315: , p_organization_id => ln_organization_id
316: , p_location_id => ln_location_id
317: , p_tax_type => tax_type_rec.t_type
318: , p_account_name => jai_constants.liability_interim
319: );
320: ELSE
321: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
322: ( p_regime_id => ln_regime_id
323: , p_organization_type => jai_constants.service_tax_orgn_type
324: , p_organization_id => ln_organization_id
325: , p_location_id => ln_location_id
383:
384: IF (ld_gl_date >= ld_st_accrual_date OR ld_gl_date IS NULL)
385: THEN
386: IF lv_ar_trx_type <> jai_constants.ar_invoice_type_cm THEN--Added by Wenqiong for Bug 14253668
387: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
388: ( p_regime_id => ln_regime_id
389: , p_organization_type => jai_constants.service_tax_orgn_type
390: , p_organization_id => ln_organization_id
391: , p_location_id => ln_location_id
393: , p_account_name => jai_constants.liability
394: );
395: --Added by Wenqiong for Bug 14253668 begin
396: ELSE
397: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
398: ( p_regime_id => ln_regime_id
399: , p_organization_type => jai_constants.service_tax_orgn_type
400: , p_organization_id => ln_organization_id
401: , p_location_id => ln_location_id
405: END IF;
406: --Added by Wenqiong for Bug 14253668 end
407: ELSE
408: IF lv_ar_trx_type <> jai_constants.ar_invoice_type_cm THEN--Added by Wenqiong for Bug 14253668
409: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
410: ( p_regime_id => ln_regime_id
411: , p_organization_type => jai_constants.service_tax_orgn_type
412: , p_organization_id => ln_organization_id
413: , p_location_id => ln_location_id
415: , p_account_name => jai_constants.liability_interim
416: );
417: --Added by Wenqiong for Bug 14253668 begin
418: ELSE
419: ln_ccid := jai_cmn_rgm_recording_pkg.get_account
420: ( p_regime_id => ln_regime_id
421: , p_organization_type => jai_constants.service_tax_orgn_type
422: , p_organization_id => ln_organization_id
423: , p_location_id => ln_location_id