DBA Data[Home] [Help]

APPS.PA_BILLING dependencies on PA_BILLING_AMOUNT

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

536: raise ccrev_error;
537: END IF;
538:
539: IF g1_debug_mode = 'Y' THEN
540: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev :');
541: END IF;
542: pa_billing_amount.PotEventAmount(
543: X2_project_id => X_project_id,
544: X2_task_id => X_top_task_id,

Line 542: pa_billing_amount.PotEventAmount(

538:
539: IF g1_debug_mode = 'Y' THEN
540: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev :');
541: END IF;
542: pa_billing_amount.PotEventAmount(
543: X2_project_id => X_project_id,
544: X2_task_id => X_top_task_id,
545: X2_accrue_through_date => X_rev_or_bill_date,
546: X2_revenue_amount => event_revenue,

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

546: X2_revenue_amount => event_revenue,
547: X2_invoice_amount => event_invoice);
548:
549: IF g1_debug_mode = 'Y' THEN
550: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));
551: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));
552: END IF;
553: pa_billing_amount.CostAmount(
554: X2_project_id => X_project_id,

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

547: X2_invoice_amount => event_invoice);
548:
549: IF g1_debug_mode = 'Y' THEN
550: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));
551: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));
552: END IF;
553: pa_billing_amount.CostAmount(
554: X2_project_id => X_project_id,
555: X2_task_id => X_top_task_id,

Line 553: pa_billing_amount.CostAmount(

549: IF g1_debug_mode = 'Y' THEN
550: PA_MCB_INVOICE_PKG.log_message('After calling pa_billing_amount.PotEventAmount inside pa_billing.ccrev event_revenue :'||to_char(event_revenue));
551: PA_MCB_INVOICE_PKG.log_message('Before calling pa_billing_amount.CostAmount inside pa_billing.ccrev event_invoice :'||to_char(event_invoice));
552: END IF;
553: pa_billing_amount.CostAmount(
554: X2_project_id => X_project_id,
555: X2_task_id => X_top_task_id,
556: X2_accrue_through_date => X_rev_or_bill_date,
557: X2_cost_amount => cost_amount);

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

555: X2_task_id => X_top_task_id,
556: X2_accrue_through_date => X_rev_or_bill_date,
557: X2_cost_amount => cost_amount);
558: IF g1_debug_mode = 'Y' THEN
559: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.CostAmount inside pa_billing.ccrev cost_amount :'||to_char(cost_amount));
560: END IF;
561:
562: Amount_Left := pa_billing_amount.LowestAmountLeft(
563: X_project_id,

Line 562: Amount_Left := pa_billing_amount.LowestAmountLeft(

558: IF g1_debug_mode = 'Y' THEN
559: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.CostAmount inside pa_billing.ccrev cost_amount :'||to_char(cost_amount));
560: END IF;
561:
562: Amount_Left := pa_billing_amount.LowestAmountLeft(
563: X_project_id,
564: X_top_task_id,
565: X_calling_process);
566:

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

564: X_top_task_id,
565: X_calling_process);
566:
567: IF g1_debug_mode = 'Y' THEN
568: PA_MCB_INVOICE_PKG.log_message('After pa_billing_amount.LowestAmountLeft inside pa_billing.ccrev Amount_Left :'||to_char(Amount_Left));
569: END IF;
570: -- DBMS_OUTPUT.PUT('Revenue =');
571: -- DBMS_OUTPUT.PUT_LINE(Revenue);
572: -- DBMS_OUTPUT.PUT('Amount_Left=');

Line 587: pa_billing_amount.RevenueAmount(

583: -- DBMS_OUTPUT.PUT_LINE(event_revenue);
584:
585:
586: IF (X_calling_process = 'Revenue') THEN
587: pa_billing_amount.RevenueAmount(
588: X2_project_id => x_project_id,
589: X2_task_id => X_top_task_id,
590: X2_revenue_amount => revenue_amount);
591:

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

589: X2_task_id => X_top_task_id,
590: X2_revenue_amount => revenue_amount);
591:
592: IF g1_debug_mode = 'Y' THEN
593: PA_MCB_INVOICE_PKG.log_message('After call of pa_billing_amount.RevenueAmount inside pa_billing.ccrev revenue_amount 1 :'||to_char(revenue_amount));
594: END IF;
595: IF (budget_cost <> 0) THEN
596: -- Take the lower of what you should insert based on cost-cost algorithm,
597: -- of revenue = (cost/budget_cost) * (budget_revenue - event_revenue)

Line 670: pa_billing_amount.InvoiceAmount(

666:
667: END IF;
668:
669: ELSE
670: pa_billing_amount.InvoiceAmount(
671: X2_project_id => X_project_id,
672: X2_task_id => X_top_task_id,
673: X2_invoice_amount => invoice_amount);
674:

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

672: X2_task_id => X_top_task_id,
673: X2_invoice_amount => invoice_amount);
674:
675: IF g1_debug_mode = 'Y' THEN
676: PA_MCB_INVOICE_PKG.log_message('After the call of pa_billing_amount.InvoiceAmount inside pa_billing.ccrev :'||to_char(invoice_amount));
677: END IF;
678: IF (budget_cost <> 0) THEN
679: Invoice := Least( ( (nvl(cost_amount,0)/budget_cost)
680: * greatest( (nvl(budget_revenue,0)