DBA Data[Home] [Help]

APPS.PA_BILLING dependencies on PA_BILLING_AMOUNT

Line 601: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev :');

597: raise ccrev_error;
598: END IF;
599:
600: IF g1_debug_mode = 'Y' THEN
601: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev :');
602: END IF;
603: pa_billing_amount.PotEventAmount(
604: X2_project_id => X_project_id,
605: X2_task_id => X_top_task_id,

Line 603: pa_billing_amount.PotEventAmount(

599:
600: IF g1_debug_mode = 'Y' THEN
601: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev :');
602: END IF;
603: pa_billing_amount.PotEventAmount(
604: X2_project_id => X_project_id,
605: X2_task_id => X_top_task_id,
606: X2_accrue_through_date => X_rev_or_bill_date,
607: X2_revenue_amount => event_revenue,

Line 611: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));

607: X2_revenue_amount => event_revenue,
608: X2_invoice_amount => event_invoice);
609:
610: IF g1_debug_mode = 'Y' THEN
611: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));
612: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));
613: END IF;
614: pa_billing_amount.CostAmount(
615: X2_project_id => X_project_id,

Line 612: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));

608: X2_invoice_amount => event_invoice);
609:
610: IF g1_debug_mode = 'Y' THEN
611: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));
612: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));
613: END IF;
614: pa_billing_amount.CostAmount(
615: X2_project_id => X_project_id,
616: X2_task_id => X_top_task_id,

Line 614: pa_billing_amount.CostAmount(

610: IF g1_debug_mode = 'Y' THEN
611: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));
612: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));
613: END IF;
614: pa_billing_amount.CostAmount(
615: X2_project_id => X_project_id,
616: X2_task_id => X_top_task_id,
617: X2_accrue_through_date => X_rev_or_bill_date,
618: X2_cost_amount => cost_amount);

Line 620: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.CostAmount inside pa_billing.ccrev cost_amount :'||to_char(cost_amount));

616: X2_task_id => X_top_task_id,
617: X2_accrue_through_date => X_rev_or_bill_date,
618: X2_cost_amount => cost_amount);
619: IF g1_debug_mode = 'Y' THEN
620: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.CostAmount inside pa_billing.ccrev cost_amount :'||to_char(cost_amount));
621: END IF;
622:
623: Amount_Left := pa_billing_amount.LowestAmountLeft(
624: X_project_id,

Line 623: Amount_Left := pa_billing_amount.LowestAmountLeft(

619: IF g1_debug_mode = 'Y' THEN
620: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.CostAmount inside pa_billing.ccrev cost_amount :'||to_char(cost_amount));
621: END IF;
622:
623: Amount_Left := pa_billing_amount.LowestAmountLeft(
624: X_project_id,
625: X_top_task_id,
626: X_calling_process);
627:

Line 629: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.LowestAmountLeft inside pa_billing.ccrev Amount_Left :'||to_char(Amount_Left));

625: X_top_task_id,
626: X_calling_process);
627:
628: IF g1_debug_mode = 'Y' THEN
629: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.LowestAmountLeft inside pa_billing.ccrev Amount_Left :'||to_char(Amount_Left));
630: END IF;
631: -- DBMS_OUTPUT.PUT('Revenue =');
632: -- DBMS_OUTPUT.PUT_LINE(Revenue);
633: -- DBMS_OUTPUT.PUT('Amount_Left=');

Line 648: pa_billing_amount.RevenueAmount(

644: -- DBMS_OUTPUT.PUT_LINE(event_revenue);
645:
646:
647: IF (X_calling_process = 'Revenue') THEN
648: pa_billing_amount.RevenueAmount(
649: X2_project_id => x_project_id,
650: X2_task_id => X_top_task_id,
651: X2_revenue_amount => revenue_amount);
652:

Line 654: PA_MCB_INVOICE_PKG.log_message('After call of pa_billing_amount.RevenueAmount inside pa_billing.ccrev revenue_amount 1 :'||to_char(revenue_amount));

650: X2_task_id => X_top_task_id,
651: X2_revenue_amount => revenue_amount);
652:
653: IF g1_debug_mode = 'Y' THEN
654: PA_MCB_INVOICE_PKG.log_message('After call of pa_billing_amount.RevenueAmount inside pa_billing.ccrev revenue_amount 1 :'||to_char(revenue_amount));
655: END IF;
656: IF (budget_cost <> 0) THEN
657: -- Take the lower of what you should insert based on cost-cost algorithm,
658: -- of revenue = (cost/budget_cost) * (budget_revenue - event_revenue)

Line 731: pa_billing_amount.InvoiceAmount(

727:
728: END IF;
729:
730: ELSE
731: pa_billing_amount.InvoiceAmount(
732: X2_project_id => X_project_id,
733: X2_task_id => X_top_task_id,
734: X2_invoice_amount => invoice_amount);
735:

Line 737: PA_MCB_INVOICE_PKG.log_message('After the call of pa_billing_amount.InvoiceAmount inside pa_billing.ccrev :'||to_char(invoice_amount));

733: X2_task_id => X_top_task_id,
734: X2_invoice_amount => invoice_amount);
735:
736: IF g1_debug_mode = 'Y' THEN
737: PA_MCB_INVOICE_PKG.log_message('After the call of pa_billing_amount.InvoiceAmount inside pa_billing.ccrev :'||to_char(invoice_amount));
738: END IF;
739: IF (budget_cost <> 0) THEN
740: Invoice := Least( ( (nvl(cost_amount,0)/budget_cost)
741: * greatest( (nvl(budget_revenue,0)