56: l_process_discounts := nvl(process_discounts,'N');
57: G_PROCESS_INVOICES := l_process_invoices; /* 3917045 */
58:
59: G_err_stage := 'CHANGING VARCHAR2 TO DATE';
60: gl_date := fnd_date.canonical_to_date(gl_date_arg);
61: transaction_date := fnd_date.canonical_to_date(transaction_date_arg);
62:
63: G_err_stage := 'ASSIGNING LOCK NAME';
64: G_LOCK_NAME := 'PAAPIMP';
57: G_PROCESS_INVOICES := l_process_invoices; /* 3917045 */
58:
59: G_err_stage := 'CHANGING VARCHAR2 TO DATE';
60: gl_date := fnd_date.canonical_to_date(gl_date_arg);
61: transaction_date := fnd_date.canonical_to_date(transaction_date_arg);
62:
63: G_err_stage := 'ASSIGNING LOCK NAME';
64: G_LOCK_NAME := 'PAAPIMP';
65:
291: /*============================================================*/
292: -- Process discounts as cost in Cash Basis flow automatically. Bug#5137211.
293: IF (l_process_discounts = 'Y' OR G_ACCTNG_METHOD = 'C' ) THEN
294:
295: --Modified the to_date to fnd_date.canonical_to_date - Bug 4522045
296: G_Profile_Discount_Start_date:=fnd_date.canonical_to_date(return_profile_discount_date);
297:
298: -- Get the discount Method.
299: G_Discount_Method:=PAAPIMP_PKG.return_discount_method;
292: -- Process discounts as cost in Cash Basis flow automatically. Bug#5137211.
293: IF (l_process_discounts = 'Y' OR G_ACCTNG_METHOD = 'C' ) THEN
294:
295: --Modified the to_date to fnd_date.canonical_to_date - Bug 4522045
296: G_Profile_Discount_Start_date:=fnd_date.canonical_to_date(return_profile_discount_date);
297:
298: -- Get the discount Method.
299: G_Discount_Method:=PAAPIMP_PKG.return_discount_method;
300: