Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update copyright for .sql ext

  • Loading branch information...
commit b37c5c85100e607460a9984ed44d15af299f636e 1 parent ed583d6
@gpazo gpazo authored
Showing with 419 additions and 419 deletions.
  1. +1 −1  dbscripts/api/functions/getcustnumberfrominfo.sql
  2. +1 −1  dbscripts/api/functions/insertsalesline.sql
  3. +1 −1  dbscripts/api/views/apmemo.sql
  4. +1 −1  dbscripts/api/views/armemo.sql
  5. +1 −1  dbscripts/api/views/creditmemo.sql
  6. +2 −2 dbscripts/api/views/creditmemoline.sql
  7. +1 −1  dbscripts/api/views/invoice.sql
  8. +2 −2 dbscripts/api/views/invoiceline.sql
  9. +1 −1  dbscripts/api/views/physinvcount.sql
  10. +1 −1  dbscripts/functions/acknowledgemessage.sql
  11. +3 −3 dbscripts/functions/actcost.sql
  12. +1 −1  dbscripts/functions/addrusecount.sql
  13. +1 −1  dbscripts/functions/addtaxtoglseries.sql
  14. +4 −4 dbscripts/functions/addtopackinglistbatch.sql
  15. +1 −1  dbscripts/functions/adjustinvvalue.sql
  16. +1 −1  dbscripts/functions/adjustments.sql
  17. +3 −3 dbscripts/functions/allocatedforso.sql
  18. +3 −3 dbscripts/functions/allocatedforwo.sql
  19. +1 −1  dbscripts/functions/alterencrypt.sql
  20. +1 −1  dbscripts/functions/apaging.sql
  21. +1 −1  dbscripts/functions/apapplied.sql
  22. +1 −1  dbscripts/functions/apcheckpending.sql
  23. +1 −1  dbscripts/functions/apcurrgain.sql
  24. +1 −1  dbscripts/functions/applyapcreditmemotobalance.sql
  25. +1 −1  dbscripts/functions/applyapcredits.sql
  26. +2 −2 dbscripts/functions/applyarcreditmemotobalance.sql
  27. +1 −1  dbscripts/functions/applycashreceiptlinebalance.sql
  28. +3 −3 dbscripts/functions/applycashreceipttobalance.sql
  29. +2 −2 dbscripts/functions/araging.sql
  30. +1 −1  dbscripts/functions/arapplied.sql
  31. +1 −1  dbscripts/functions/archivesaleshistory.sql
  32. +1 −1  dbscripts/functions/arcurrgain.sql
  33. +1 −1  dbscripts/functions/asofinvbal.sql
  34. +1 −1  dbscripts/functions/asofinvnn.sql
  35. +1 −1  dbscripts/functions/asofinvqty.sql
  36. +1 −1  dbscripts/functions/attachcontact.sql
  37. +1 −1  dbscripts/functions/attachquotetoopportunity.sql
  38. +1 −1  dbscripts/functions/attachsalesordertoopportunity.sql
  39. +1 −1  dbscripts/functions/averagesalesprice.sql
  40. +1 −1  dbscripts/functions/avgcost.sql
  41. +1 −1  dbscripts/functions/balanceitemsite.sql
  42. +1 −1  dbscripts/functions/basecurrid.sql
  43. +1 −1  dbscripts/functions/bomcontains.sql
  44. +1 −1  dbscripts/functions/bomhistsequence.sql
  45. +2 −2 dbscripts/functions/bomitem.sql
  46. +2 −2 dbscripts/functions/bomlevelbyitem.sql
  47. +1 −1  dbscripts/functions/bomworkeffective.sql
  48. +1 −1  dbscripts/functions/bomworkexpired.sql
  49. +1 −1  dbscripts/functions/bomworkitemsequence.sql
  50. +1 −1  dbscripts/functions/bomworksequence.sql
  51. +1 −1  dbscripts/functions/buildinvbal.sql
  52. +4 −4 dbscripts/functions/calcbillingamts.sql
  53. +1 −1  dbscripts/functions/calccashbudget.sql
  54. +2 −2 dbscripts/functions/calccreditmemoamts.sql
  55. +1 −1  dbscripts/functions/calcpendingarapplications.sql
  56. +2 −2 dbscripts/functions/calcpurchaseorderamt.sql
  57. +1 −1  dbscripts/functions/calcpurchaseorderduedate.sql
  58. +2 −2 dbscripts/functions/calcquoteamt.sql
  59. +2 −2 dbscripts/functions/calcsalesorderamt.sql
  60. +1 −1  dbscripts/functions/calcshipfreight.sql
  61. +1 −1  dbscripts/functions/calctotalslipqty.sql
  62. +1 −1  dbscripts/functions/calculatefreightdetail.sql
  63. +1 −1  dbscripts/functions/calculatesubtax.sql
  64. +1 −1  dbscripts/functions/calculatetax.sql
  65. +1 −1  dbscripts/functions/calculatetaxdetail.sql
  66. +1 −1  dbscripts/functions/calculatetaxdetailline.sql
  67. +1 −1  dbscripts/functions/calculatetaxdetailsummary.sql
  68. +1 −1  dbscripts/functions/calculatetaxhist.sql
  69. +3 −3 dbscripts/functions/calcvoucheramts.sql
  70. +1 −1  dbscripts/functions/calcwooperstartstub.sql
  71. +1 −1  dbscripts/functions/cancelbillingselection.sql
  72. +1 −1  dbscripts/functions/changeaccountingperioddates.sql
  73. +1 −1  dbscripts/functions/changeaccountingyearperioddates.sql
  74. +1 −1  dbscripts/functions/changefkeypointers.sql
  75. +2 −2 dbscripts/functions/changepoitemduedate.sql
  76. +2 −2 dbscripts/functions/changepoitemqty.sql
  77. +1 −1  dbscripts/functions/changeprdate.sql
  78. +1 −1  dbscripts/functions/changeprqty.sql
  79. +1 −1  dbscripts/functions/changepseudofkeypointers.sql
  80. +1 −1  dbscripts/functions/changepurchasedropship.sql
  81. +1 −1  dbscripts/functions/changewodates.sql
  82. +1 −1  dbscripts/functions/changewoproject.sql
  83. +1 −1  dbscripts/functions/changewoqty.sql
  84. +1 −1  dbscripts/functions/characteristicstostring.sql
  85. +1 −1  dbscripts/functions/checkcreditmemositeprivs.sql
  86. +1 −1  dbscripts/functions/checkdetailformatted.sql
  87. +1 −1  dbscripts/functions/checkinvoicesiteprivs.sql
  88. +1 −1  dbscripts/functions/checkpositeprivs.sql
  89. +1 −1  dbscripts/functions/checkprivilege.sql
  90. +2 −2 dbscripts/functions/checkquotesiteprivs.sql
  91. +1 −1  dbscripts/functions/checkrasiteprivs.sql
  92. +1 −1  dbscripts/functions/checkshipmentsiteprivs.sql
  93. +1 −1  dbscripts/functions/checksositeprivs.sql
  94. +1 −1  dbscripts/functions/checkvouchersiteprivs.sql
  95. +2 −2 dbscripts/functions/clearnumberissue.sql
  96. +1 −1  dbscripts/functions/clearpayment.sql
  97. +1 −1  dbscripts/functions/closeaccountingperiod.sql
  98. +1 −1  dbscripts/functions/closeaccountingyearperiod.sql
  99. +1 −1  dbscripts/functions/closepo.sql
  100. +2 −2 dbscripts/functions/closewo.sql
  101. +1 −1  dbscripts/functions/cntct.sql
  102. +1 −1  dbscripts/functions/cntctdups.sql
  103. +1 −1  dbscripts/functions/cntctmerge.sql
  104. +1 −1  dbscripts/functions/cntctrestore.sql
  105. +1 −1  dbscripts/functions/cntctselect.sql
  106. +1 −1  dbscripts/functions/cntctselectcol.sql
  107. +1 −1  dbscripts/functions/cntctused.sql
  108. +1 −1  dbscripts/functions/coheadstatecolor.sql
  109. +1 −1  dbscripts/functions/compareversion.sql
  110. +1 −1  dbscripts/functions/concatagg.sql
  111. +1 −1  dbscripts/functions/consolidatelocations.sql
  112. +1 −1  dbscripts/functions/convertcustomertoprospect.sql
  113. +2 −2 dbscripts/functions/convertprospecttocustomer.sql
  114. +1 −1  dbscripts/functions/convertquote.sql
  115. +1 −1  dbscripts/functions/convertquotetoinvoice.sql
  116. +2 −2 dbscripts/functions/copybom.sql
  117. +1 −1  dbscripts/functions/copybudget.sql
  118. +1 −1  dbscripts/functions/copycmd.sql
  119. +1 −1  dbscripts/functions/copycontract.sql
  120. +1 −1  dbscripts/functions/copyfinancialgroup.sql
  121. +1 −1  dbscripts/functions/copyglseries.sql
  122. +1 −1  dbscripts/functions/copyincdt.sql
  123. +1 −1  dbscripts/functions/copyinvoice.sql
  124. +4 −4 dbscripts/functions/copyitem.sql
  125. +2 −2 dbscripts/functions/copyitemsite.sql
  126. +1 −1  dbscripts/functions/copylocale.sql
  127. +1 −1  dbscripts/functions/copypo.sql
  128. +1 −1  dbscripts/functions/copypricingschedule.sql
  129. +1 −1  dbscripts/functions/copyprj.sql
  130. +1 −1  dbscripts/functions/copyproject.sql
  131. +1 −1  dbscripts/functions/copyquote.sql
  132. +1 −1  dbscripts/functions/copyso.sql
  133. +1 −1  dbscripts/functions/copytodoitem.sql
  134. +1 −1  dbscripts/functions/copyvoucher.sql
  135. +2 −2 dbscripts/functions/correctporeceipt.sql
  136. +4 −4 dbscripts/functions/correctproduction.sql
  137. +1 −1  dbscripts/functions/correctreceipt.sql
  138. +1 −1  dbscripts/functions/cosbycustomervalue.sql
  139. +1 −1  dbscripts/functions/costsbycustomerbyitemsite.sql
  140. +3 −3 dbscripts/functions/costsbycustomervalue.sql
  141. +2 −2 dbscripts/functions/createaccountingperiod.sql
  142. +1 −1  dbscripts/functions/createaccountingyearperiod.sql
  143. +1 −1  dbscripts/functions/createapchecks.sql
  144. +8 −8 dbscripts/functions/createapcreditmemo.sql
  145. +1 −1  dbscripts/functions/createapcreditmemoapplication.sql
  146. +8 −8 dbscripts/functions/createapdebitmemo.sql
  147. +2 −2 dbscripts/functions/createapdiscount.sql
  148. +1 −1  dbscripts/functions/createarcashdeposit.sql
  149. +1 −1  dbscripts/functions/createarcreditmemo.sql
  150. +1 −1  dbscripts/functions/createardebitmemo.sql
  151. +1 −1  dbscripts/functions/createbillingheader.sql
  152. +3 −3 dbscripts/functions/createbomitem.sql
  153. +2 −2 dbscripts/functions/createcheck.sql
  154. +1 −1  dbscripts/functions/createchecks.sql
  155. +2 −2 dbscripts/functions/createcounttag.sql
  156. +4 −4 dbscripts/functions/createcyclecountsbywarehouse.sql
  157. +2 −2 dbscripts/functions/createcyclecountsbywarehousebyclasscode.sql
  158. +2 −2 dbscripts/functions/createcyclecountsbywarehousebyplannercode.sql
  159. +1 −1  dbscripts/functions/createinvoice.sql
  160. +1 −1  dbscripts/functions/createinvoiceconsolidated.sql
  161. +3 −3 dbscripts/functions/createinvoices.sql
  162. +2 −2 dbscripts/functions/createmiscapcheck.sql
  163. +1 −1  dbscripts/functions/createpkgschema.sql
  164. +5 −5 dbscripts/functions/createpr.sql
  165. +1 −1  dbscripts/functions/createpriv.sql
  166. +3 −3 dbscripts/functions/createpurchasetosale.sql
  167. +1 −1  dbscripts/functions/createrecurringinvoices.sql
  168. +1 −1  dbscripts/functions/createrecurringitems.sql
  169. +2 −2 dbscripts/functions/createtodoitem.sql
  170. +1 −1  dbscripts/functions/createuser.sql
  171. +9 −9 dbscripts/functions/createwo.sql
  172. +5 −5 dbscripts/functions/createwomaterial.sql
  173. +1 −1  dbscripts/functions/creditmemototal.sql
  174. +1 −1  dbscripts/functions/crmacct.sql
  175. +2 −2 dbscripts/functions/currconcat.sql
  176. +1 −1  dbscripts/functions/currentapmemonumber.sql
  177. +1 −1  dbscripts/functions/currentarmemonumber.sql
  178. +1 −1  dbscripts/functions/currentcashrcptnumber.sql
  179. +1 −1  dbscripts/functions/currentnumber.sql
  180. +1 −1  dbscripts/functions/currgain.sql
  181. +2 −2 dbscripts/functions/currrate.sql
  182. +1 −1  dbscripts/functions/currtobase.sql
  183. +1 −1  dbscripts/functions/currtocurr.sql
  184. +1 −1  dbscripts/functions/currtolocal.sql
  185. +1 −1  dbscripts/functions/custitem.sql
  186. +3 −3 dbscripts/functions/customercanpurchase.sql
  187. +1 −1  dbscripts/functions/defaultlocationname.sql
  188. +1 −1  dbscripts/functions/deleteaccount.sql
  189. +1 −1  dbscripts/functions/deleteaccountingperiod.sql
  190. +1 −1  dbscripts/functions/deleteaccountingyearperiod.sql
  191. +1 −1  dbscripts/functions/deleteaddress.sql
  192. +1 −1  dbscripts/functions/deleteapcheck.sql
  193. +1 −1  dbscripts/functions/deletebankadjustmenttype.sql
  194. +1 −1  dbscripts/functions/deletebankreconciliation.sql
  195. +1 −1  dbscripts/functions/deletebom.sql
  196. +1 −1  dbscripts/functions/deletebomworkset.sql
  197. +1 −1  dbscripts/functions/deletebudget.sql
  198. +1 −1  dbscripts/functions/deletebudgetitems.sql
  199. +1 −1  dbscripts/functions/deletecashrcpt.sql
  200. +1 −1  dbscripts/functions/deletecharacteristic.sql
  201. +1 −1  dbscripts/functions/deletecheck.sql
  202. +1 −1  dbscripts/functions/deleteclasscode.sql
  203. +1 −1  dbscripts/functions/deletecompany.sql
  204. +1 −1  dbscripts/functions/deletecreditmemo.sql
  205. +1 −1  dbscripts/functions/deletecustomer.sql
  206. +1 −1  dbscripts/functions/deletecustomertype.sql
  207. +1 −1  dbscripts/functions/deleteempgrp.sql
  208. +1 −1  dbscripts/functions/deleteexpiredips.sql
  209. +1 −1  dbscripts/functions/deleteflgroup.sql
  210. +1 −1  dbscripts/functions/deleteform.sql
  211. +1 −1  dbscripts/functions/deletefreightclass.sql
  212. +1 −1  dbscripts/functions/deleteglseries.sql
  213. +1 −1  dbscripts/functions/deleteincident.sql
  214. +1 −1  dbscripts/functions/deleteinvoice.sql
  215. +1 −1  dbscripts/functions/deleteipsitem.sql
  216. +1 −1  dbscripts/functions/deleteipsprodcat.sql
  217. +1 −1  dbscripts/functions/deleteitem.sql
  218. +1 −1  dbscripts/functions/deleteitemcost.sql
  219. +1 −1  dbscripts/functions/deleteitemsite.sql
  220. +1 −1  dbscripts/functions/deleteitemuom.sql
  221. +1 −1  dbscripts/functions/deleteitemuomconv.sql
  222. +1 −1  dbscripts/functions/deletelocation.sql
  223. +1 −1  dbscripts/functions/deletemetasql.sql
  224. +1 −1  dbscripts/functions/deleteopenrecurringitems.sql
  225. +1 −1  dbscripts/functions/deleteopportunity.sql
  226. +1 −1  dbscripts/functions/deletepackage.sql
  227. +1 −1  dbscripts/functions/deletepo.sql
  228. +1 −1  dbscripts/functions/deletepoitem.sql
  229. +2 −2 dbscripts/functions/deletepr.sql
  230. +1 −1  dbscripts/functions/deleteproductcategory.sql
  231. +1 −1  dbscripts/functions/deleteprofitcenter.sql
  232. +1 −1  dbscripts/functions/deleteproject.sql
  233. +1 −1  dbscripts/functions/deleteprojecttask.sql
  234. +1 −1  dbscripts/functions/deleteqryhead.sql
  235. +3 −3 dbscripts/functions/deletequote.sql
  236. +1 −1  dbscripts/functions/deleterecvfororder.sql
  237. +1 −1  dbscripts/functions/deletesalescategory.sql
  238. +1 −1  dbscripts/functions/deleteshippingcharge.sql
  239. +1 −1  dbscripts/functions/deleteshippingchargetype.sql
  240. +1 −1  dbscripts/functions/deleteshipto.sql
  241. +2 −2 dbscripts/functions/deleteso.sql
  242. +1 −1  dbscripts/functions/deletesoitem.sql
  243. +1 −1  dbscripts/functions/deletestandardjournal.sql
  244. +1 −1  dbscripts/functions/deletestandardjournalgroup.sql
  245. +1 −1  dbscripts/functions/deletesubaccount.sql
  246. +1 −1  dbscripts/functions/deletesubaccounttype.sql
  247. +1 −1  dbscripts/functions/deletetax.sql
  248. +1 −1  dbscripts/functions/deletetaxclass.sql
  249. +1 −1  dbscripts/functions/deletetaxtype.sql
  250. +1 −1  dbscripts/functions/deletetaxzone.sql
  251. +1 −1  dbscripts/functions/deletetodoitem.sql
  252. +1 −1  dbscripts/functions/deleteunusedclasscodes.sql
  253. +1 −1  dbscripts/functions/deleteunusedfreightclasses.sql
  254. +1 −1  dbscripts/functions/deleteunusedproductcategories.sql
  255. +1 −1  dbscripts/functions/deleteuom.sql
  256. +1 −1  dbscripts/functions/deleteuomconv.sql
  257. +2 −2 dbscripts/functions/deleteuserpreference.sql
  258. +1 −1  dbscripts/functions/deletevendoraddr.sql
  259. +1 −1  dbscripts/functions/deletevendortype.sql
  260. +2 −2 dbscripts/functions/deletewo.sql
  261. +1 −1  dbscripts/functions/deletewomaterial.sql
  262. +1 −1  dbscripts/functions/detachccpayfromso.sql
  263. +1 −1  dbscripts/functions/detachcontact.sql
  264. +1 −1  dbscripts/functions/detag.sql
  265. +1 −1  dbscripts/functions/detailednnqoh.sql
  266. +1 −1  dbscripts/functions/detailedqoh.sql
  267. +1 −1  dbscripts/functions/determinediscountdate.sql
  268. +1 −1  dbscripts/functions/determineduedate.sql
  269. +2 −2 dbscripts/functions/disablepackage.sql
  270. +1 −1  dbscripts/functions/distributeitemlocseries.sql
  271. +2 −2 dbscripts/functions/distributetodefault.sql
  272. +2 −2 dbscripts/functions/distributetodefaultitemloc.sql
  273. +1 −1  dbscripts/functions/distributetolocations.sql
  274. +1 −1  dbscripts/functions/distributevoucherline.sql
  275. +2 −2 dbscripts/functions/dopostcosts.sql
  276. +4 −4 dbscripts/functions/doupdatecosts.sql
  277. +4 −4 dbscripts/functions/dropifexists.sql
  278. +1 −1  dbscripts/functions/editccnumber.sql
  279. +2 −2 dbscripts/functions/enablepackage.sql
  280. +1 −1  dbscripts/functions/endoftime.sql
  281. +1 −1  dbscripts/functions/entercount.sql
  282. +4 −4 dbscripts/functions/enterporeceipt.sql
  283. +2 −2 dbscripts/functions/enterporeturn.sql
  284. +2 −2 dbscripts/functions/enterreceipt.sql
  285. +1 −1  dbscripts/functions/expirecreditcard.sql
  286. +2 −2 dbscripts/functions/explodebom.sql
  287. +3 −3 dbscripts/functions/explodekit.sql
  288. +1 −1  dbscripts/functions/explodephantomorder.sql
  289. +1 −1  dbscripts/functions/explodewo.sql
  290. +1 −1  dbscripts/functions/explodewoeffective.sql
  291. +1 −1  dbscripts/functions/fetchapmemonumber.sql
  292. +1 −1  dbscripts/functions/fetcharmemonumber.sql
  293. +1 −1  dbscripts/functions/fetchcashrcptnumber.sql
  294. +1 −1  dbscripts/functions/fetchcmnumber.sql
  295. +1 −1  dbscripts/functions/fetchcrmaccountnumber.sql
  296. +1 −1  dbscripts/functions/fetchdefaultfob.sql
  297. +1 −1  dbscripts/functions/fetchdefaultshipvia.sql
  298. +1 −1  dbscripts/functions/fetchglsequence.sql
  299. +1 −1  dbscripts/functions/fetchincidentnumber.sql
  300. +1 −1  dbscripts/functions/fetchinvcnumber.sql
Sorry, we could not display the entire diff because too many files (966) changed.
View
2  dbscripts/api/functions/getcustnumberfrominfo.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION api.getCustNumberFromInfo(TEXT, TEXT, TEXT, TEXT, TEXT, BOOLEAN) RETURNS TEXT AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_email TEXT := COALESCE(UPPER($1), '');
View
2  dbscripts/api/functions/insertsalesline.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION api.insertSalesLine(api.salesline) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNEW ALIAS FOR $1;
View
2  dbscripts/api/views/apmemo.sql
@@ -29,7 +29,7 @@ GRANT ALL ON TABLE api.apmemo TO xtrole;
COMMENT ON VIEW api.apmemo IS 'A/P Credit and Debit Memo';
CREATE OR REPLACE FUNCTION insertapmemo(api.apmemo) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
View
2  dbscripts/api/views/armemo.sql
@@ -36,7 +36,7 @@ COMMENT ON VIEW api.armemo IS 'A/R Credit and Debit Memo';
CREATE OR REPLACE FUNCTION insertARMemo(api.armemo) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
View
2  dbscripts/api/views/creditmemo.sql
@@ -60,7 +60,7 @@ COMMENT ON VIEW api.creditmemo IS 'Credit Memo Header';
CREATE OR REPLACE FUNCTION insertCreditMemo(api.creditmemo) RETURNS boolean AS
$insertCreditMemo$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
View
4 dbscripts/api/views/creditmemoline.sql
@@ -33,7 +33,7 @@ COMMENT ON VIEW api.creditmemoline IS 'Credit Memo Line';
CREATE OR REPLACE FUNCTION insertcreditmemoline(api.creditmemoline) RETURNS boolean AS
$insertcreditmemoline$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
@@ -97,7 +97,7 @@ $insertcreditmemoline$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION updatecreditmemoline(api.creditmemoline, api.creditmemoline) RETURNS boolean AS
$updatecreditmemoline$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
View
2  dbscripts/api/views/invoice.sql
@@ -70,7 +70,7 @@ populated';
CREATE OR REPLACE FUNCTION insertInvoice(api.invoice) RETURNS BOOLEAN AS
$insertInvoice$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
View
4 dbscripts/api/views/invoiceline.sql
@@ -45,7 +45,7 @@ populated';
CREATE OR REPLACE FUNCTION insertInvoiceLineItem(api.invoiceline) RETURNS BOOLEAN AS
$insertInvoiceLineItem$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
@@ -138,7 +138,7 @@ $insertInvoiceLineItem$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION updateInvoiceLineItem(api.invoiceline, api.invoiceline) RETURNS BOOLEAN AS
$updateInvoiceLineItem$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNew ALIAS FOR $1;
View
2  dbscripts/api/views/physinvcount.sql
@@ -17,7 +17,7 @@ GRANT ALL ON TABLE api.physinvcount TO xtrole;
COMMENT ON VIEW api.physinvcount IS 'Physical Inventory Count Tag and Slip';
CREATE OR REPLACE FUNCTION api.insertPhysInvCount(api.physinvcount) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pNEW ALIAS FOR $1;
View
2  dbscripts/functions/acknowledgemessage.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION acknowledgeMessage(INTEGER) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pMsgid ALIAS FOR $1;
View
6 dbscripts/functions/actcost.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION actCost(INTEGER) RETURNS NUMERIC AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
RETURN actCost($1, NULL, baseCurrId());
@@ -7,7 +7,7 @@ END;
' LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION actCost(INTEGER, INTEGER) RETURNS NUMERIC AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
RETURN actCost($1, $2, baseCurrId());
@@ -15,7 +15,7 @@ END;
' LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION actCost(INTEGER, INTEGER, INTEGER) RETURNS NUMERIC AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemid ALIAS FOR $1;
View
2  dbscripts/functions/addrusecount.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION addrUseCount(integer) RETURNS integer STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAddrId ALIAS FOR $1;
View
2  dbscripts/functions/addtaxtoglseries.sql
@@ -3,7 +3,7 @@
-- NULL if there has been an error
CREATE OR REPLACE FUNCTION addTaxToGLSeries(INTEGER, TEXT, TEXT, TEXT, INTEGER, DATE, DATE, TEXT, INTEGER, TEXT) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSequence ALIAS FOR $1;
View
8 dbscripts/functions/addtopackinglistbatch.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION addToPackingListBatch(INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSoheadid ALIAS FOR $1;
@@ -22,7 +22,7 @@ END;
CREATE OR REPLACE FUNCTION addToPackingListBatch(INTEGER, INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
RETURN addToPackingListBatch(''SO'', $1, $2);
@@ -31,7 +31,7 @@ END;
CREATE OR REPLACE FUNCTION addToPackingListBatch(TEXT, INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pheadtype ALIAS FOR $1;
@@ -55,7 +55,7 @@ END;
CREATE OR REPLACE FUNCTION addToPackingListBatch(TEXT, INTEGER, INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pheadtype ALIAS FOR $1;
View
2  dbscripts/functions/adjustinvvalue.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION adjustInvValue(INTEGER, NUMERIC, INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
View
2  dbscripts/functions/adjustments.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION adjustments(TEXT) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTransType ALIAS FOR $1;
View
6 dbscripts/functions/allocatedforso.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION allocatedForSo(INTEGER, INTEGER) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
@@ -14,7 +14,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION allocatedForSo(INTEGER, DATE) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
@@ -29,7 +29,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION allocatedForSo(INTEGER, DATE, DATE) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
View
6 dbscripts/functions/allocatedforwo.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION allocatedForWo(INTEGER, INTEGER) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
@@ -14,7 +14,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION allocatedForWo(INTEGER, DATE) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
@@ -29,7 +29,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION allocatedForWo(INTEGER, DATE, DATE) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
View
2  dbscripts/functions/alterencrypt.sql
@@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION alterencrypt(text, text)
RETURNS integer AS
'
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pOldKey ALIAS FOR $1;
View
2  dbscripts/functions/apaging.sql
@@ -1,7 +1,7 @@
SELECT dropIfExists('FUNCTION', 'apaging(date, boolean)', 'public');
CREATE OR REPLACE FUNCTION apaging(date, boolean) RETURNS SETOF apaging AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAsOfDate ALIAS FOR $1;
View
2  dbscripts/functions/apapplied.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION apapplied(INTEGER, DATE) RETURNS NUMERIC AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pApopenid ALIAS FOR $1;
View
2  dbscripts/functions/apcheckpending.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION apCheckPending(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pApopenid ALIAS FOR $1;
View
2  dbscripts/functions/apcurrgain.sql
@@ -6,7 +6,7 @@
-- negative values = a loss.
CREATE OR REPLACE FUNCTION apcurrGain(INTEGER, INTEGER, NUMERIC, DATE)
RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pApopenId ALIAS FOR $1;
View
2  dbscripts/functions/applyapcreditmemotobalance.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION applyAPCreditMemoToBalance(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pApopenid ALIAS FOR $1;
View
2  dbscripts/functions/applyapcredits.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION applyapcredits(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pVendId ALIAS FOR $1;
View
4 dbscripts/functions/applyarcreditmemotobalance.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION applyARCreditMemoToBalance(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAropenid ALIAS FOR $1;
@@ -13,7 +13,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION applyARCreditMemoToBalance(INTEGER, INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSourceAropenid ALIAS FOR $1;
View
2  dbscripts/functions/applycashreceiptlinebalance.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION applyCashReceiptLineBalance(INTEGER, INTEGER, NUMERIC, INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCashrcptId ALIAS FOR $1;
View
6 dbscripts/functions/applycashreceipttobalance.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION applyCashReceiptToBalance(INTEGER, NUMERIC) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCashrcptid ALIAS FOR $1;
@@ -11,7 +11,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION applyCashReceiptToBalance(INTEGER, NUMERIC, INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCashrcptid ALIAS FOR $1;
@@ -26,7 +26,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION applyCashReceiptToBalance(INTEGER, NUMERIC, INTEGER, BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCashrcptid ALIAS FOR $1;
View
4 dbscripts/functions/araging.sql
@@ -1,6 +1,6 @@
SELECT dropIfExists('FUNCTION', 'araging(date)', 'public');
CREATE OR REPLACE FUNCTION araging(date, boolean) RETURNS SETOF araging AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAsOfDate ALIAS FOR $1;
@@ -20,7 +20,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION araging(date, boolean, boolean) RETURNS SETOF araging AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAsOfDate ALIAS FOR $1;
View
2  dbscripts/functions/arapplied.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION arapplied(INTEGER, DATE) RETURNS NUMERIC AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAropenid ALIAS FOR $1;
View
2  dbscripts/functions/archivesaleshistory.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION archiveSalesHistory(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSohistid ALIAS FOR $1;
View
2  dbscripts/functions/arcurrgain.sql
@@ -6,7 +6,7 @@
-- negative values = a loss.
CREATE OR REPLACE FUNCTION arcurrGain(INTEGER, INTEGER, NUMERIC, DATE)
RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAropenId ALIAS FOR $1;
View
2  dbscripts/functions/asofinvbal.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION asofinvbal(INTEGER, DATE) RETURNS SETOF invbal STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteId ALIAS FOR $1;
View
2  dbscripts/functions/asofinvnn.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION asofinvnn(INTEGER, DATE) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteId ALIAS FOR $1;
View
2  dbscripts/functions/asofinvqty.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION asofinvqty(INTEGER, DATE) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteId ALIAS FOR $1;
View
2  dbscripts/functions/attachcontact.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION attachContact(INTEGER, INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pcntctId ALIAS FOR $1;
View
2  dbscripts/functions/attachquotetoopportunity.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION attachQuoteToOpportunity(INTEGER, INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pQuheadid ALIAS FOR $1;
View
2  dbscripts/functions/attachsalesordertoopportunity.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION attachSalesOrderToOpportunity(INTEGER, INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSoheadid ALIAS FOR $1;
View
2  dbscripts/functions/averagesalesprice.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION averageSalesPrice(INTEGER, DATE, DATE) RETURNS NUMERIC AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
View
2  dbscripts/functions/avgcost.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION avgCost(pItemsiteid INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_value NUMERIC;
View
2  dbscripts/functions/balanceitemsite.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION balanceItemsite(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
View
2  dbscripts/functions/basecurrid.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION baseCurrID ()
RETURNS INTEGER IMMUTABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
returnVal INTEGER;
View
2  dbscripts/functions/bomcontains.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION BOMContains(INTEGER, INTEGER) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pparentitemid ALIAS FOR $1;
View
2  dbscripts/functions/bomhistsequence.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION bomhistSequence(INTEGER) RETURNS TEXT AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pHistid ALIAS FOR $1;
View
4 dbscripts/functions/bomitem.sql
@@ -1,11 +1,11 @@
CREATE OR REPLACE FUNCTION bomitem(INTEGER) RETURNS SETOF bomitem AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
SELECT * FROM bomitem WHERE ((bomitem_parent_item_id=$1) AND (bomitem_rev_id=getActiveRevId('BOM',$1)));
$$ LANGUAGE 'sql';
CREATE OR REPLACE FUNCTION bomitem(INTEGER,INTEGER) RETURNS SETOF bomitem AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
SELECT * FROM bomitem WHERE ((bomitem_parent_item_id=$1) AND (bomitem_rev_id=$2));
$$ LANGUAGE 'sql';
View
4 dbscripts/functions/bomlevelbyitem.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION bomLevelByItem(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemid ALIAS FOR $1;
@@ -31,7 +31,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION bomLevelByItem(INTEGER,INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemid ALIAS FOR $1;
View
2  dbscripts/functions/bomworkeffective.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION bomworkEffective( INTEGER, DATE ) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
workid ALIAS FOR $1;
View
2  dbscripts/functions/bomworkexpired.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION bomworkExpired( INTEGER, DATE ) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
workid ALIAS FOR $1;
View
2  dbscripts/functions/bomworkitemsequence.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION bomworkItemSequence(INTEGER) RETURNS TEXT AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWorkid ALIAS FOR $1;
View
2  dbscripts/functions/bomworksequence.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION bomworkSequence(INTEGER) RETURNS TEXT AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWorkid ALIAS FOR $1;
View
2  dbscripts/functions/buildinvbal.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION buildInvBal(integer) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteId ALIAS FOR $1;
View
8 dbscripts/functions/calcbillingamts.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcCobillAmt(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCobillid ALIAS FOR $1;
@@ -18,7 +18,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcCobillTax(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCobillid ALIAS FOR $1;
@@ -41,7 +41,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcCobmiscAmt(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCobmiscid ALIAS FOR $1;
@@ -59,7 +59,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcCobmiscTax(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCobmiscid ALIAS FOR $1;
View
2  dbscripts/functions/calccashbudget.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calccashbudget(integer, integer, character) RETURNS numeric AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pAccntId ALIAS FOR $1;
View
4 dbscripts/functions/calccreditmemoamts.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcCmheadAmt(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCmheadid ALIAS FOR $1;
@@ -17,7 +17,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcCmheadTax(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCmheadid ALIAS FOR $1;
View
2  dbscripts/functions/calcpendingarapplications.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcpendingarapplications(INTEGER) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
paropenid ALIAS FOR $1;
View
4 dbscripts/functions/calcpurchaseorderamt.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcPurchaseOrderAmt(pPoheadid INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
@@ -10,7 +10,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcPurchaseOrderAmt(pPoheadid INTEGER,
pType TEXT) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_subtotal NUMERIC := 0;
View
2  dbscripts/functions/calcpurchaseorderduedate.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcPurchaseOrderDueDate(pPoheadid INTEGER) RETURNS DATE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_result DATE;
View
4 dbscripts/functions/calcquoteamt.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcQuoteAmt(pQuheadid INTEGER) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
@@ -10,7 +10,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcQuoteAmt(pQuheadid INTEGER,
pType TEXT) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_subtotal NUMERIC := 0.0;
View
4 dbscripts/functions/calcsalesorderamt.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcSalesOrderAmt(pCoheadid INTEGER) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
@@ -10,7 +10,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcSalesOrderAmt(pCoheadid INTEGER,
pType TEXT) RETURNS NUMERIC STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_subtotal NUMERIC := 0.0;
View
2  dbscripts/functions/calcshipfreight.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION calcShipFreight(integer) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pShipheadId ALIAS FOR $1;
View
2  dbscripts/functions/calctotalslipqty.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcTotalSlipQty(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTagid ALIAS FOR $1;
View
2  dbscripts/functions/calculatefreightdetail.sql
@@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION calculateFreightDetail(integer,integer,text,integer,integer,text,date,text,integer,character varying,integer,integer,numeric)
RETURNS SETOF freightData AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCustId ALIAS FOR $1;
View
2  dbscripts/functions/calculatesubtax.sql
@@ -2,7 +2,7 @@
CREATE OR REPLACE FUNCTION calculatesubtax(integer, date, integer, numeric, integer)
RETURNS SETOF taxdetail AS
$$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTaxCodeId ALIAS FOR $1;
View
2  dbscripts/functions/calculatetax.sql
@@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION calculatetax(integer, integer, date, integer, numeric)
RETURNS numeric AS
$BODY$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTaxZoneId ALIAS FOR $1;
View
2  dbscripts/functions/calculatetaxdetail.sql
@@ -2,7 +2,7 @@
CREATE OR REPLACE FUNCTION calculatetaxdetail(integer, integer, date, integer, numeric)
RETURNS SETOF taxdetail AS
$BODY$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTaxZoneId ALIAS FOR $1;
View
2  dbscripts/functions/calculatetaxdetailline.sql
@@ -2,7 +2,7 @@
CREATE OR REPLACE FUNCTION calculatetaxdetailline(text, integer)
RETURNS SETOF taxdetail AS
$BODY$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pOrderType ALIAS FOR $1;
View
2  dbscripts/functions/calculatetaxdetailsummary.sql
@@ -2,7 +2,7 @@
CREATE OR REPLACE FUNCTION calculatetaxdetailsummary(text, integer, text)
RETURNS SETOF taxdetail AS
$BODY$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pOrderType ALIAS FOR $1;
View
2  dbscripts/functions/calculatetaxhist.sql
@@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION calculatetaxhist(text, integer, integer, integer, date, integer, numeric)
RETURNS boolean AS
$BODY$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTableName ALIAS FOR $1;
View
6 dbscripts/functions/calcvoucheramts.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION calcVoucherFreight(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pVoucherid ALIAS FOR $1;
@@ -17,7 +17,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcVoucherTax(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pVoucherid ALIAS FOR $1;
@@ -39,7 +39,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION calcVoucherAmt(INTEGER) RETURNS NUMERIC AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pVoucherid ALIAS FOR $1;
View
2  dbscripts/functions/calcwooperstartstub.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION calcWooperStartStub(INTEGER, INTEGER) RETURNS DATE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWoId ALIAS FOR $1;
View
2  dbscripts/functions/cancelbillingselection.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cancelBillingSelection(INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCobmiscid ALIAS FOR $1;
View
2  dbscripts/functions/changeaccountingperioddates.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION changeAccountingPeriodDates(INTEGER, DATE, DATE) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPeriodid ALIAS FOR $1;
View
2  dbscripts/functions/changeaccountingyearperioddates.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION changeAccountingYearPeriodDates(INTEGER, DATE, DATE) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPeriodid ALIAS FOR $1;
View
2  dbscripts/functions/changefkeypointers.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION changeFKeyPointers(TEXT, TEXT, INTEGER, INTEGER, TEXT[], BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSchema ALIAS FOR $1;
View
4 dbscripts/functions/changepoitemduedate.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION changePoitemDueDate(pPoitemid INTEGER,
pDate DATE) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
@@ -12,7 +12,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION changePoitemDueDate(pPoitemid INTEGER,
pDate DATE,
pBySO BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
View
4 dbscripts/functions/changepoitemqty.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION changePoitemQty(pPoitemid INTEGER,
pQty NUMERIC) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
@@ -12,7 +12,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION changePoitemQty(pPoitemid INTEGER,
pQty NUMERIC,
pBySO BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
View
2  dbscripts/functions/changeprdate.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION changePrDate(INTEGER, DATE) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPrid ALIAS FOR $1;
View
2  dbscripts/functions/changeprqty.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION changePrQty(INTEGER, NUMERIC) RETURNS BOOL AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPrid ALIAS FOR $1;
View
2  dbscripts/functions/changepseudofkeypointers.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION changePseudoFKeyPointers(TEXT, TEXT, TEXT, INTEGER, TEXT, TEXT, INTEGER, TEXT, TEXT, BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSchema ALIAS FOR $1;
View
2  dbscripts/functions/changepurchasedropship.sql
@@ -1,7 +1,7 @@
CREATE OR REPLACE FUNCTION changePurchaseDropShip(pCoitemId INTEGER,
pPoitemId INTEGER,
pDropShip BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_s RECORD;
View
2  dbscripts/functions/changewodates.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION changeWoDates(INTEGER, DATE, DATE, BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWoid ALIAS FOR $1;
View
2  dbscripts/functions/changewoproject.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION changeWoProject(INTEGER, INTEGER, BOOLEAN) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWoid ALIAS FOR $1;
View
2  dbscripts/functions/changewoqty.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION changeWoQty(INTEGER, NUMERIC, BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWoid ALIAS FOR $1;
View
2  dbscripts/functions/characteristicstostring.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION characteristicsToString(TEXT, INTEGER, TEXT, TEXT) RETURNS TEXT AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pTargetType ALIAS FOR $1;
View
2  dbscripts/functions/checkcreditmemositeprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkCreditMemoSitePrivs(INTEGER) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCmheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkdetailformatted.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION checkDetailFormatted(INTEGER, INTEGER) RETURNS SETOF checkdata
AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCheckheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkinvoicesiteprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkInvoiceSitePrivs(INTEGER) RETURNS BOOLEAN STABLE AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pInvcheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkpositeprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkPOSitePrivs(INTEGER) RETURNS BOOLEAN STABLE AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPoheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkprivilege.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkPrivilege(text) RETURNS BOOLEAN STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPrivilege ALIAS FOR $1;
View
4 dbscripts/functions/checkquotesiteprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkQuoteSitePrivs(INTEGER) RETURNS BOOLEAN STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pQuheadid ALIAS FOR $1;
@@ -12,7 +12,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION checkQuoteSitePrivs(INTEGER, INTEGER) RETURNS BOOLEAN STABLE AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pQuheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkrasiteprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkRASitePrivs(INTEGER) RETURNS BOOLEAN STABLE AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pRaheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkshipmentsiteprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkShipmentSitePrivs(INTEGER) RETURNS BOOLEAN AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pShipheadid ALIAS FOR $1;
View
2  dbscripts/functions/checksositeprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkSOSitePrivs(INTEGER) RETURNS BOOLEAN STABLE AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSoheadid ALIAS FOR $1;
View
2  dbscripts/functions/checkvouchersiteprivs.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION checkVoucherSitePrivs(INTEGER) RETURNS BOOLEAN STABLE AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pVoheadid ALIAS FOR $1;
View
4 dbscripts/functions/clearnumberissue.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION clearNumberIssue(psequence TEXT, pnumber INTEGER) RETURNS BOOLEAN AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
__seqiss seqiss[];
@@ -56,7 +56,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION clearNumberIssue(psequence TEXT, pnumber TEXT) RETURNS BOOLEAN AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_castpnumber INTEGER;
View
2  dbscripts/functions/clearpayment.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION clearPayment(INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pApselectid ALIAS FOR $1;
View
2  dbscripts/functions/closeaccountingperiod.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION closeAccountingPeriod(INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPeriodid ALIAS FOR $1;
View
2  dbscripts/functions/closeaccountingyearperiod.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION closeAccountingYearPeriod(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pYearPeriodid ALIAS FOR $1;
View
2  dbscripts/functions/closepo.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION closePo(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pPoheadid ALIAS FOR $1;
View
4 dbscripts/functions/closewo.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION closeWo(INTEGER, BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWoid ALIAS FOR $1;
@@ -13,7 +13,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION closeWo(INTEGER, BOOLEAN, DATE) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pWoid ALIAS FOR $1;
View
2  dbscripts/functions/cntct.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntct() RETURNS SETOF cntct AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_row cntct%ROWTYPE;
View
2  dbscripts/functions/cntctdups.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntctdups(text, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean) RETURNS SETOF cntctdup AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSearchText ALIAS FOR $1;
View
2  dbscripts/functions/cntctmerge.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntctmerge(integer, integer, boolean) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSourceCntctId ALIAS FOR $1;
View
2  dbscripts/functions/cntctrestore.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntctrestore(integer) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCntctId ALIAS FOR $1;
View
2  dbscripts/functions/cntctselect.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntctselect(integer, boolean) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCntctId ALIAS FOR $1;
View
2  dbscripts/functions/cntctselectcol.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntctselectcol(integer, integer) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCntctId ALIAS FOR $1;
View
2  dbscripts/functions/cntctused.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION cntctused(integer) RETURNS boolean AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCntctId ALIAS FOR $1;
View
2  dbscripts/functions/coheadstatecolor.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION coheadstatecolor(INTEGER) RETURNS TEXT AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCoheadId ALIAS FOR $1;
View
2  dbscripts/functions/compareversion.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION public.compareversion(text, text DEFAULT split_part(version(), ' '::text, 2))
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
-- Returns 1 if the left version is greater than the right version
-- -1 if the right is greater than the left
View
2  dbscripts/functions/concatagg.sql
@@ -1,7 +1,7 @@
DROP AGGREGATE IF EXISTS concatagg(TEXT);
CREATE OR REPLACE FUNCTION concataggSfunc(TEXT, TEXT) RETURNS TEXT AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
prevstate ALIAS FOR $1;
View
2  dbscripts/functions/consolidatelocations.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION consolidateLocations(INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pItemsiteid ALIAS FOR $1;
View
2  dbscripts/functions/convertcustomertoprospect.sql
@@ -5,7 +5,7 @@
WHERE crmacct_cust_id=pCustId;
*/
CREATE OR REPLACE FUNCTION convertCustomerToProspect(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCustId ALIAS FOR $1;
View
4 dbscripts/functions/convertprospecttocustomer.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION convertProspectToCustomer(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
BEGIN
RETURN convertProspectToCustomer($1, FALSE);
@@ -7,7 +7,7 @@ END;
$$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION convertProspectToCustomer(INTEGER, BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pProspectId ALIAS FOR $1;
View
2  dbscripts/functions/convertquote.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION convertQuote(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pQuheadid ALIAS FOR $1;
View
2  dbscripts/functions/convertquotetoinvoice.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION convertQuoteToInvoice(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pQuheadid ALIAS FOR $1;
View
4 dbscripts/functions/copybom.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION copyBOM(pSItemid INTEGER,
pTItemid INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_result INTEGER;
@@ -17,7 +17,7 @@ $$ LANGUAGE 'plpgsql';
CREATE OR REPLACE FUNCTION copyBOM(pSItemid INTEGER,
pTItemid INTEGER,
pCopyUsedAt BOOLEAN) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_bh RECORD;
View
2  dbscripts/functions/copybudget.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION copyBudget(INTEGER, TEXT, TEXT, INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pBudgheadid ALIAS FOR $1;
View
2  dbscripts/functions/copycmd.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION copycmd(INTEGER, TEXT, TEXT) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pCmdId ALIAS FOR $1;
View
2  dbscripts/functions/copycontract.sql
@@ -2,7 +2,7 @@ CREATE OR REPLACE FUNCTION copyContract(pContrctid INTEGER,
pNumber TEXT,
pEffective DATE,
pExpires DATE) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
_contrctid INTEGER;
View
2  dbscripts/functions/copyfinancialgroup.sql
@@ -1,5 +1,5 @@
CREATE OR REPLACE FUNCTION copyFinancialGroup(INTEGER, INTEGER, INTEGER) RETURNS INTEGER AS '
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
+-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.
DECLARE
pSourceGroup ALIAS FOR $1;
View
2  dbscripts/functions/copyglseries.sql
@@ -1,6 +1,6 @@
CREATE OR REPLACE FUNCTION copyGLSeries(INTEGER) RETURNS INTEGER AS $$
--- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.