DBA Data[Home] [Help]

APPS.FA_INVOICE_PVT dependencies on FA_SRVR_MSG

Line 134: fa_srvr_msg.add_message(

130: px_inv_tbl.count);
131: end if;
132:
133: if (px_inv_tbl.count = 0) then
134: fa_srvr_msg.add_message(
135: calling_fn => l_calling_fn,
136: name => '***NO_INVOICES***');
137: raise error_found;
138: end if;

Line 301: fa_srvr_msg.add_message(

297: -- when set to Y, the cip_cost decreases!
298:
299: if (px_inv_trans_rec.transaction_type = 'INVOICE DELETE') then
300: if (l_inv_rec.deleted_flag = 'YES') then
301: fa_srvr_msg.add_message(
302: calling_fn => l_calling_fn,
303: name => '***FA_INV_ALREADY_DEL***');
304: raise error_found;
305: end if;

Line 319: fa_srvr_msg.add_message(

315: end if;
316: end if;
317: elsif (px_inv_trans_rec.transaction_type = 'INVOICE REINSTATE') then
318: if (nvl(l_inv_rec.deleted_flag, 'NO') = 'NO') then
319: fa_srvr_msg.add_message(
320: calling_fn => l_calling_fn,
321: name => '***FA_INV_ALREADY_REINS***');
322: raise error_found;
323: end if;

Line 337: fa_srvr_msg.add_message(

333: end if;
334: end if;
335: elsif (px_inv_trans_rec.transaction_type = 'INVOICE DEP') then
336: if (l_inv_rec.depreciate_in_group_flag = 'Y') then
337: fa_srvr_msg.add_message(
338: calling_fn => l_calling_fn,
339: name => '***FA_INV_ALREADY_DEP***');
340: raise error_found;
341: end if;

Line 353: fa_srvr_msg.add_message(

349: raise error_found;
350: end if;
351: elsif (px_inv_trans_rec.transaction_type = 'INVOICE NO DEP') then
352: if (nvl(l_inv_rec.depreciate_in_group_flag, 'N') = 'N') then
353: fa_srvr_msg.add_message(
354: calling_fn => l_calling_fn,
355: name => '***FA_INV_ALREADY_NO_DEP***');
356: raise error_found;
357: end if;

Line 378: fa_srvr_msg.add_message(

374:
375: -- can't transfer nothing on non-zero line
376: if (l_inv_rec.Fixed_Assets_Cost = 0) then
377: if (l_current_fa_cost <> 0) then
378: fa_srvr_msg.add_message(
379: calling_fn => l_calling_fn,
380: name => 'FA_TFRINV_NONE_TFR_COST');
381: raise error_found;
382: end if;

Line 386: fa_srvr_msg.add_message(

382: end if;
383: -- must transfer zero on a zero line
384: elsif (l_current_fa_cost = 0) then
385: if (l_inv_rec.Fixed_Assets_Cost <> 0) then
386: fa_srvr_msg.add_message(
387: calling_fn => l_calling_fn,
388: name => 'FA_TFRINV_ZERO_TFR_COST');
389: raise error_found;
390: end if;

Line 393: fa_srvr_msg.add_message(

389: raise error_found;
390: end if;
391: -- may not increase the value (due to same sign)
392: elsif (sign(l_inv_rec.Fixed_Assets_Cost) = sign(l_current_fa_cost)) then
393: fa_srvr_msg.add_message(
394: calling_fn => l_calling_fn,
395: name => 'FA_TFRINV_NOT_BTWN_TFR_COST');
396: raise error_found;
397: -- may not transfer more than current value

Line 402: fa_srvr_msg.add_message(

398: elsif ((sign(l_current_fa_cost) > 0 and
399: -l_inv_rec.Fixed_Assets_Cost > l_current_fa_cost) or
400: (sign(l_current_fa_cost) < 0 and
401: -l_inv_rec.Fixed_Assets_Cost < l_current_fa_cost)) then
402: fa_srvr_msg.add_message(
403: calling_fn => l_calling_fn,
404: name => 'FA_TFRINV_NOT_BTWN_TFR_COST');
405: raise error_found;
406: end if;

Line 810: fa_srvr_msg.add_message(

806: end if;
807:
808: if (px_inv_tbl(l_row_count + 1).inv_rate_tbl.count > 0 and
809: px_inv_tbl(l_row_count + 1).inv_rate_tbl.count <> l_sob_tbl.count) then
810: fa_srvr_msg.add_message(
811: calling_fn => l_calling_fn,
812: name => '***NOT_ENOUGH_INVRATES***');
813: raise error_found; -- not enough rates for each invoice
814: end if; -- end init mrc

Line 887: fa_srvr_msg.add_message(

883: -- thus if rate isn't populated, we'll find it for AP/PA/other lines
884:
885: if (l_mrc_rate_found_count > 1) then
886:
887: fa_srvr_msg.add_message(
888: calling_fn => l_calling_fn,
889: name => '***WRONG_NUM_INVRATES2***');
890: raise error_found;
891:

Line 1151: fa_srvr_msg.add_message(

1147:
1148: end loop;
1149:
1150: if (l_mrc_fin_book_rec = 0) then
1151: fa_srvr_msg.add_message(
1152: calling_fn => l_calling_fn,
1153: name => '***FAILED LOOKUP FININFO***');
1154: raise error_found;
1155: end if;

Line 1298: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.inv_engine');

1294: return true;
1295:
1296: EXCEPTION
1297: when error_found then
1298: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.inv_engine');
1299:
1300: -- reset GL sob id to original value
1301: fnd_profile.put('GL_SET_OF_BKS_ID', G_profile_set_of_books_id);
1302: fnd_client_info.set_currency_context (G_orig_currency_context);

Line 1307: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_engine');

1303:
1304: return false;
1305:
1306: when others then
1307: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_engine');
1308:
1309: -- reset GL sob id to original value
1310: fnd_profile.put('GL_SET_OF_BKS_ID', G_profile_set_of_books_id);
1311: fnd_client_info.set_currency_context (G_orig_currency_context);

Line 1467: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_calc_info');

1463: return true;
1464:
1465: EXCEPTION
1466: when error_found then
1467: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_calc_info');
1468: return false;
1469:
1470: when others then
1471: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_calc_info');

Line 1471: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_calc_info');

1467: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_calc_info');
1468: return false;
1469:
1470: when others then
1471: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.inv_calc_info');
1472: return false;
1473:
1474: END inv_calc_info;
1475:

Line 1587: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.process_invoice');

1583: return true;
1584:
1585: EXCEPTION
1586: when error_found then
1587: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.process_invoice');
1588: return false;
1589:
1590: when others then
1591: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.process_invoice');

Line 1591: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.process_invoice');

1587: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.process_invoice');
1588: return false;
1589:
1590: when others then
1591: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.process_invoice');
1592: return false;
1593:
1594: END process_invoice;
1595:

Line 1663: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.get_inv_rate');

1659: return true;
1660:
1661: EXCEPTION
1662: when error_found then
1663: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.get_inv_rate');
1664: return false;
1665:
1666: when others then
1667: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.get_inv_rate');

Line 1667: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.get_inv_rate');

1663: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.get_inv_rate');
1664: return false;
1665:
1666: when others then
1667: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.get_inv_rate');
1668: return false;
1669:
1670: END get_inv_rate;
1671:

Line 1857: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.post_clearing');

1853: EXCEPTION
1854: when error_found then
1855: fnd_profile.put('GL_SET_OF_BKS_ID', G_profile_set_of_books_id);
1856: fnd_client_info.set_currency_context (G_orig_currency_context);
1857: fa_srvr_msg.add_message(calling_fn => 'fa_invoice_pvt.post_clearing');
1858: return false;
1859:
1860: when others then
1861: fnd_profile.put('GL_SET_OF_BKS_ID', G_profile_set_of_books_id);

Line 1863: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.post_clearing');

1859:
1860: when others then
1861: fnd_profile.put('GL_SET_OF_BKS_ID', G_profile_set_of_books_id);
1862: fnd_client_info.set_currency_context (G_orig_currency_context);
1863: fa_srvr_msg.add_sql_error(calling_fn => 'fa_invoice_pvt.post_clearing');
1864: return false;
1865:
1866: END;
1867: