summaryrefslogtreecommitdiff
path: root/doc/html_manual/LedgerSMB-manual.html
blob: f58e373ae4a1577f7af21e2e68118b34eaeeb593 (plain)
  1. <?xml version="1.0" encoding="iso-8859-1" ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
  5. <html xmlns="http://www.w3.org/1999/xhtml"
  6. >
  7. <head><title>LedgerSMB Manual v. 1.2</title>
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  9. <meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html)" />
  10. <meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/mn.html)" />
  11. <!-- xhtml -->
  12. <meta name="src" content="LedgerSMB-manual.tex" />
  13. <meta name="date" content="2007-09-21 13:59:00" />
  14. <!-- SC: Manual edit, couldn't determine the previous option set -->
  15. <link rel="stylesheet" type="text/css" href="LedgerSMB-manual.css" />
  16. </head><body
  17. >
  18. <div class="maketitle">
  19. <h2 class="titleHead">LedgerSMB Manual v. 1.2</h2>
  20. <div class="author" ><span
  21. class="pplr8t-x-x-120">The LedgerSMB Core Team</span></div>
  22. <br />
  23. <div class="date" ><span
  24. class="pplr8t-x-x-120">September 21, 2007</span></div>
  25. </div>Copyright <span
  26. class="cmsy-10">&#169;</span>2006 The LedgerSMB Core Team. Permission is granted to copy, distribute and/or modify this
  27. document under the terms of the GNU Free Documentation License, Version 1.2 or any later version
  28. published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no
  29. Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation
  30. License" (Appendix <a
  31. href="#x1-223000E">E<!--tex4ht:ref: fdl --></a>).
  32. <h3 class="likesectionHead"><a
  33. id="x1-1000"></a>Contents</h3>
  34. <div class="tableofcontents">
  35. <span class="partToc">I&#x00A0;&#x00A0;<a
  36. href="#x1-3000I" id="QQ2-1-3">LedgerSMB and Business Processes</a></span>
  37. <br /> <span class="sectionToc">1 <a
  38. href="#x1-40001" id="QQ2-1-4">Introduction to LedgerSMB</a></span>
  39. <br /> &#x00A0;<span class="subsectionToc">1.1 <a
  40. href="#x1-50001.1" id="QQ2-1-5">Why LedgerSMB</a></span>
  41. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">1.1.1 <a
  42. href="#x1-60001.1.1" id="QQ2-1-6">Advantages of LedgerSMB</a></span>
  43. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">1.1.2 <a
  44. href="#x1-70001.1.2" id="QQ2-1-7">Key Features</a></span>
  45. <br /> &#x00A0;<span class="subsectionToc">1.2 <a
  46. href="#x1-80001.2" id="QQ2-1-8">Limitations of LedgerSMB</a></span>
  47. <br /> &#x00A0;<span class="subsectionToc">1.3 <a
  48. href="#x1-90001.3" id="QQ2-1-9">System Requirements of LedgerSMB</a></span>
  49. <br /> <span class="sectionToc">2 <a
  50. href="#x1-100002" id="QQ2-1-10">User Account and Database Administration Basics</a></span>
  51. <br /> &#x00A0;<span class="subsectionToc">2.1 <a
  52. href="#x1-110002.1" id="QQ2-1-11">Companies and Datasets</a></span>
  53. <br /> &#x00A0;<span class="subsectionToc">2.2 <a
  54. href="#x1-120002.2" id="QQ2-1-12">How to Create a User</a></span>
  55. <br /> &#x00A0;<span class="subsectionToc">2.3 <a
  56. href="#x1-130002.3" id="QQ2-1-13">Permissions</a></span>
  57. <br /> &#x00A0;<span class="subsectionToc">2.4 <a
  58. href="#x1-140002.4" id="QQ2-1-14">User Account Types</a></span>
  59. <br /> &#x00A0;<span class="subsectionToc">2.5 <a
  60. href="#x1-150002.5" id="QQ2-1-15">Other Features</a></span>
  61. <br /> <span class="sectionToc">3 <a
  62. href="#x1-160003" id="QQ2-1-16">Chart of Accounts</a></span>
  63. <br /> &#x00A0;<span class="subsectionToc">3.1 <a
  64. href="#x1-170003.1" id="QQ2-1-17">Introduction to Double Entry Bookkeeping</a></span>
  65. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">3.1.1 <a
  66. href="#x1-180003.1.1" id="QQ2-1-18">Business Entity</a></span>
  67. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">3.1.2 <a
  68. href="#x1-190003.1.2" id="QQ2-1-19">Double Entry</a></span>
  69. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">3.1.3 <a
  70. href="#x1-200003.1.3" id="QQ2-1-20">Accounts</a></span>
  71. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">3.1.4 <a
  72. href="#x1-210003.1.4" id="QQ2-1-21">Debits and Credits</a></span>
  73. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">3.1.5 <a
  74. href="#x1-220003.1.5" id="QQ2-1-22">Accrual</a></span>
  75. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">3.1.6 <a
  76. href="#x1-230003.1.6" id="QQ2-1-23">References</a></span>
  77. <br /> &#x00A0;<span class="subsectionToc">3.2 <a
  78. href="#x1-240003.2" id="QQ2-1-24">General Guidelines on Numbering Accounts</a></span>
  79. <br /> &#x00A0;<span class="subsectionToc">3.3 <a
  80. href="#x1-250003.3" id="QQ2-1-25">Adding/Modifying Accounts</a></span>
  81. <br /> &#x00A0;<span class="subsectionToc">3.4 <a
  82. href="#x1-260003.4" id="QQ2-1-26">Listing Account Balances and Transactions</a></span>
  83. <br /> <span class="sectionToc">4 <a
  84. href="#x1-270004" id="QQ2-1-27">Administration</a></span>
  85. <br /> &#x00A0;<span class="subsectionToc">4.1 <a
  86. href="#x1-280004.1" id="QQ2-1-28">Taxes, Defaults, and Preferences</a></span>
  87. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.1.1 <a
  88. href="#x1-290004.1.1" id="QQ2-1-29">Adding A Sales Tax Account</a></span>
  89. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.1.2 <a
  90. href="#x1-300004.1.2" id="QQ2-1-30">Setting a Sales Tax Amount</a></span>
  91. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.1.3 <a
  92. href="#x1-310004.1.3" id="QQ2-1-31">Default Account Setup</a></span>
  93. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.1.4 <a
  94. href="#x1-320004.1.4" id="QQ2-1-32">Currency Setup</a></span>
  95. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.1.5 <a
  96. href="#x1-330004.1.5" id="QQ2-1-33">Sequence Settings</a></span>
  97. <br /> &#x00A0;<span class="subsectionToc">4.2 <a
  98. href="#x1-340004.2" id="QQ2-1-34">Audit Control</a></span>
  99. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.2.1 <a
  100. href="#x1-350004.2.1" id="QQ2-1-35">Explaining transaction reversal</a></span>
  101. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.2.2 <a
  102. href="#x1-360004.2.2" id="QQ2-1-36">Close books option</a></span>
  103. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.2.3 <a
  104. href="#x1-370004.2.3" id="QQ2-1-37">Audit Trails</a></span>
  105. <br /> &#x00A0;<span class="subsectionToc">4.3 <a
  106. href="#x1-380004.3" id="QQ2-1-38">Departments</a></span>
  107. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.3.1 <a
  108. href="#x1-390004.3.1" id="QQ2-1-39">Cost v Profit Centers.</a></span>
  109. <br /> &#x00A0;<span class="subsectionToc">4.4 <a
  110. href="#x1-400004.4" id="QQ2-1-40">Warehouses</a></span>
  111. <br /> &#x00A0;<span class="subsectionToc">4.5 <a
  112. href="#x1-410004.5" id="QQ2-1-41">Languages</a></span>
  113. <br /> &#x00A0;<span class="subsectionToc">4.6 <a
  114. href="#x1-420004.6" id="QQ2-1-42">Types of Businesses</a></span>
  115. <br /> &#x00A0;<span class="subsectionToc">4.7 <a
  116. href="#x1-430004.7" id="QQ2-1-43">Misc.</a></span>
  117. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.7.1 <a
  118. href="#x1-440004.7.1" id="QQ2-1-44">GIFI</a></span>
  119. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.7.2 <a
  120. href="#x1-450004.7.2" id="QQ2-1-45">SIC</a></span>
  121. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.7.3 <a
  122. href="#x1-460004.7.3" id="QQ2-1-46">Overview of Template Editing</a></span>
  123. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">4.7.4 <a
  124. href="#x1-470004.7.4" id="QQ2-1-47">Year-end</a></span>
  125. <br /> &#x00A0;<span class="subsectionToc">4.8 <a
  126. href="#x1-480004.8" id="QQ2-1-48">Options in the ledgersmb.conf</a></span>
  127. <br /> <span class="sectionToc">5 <a
  128. href="#x1-490005" id="QQ2-1-49">Goods and Services</a></span>
  129. <br /> &#x00A0;<span class="subsectionToc">5.1 <a
  130. href="#x1-500005.1" id="QQ2-1-50">Basic Terms</a></span>
  131. <br /> &#x00A0;<span class="subsectionToc">5.2 <a
  132. href="#x1-510005.2" id="QQ2-1-51">The Price Matrix</a></span>
  133. <br /> &#x00A0;<span class="subsectionToc">5.3 <a
  134. href="#x1-520005.3" id="QQ2-1-52">Pricegroups</a></span>
  135. <br /> &#x00A0;<span class="subsectionToc">5.4 <a
  136. href="#x1-530005.4" id="QQ2-1-53">Groups</a></span>
  137. <br /> &#x00A0;<span class="subsectionToc">5.5 <a
  138. href="#x1-540005.5" id="QQ2-1-54">Labor/Overhead</a></span>
  139. <br /> &#x00A0;<span class="subsectionToc">5.6 <a
  140. href="#x1-550005.6" id="QQ2-1-55">Services</a></span>
  141. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.6.1 <a
  142. href="#x1-560005.6.1" id="QQ2-1-56">Shipping and Handling as a Service</a></span>
  143. <br /> &#x00A0;<span class="subsectionToc">5.7 <a
  144. href="#x1-570005.7" id="QQ2-1-57">Parts</a></span>
  145. <br /> &#x00A0;<span class="subsectionToc">5.8 <a
  146. href="#x1-580005.8" id="QQ2-1-58">Assemblies and Manufacturing</a></span>
  147. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.8.1 <a
  148. href="#x1-590005.8.1" id="QQ2-1-59">Stocking Assemblies</a></span>
  149. <br /> &#x00A0;<span class="subsectionToc">5.9 <a
  150. href="#x1-600005.9" id="QQ2-1-60">Reporting</a></span>
  151. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.9.1 <a
  152. href="#x1-610005.9.1" id="QQ2-1-61">All Items and Parts Reports</a></span>
  153. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.9.2 <a
  154. href="#x1-620005.9.2" id="QQ2-1-62">Requirements</a></span>
  155. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.9.3 <a
  156. href="#x1-630005.9.3" id="QQ2-1-63">Services and Labor</a></span>
  157. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.9.4 <a
  158. href="#x1-640005.9.4" id="QQ2-1-64">Assemblies</a></span>
  159. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">5.9.5 <a
  160. href="#x1-650005.9.5" id="QQ2-1-65">Groups and Pricegroups</a></span>
  161. <br /> &#x00A0;<span class="subsectionToc">5.10 <a
  162. href="#x1-660005.10" id="QQ2-1-66">Translations</a></span>
  163. <br /> &#x00A0;<span class="subsectionToc">5.11 <a
  164. href="#x1-670005.11" id="QQ2-1-67">How Cost of Goods Sold is tracked</a></span>
  165. <br /> <span class="sectionToc">6 <a
  166. href="#x1-680006" id="QQ2-1-68">AP</a></span>
  167. <br /> &#x00A0;<span class="subsectionToc">6.1 <a
  168. href="#x1-690006.1" id="QQ2-1-69">Basic AP Concepts</a></span>
  169. <br /> &#x00A0;<span class="subsectionToc">6.2 <a
  170. href="#x1-700006.2" id="QQ2-1-70">Vendors</a></span>
  171. <br /> &#x00A0;<span class="subsectionToc">6.3 <a
  172. href="#x1-710006.3" id="QQ2-1-71">AP Transactions</a></span>
  173. <br /> &#x00A0;<span class="subsectionToc">6.4 <a
  174. href="#x1-720006.4" id="QQ2-1-72">AP Invoices</a></span>
  175. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.4.1 <a
  176. href="#x1-730006.4.1" id="QQ2-1-73">Correcting an AP Invoice</a></span>
  177. <br /> &#x00A0;<span class="subsectionToc">6.5 <a
  178. href="#x1-740006.5" id="QQ2-1-74">Cash payment And Check Printing</a></span>
  179. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.5.1 <a
  180. href="#x1-750006.5.1" id="QQ2-1-75">Rapid Payment Entry Screen</a></span>
  181. <br /> &#x00A0;<span class="subsectionToc">6.6 <a
  182. href="#x1-760006.6" id="QQ2-1-76">Transaction/Invoice Reporting</a></span>
  183. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.6.1 <a
  184. href="#x1-770006.6.1" id="QQ2-1-77">Transactions Report</a></span>
  185. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.6.2 <a
  186. href="#x1-780006.6.2" id="QQ2-1-78">Outstanding Report</a></span>
  187. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.6.3 <a
  188. href="#x1-790006.6.3" id="QQ2-1-79">AP Aging Report</a></span>
  189. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.6.4 <a
  190. href="#x1-800006.6.4" id="QQ2-1-80">Tax Paid and Non-taxable Report</a></span>
  191. <br /> &#x00A0;<span class="subsectionToc">6.7 <a
  192. href="#x1-810006.7" id="QQ2-1-81">Vendor Reporting</a></span>
  193. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.7.1 <a
  194. href="#x1-820006.7.1" id="QQ2-1-82">Vendor Search</a></span>
  195. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">6.7.2 <a
  196. href="#x1-830006.7.2" id="QQ2-1-83">Vendor History</a></span>
  197. <br /> <span class="sectionToc">7 <a
  198. href="#x1-840007" id="QQ2-1-84">AR</a></span>
  199. <br /> &#x00A0;<span class="subsectionToc">7.1 <a
  200. href="#x1-850007.1" id="QQ2-1-85">Customers</a></span>
  201. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">7.1.1 <a
  202. href="#x1-860007.1.1" id="QQ2-1-86">Customer Price Matrix</a></span>
  203. <br /> &#x00A0;<span class="subsectionToc">7.2 <a
  204. href="#x1-870007.2" id="QQ2-1-87">AR Transactions</a></span>
  205. <br /> &#x00A0;<span class="subsectionToc">7.3 <a
  206. href="#x1-880007.3" id="QQ2-1-88">AR Invoices</a></span>
  207. <br /> &#x00A0;<span class="subsectionToc">7.4 <a
  208. href="#x1-890007.4" id="QQ2-1-89">Cash Receipt</a></span>
  209. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">7.4.1 <a
  210. href="#x1-900007.4.1" id="QQ2-1-90">Cash Receipts for multiple customers</a></span>
  211. <br /> &#x00A0;<span class="subsectionToc">7.5 <a
  212. href="#x1-910007.5" id="QQ2-1-91">AR Transaction Reporting</a></span>
  213. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">7.5.1 <a
  214. href="#x1-920007.5.1" id="QQ2-1-92">AR Transactions Report</a></span>
  215. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">7.5.2 <a
  216. href="#x1-930007.5.2" id="QQ2-1-93">AR Aging Report</a></span>
  217. <br /> &#x00A0;<span class="subsectionToc">7.6 <a
  218. href="#x1-940007.6" id="QQ2-1-94">Customer Reporting</a></span>
  219. <br /> <span class="sectionToc">8 <a
  220. href="#x1-950008" id="QQ2-1-95">Projects</a></span>
  221. <br /> &#x00A0;<span class="subsectionToc">8.1 <a
  222. href="#x1-960008.1" id="QQ2-1-96">Project Basics</a></span>
  223. <br /> &#x00A0;<span class="subsectionToc">8.2 <a
  224. href="#x1-970008.2" id="QQ2-1-97">Timecards</a></span>
  225. <br /> &#x00A0;<span class="subsectionToc">8.3 <a
  226. href="#x1-980008.3" id="QQ2-1-98">Projects and Invoices</a></span>
  227. <br /> &#x00A0;<span class="subsectionToc">8.4 <a
  228. href="#x1-990008.4" id="QQ2-1-99">Reporting</a></span>
  229. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">8.4.1 <a
  230. href="#x1-1000008.4.1" id="QQ2-1-100">Timecard Reporting</a></span>
  231. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">8.4.2 <a
  232. href="#x1-1010008.4.2" id="QQ2-1-101">Project Transaction Reporting</a></span>
  233. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">8.4.3 <a
  234. href="#x1-1020008.4.3" id="QQ2-1-102">List of Projects</a></span>
  235. <br /> &#x00A0;<span class="subsectionToc">8.5 <a
  236. href="#x1-1030008.5" id="QQ2-1-103">Possibilities for Using Projects</a></span>
  237. <br /> <span class="sectionToc">9 <a
  238. href="#x1-1040009" id="QQ2-1-104">Quotations and Order Management</a></span>
  239. <br /> &#x00A0;<span class="subsectionToc">9.1 <a
  240. href="#x1-1050009.1" id="QQ2-1-105">Sales Orders</a></span>
  241. <br /> &#x00A0;<span class="subsectionToc">9.2 <a
  242. href="#x1-1060009.2" id="QQ2-1-106">Quotations</a></span>
  243. <br /> &#x00A0;<span class="subsectionToc">9.3 <a
  244. href="#x1-1070009.3" id="QQ2-1-107">Shipping</a></span>
  245. <br /> &#x00A0;<span class="subsectionToc">9.4 <a
  246. href="#x1-1080009.4" id="QQ2-1-108">AR Work Flow</a></span>
  247. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.4.1 <a
  248. href="#x1-1090009.4.1" id="QQ2-1-109">Service Example</a></span>
  249. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.4.2 <a
  250. href="#x1-1100009.4.2" id="QQ2-1-111">Single Warehouse Example</a></span>
  251. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.4.3 <a
  252. href="#x1-1110009.4.3" id="QQ2-1-113">Multiple Warehouse Example</a></span>
  253. <br /> &#x00A0;<span class="subsectionToc">9.5 <a
  254. href="#x1-1120009.5" id="QQ2-1-115">Requests for Quotation (RFQ)</a></span>
  255. <br /> &#x00A0;<span class="subsectionToc">9.6 <a
  256. href="#x1-1130009.6" id="QQ2-1-116">Purchase Orders</a></span>
  257. <br /> &#x00A0;<span class="subsectionToc">9.7 <a
  258. href="#x1-1140009.7" id="QQ2-1-117">Receiving</a></span>
  259. <br /> &#x00A0;<span class="subsectionToc">9.8 <a
  260. href="#x1-1150009.8" id="QQ2-1-118">AP Work Flow</a></span>
  261. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.8.1 <a
  262. href="#x1-1160009.8.1" id="QQ2-1-119">Bookkeeper entering the received items, order completed in full</a></span>
  263. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.8.2 <a
  264. href="#x1-1170009.8.2" id="QQ2-1-121">Bookkeeper entering received items, order completed in part</a></span>
  265. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.8.3 <a
  266. href="#x1-1180009.8.3" id="QQ2-1-123">Receiving staff entering items</a></span>
  267. <br /> &#x00A0;<span class="subsectionToc">9.9 <a
  268. href="#x1-1190009.9" id="QQ2-1-125">Generation and Consolidation</a></span>
  269. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.9.1 <a
  270. href="#x1-1200009.9.1" id="QQ2-1-126">Generation</a></span>
  271. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">9.9.2 <a
  272. href="#x1-1210009.9.2" id="QQ2-1-127">Consolidation</a></span>
  273. <br /> &#x00A0;<span class="subsectionToc">9.10 <a
  274. href="#x1-1220009.10" id="QQ2-1-128">Reporting</a></span>
  275. <br /> &#x00A0;<span class="subsectionToc">9.11 <a
  276. href="#x1-1230009.11" id="QQ2-1-129">Shipping Module: Transferring Inventory between Warehouses</a></span>
  277. <br /> <span class="sectionToc">10 <a
  278. href="#x1-12400010" id="QQ2-1-130">HR</a></span>
  279. <br /> <span class="sectionToc">11 <a
  280. href="#x1-12500011" id="QQ2-1-131">POS</a></span>
  281. <br /> &#x00A0;<span class="subsectionToc">11.1 <a
  282. href="#x1-12600011.1" id="QQ2-1-132">Sales Screen</a></span>
  283. <br /> &#x00A0;<span class="subsectionToc">11.2 <a
  284. href="#x1-12700011.2" id="QQ2-1-133">Possibilities for Data Entry</a></span>
  285. <br /> &#x00A0;<span class="subsectionToc">11.3 <a
  286. href="#x1-12800011.3" id="QQ2-1-134">Hardware Support</a></span>
  287. <br /> &#x00A0;<span class="subsectionToc">11.4 <a
  288. href="#x1-12900011.4" id="QQ2-1-135">Reports</a></span>
  289. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">11.4.1 <a
  290. href="#x1-13000011.4.1" id="QQ2-1-136">Open Invoices</a></span>
  291. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">11.4.2 <a
  292. href="#x1-13100011.4.2" id="QQ2-1-137">Receipts</a></span>
  293. <br /> <span class="sectionToc">12 <a
  294. href="#x1-13200012" id="QQ2-1-138">General Ledger</a></span>
  295. <br /> &#x00A0;<span class="subsectionToc">12.1 <a
  296. href="#x1-13300012.1" id="QQ2-1-139">GL Basics</a></span>
  297. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">12.1.1 <a
  298. href="#x1-13400012.1.1" id="QQ2-1-140">Paper-based accounting systems and the GL</a></span>
  299. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">12.1.2 <a
  300. href="#x1-13500012.1.2" id="QQ2-1-141">Double Entry Examples on Paper</a></span>
  301. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">12.1.3 <a
  302. href="#x1-13600012.1.3" id="QQ2-1-142">The GL in LedgerSMB</a></span>
  303. <br /> &#x00A0;<span class="subsectionToc">12.2 <a
  304. href="#x1-13700012.2" id="QQ2-1-143">Cash Transfer</a></span>
  305. <br /> &#x00A0;<span class="subsectionToc">12.3 <a
  306. href="#x1-13800012.3" id="QQ2-1-144">GL Transactions</a></span>
  307. <br /> &#x00A0;<span class="subsectionToc">12.4 <a
  308. href="#x1-13900012.4" id="QQ2-1-145">Payroll as a GL transaction</a></span>
  309. <br /> &#x00A0;<span class="subsectionToc">12.5 <a
  310. href="#x1-14000012.5" id="QQ2-1-147">Reconciliation</a></span>
  311. <br /> &#x00A0;<span class="subsectionToc">12.6 <a
  312. href="#x1-14100012.6" id="QQ2-1-148">Reports</a></span>
  313. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">12.6.1 <a
  314. href="#x1-14200012.6.1" id="QQ2-1-149">GL as access to almost everything else</a></span>
  315. <br /> <span class="sectionToc">13 <a
  316. href="#x1-14300013" id="QQ2-1-150">Recurring Transactions</a></span>
  317. <br /> <span class="sectionToc">14 <a
  318. href="#x1-14400014" id="QQ2-1-151">Financial Statements and Reports</a></span>
  319. <br /> &#x00A0;<span class="subsectionToc">14.1 <a
  320. href="#x1-14500014.1" id="QQ2-1-152">Cash v. Accrual Basis</a></span>
  321. <br /> &#x00A0;<span class="subsectionToc">14.2 <a
  322. href="#x1-14600014.2" id="QQ2-1-153">Viewing the Chart of Accounts and Transactions</a></span>
  323. <br /> &#x00A0;<span class="subsectionToc">14.3 <a
  324. href="#x1-14700014.3" id="QQ2-1-154">Trial Balance</a></span>
  325. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">14.3.1 <a
  326. href="#x1-14800014.3.1" id="QQ2-1-155">The Paper-based function of a Trial Balance</a></span>
  327. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">14.3.2 <a
  328. href="#x1-14900014.3.2" id="QQ2-1-156">Running the Trial Balance Report</a></span>
  329. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">14.3.3 <a
  330. href="#x1-15000014.3.3" id="QQ2-1-157">What if the Trial Balance doesn&#8217;t Balance?</a></span>
  331. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">14.3.4 <a
  332. href="#x1-15100014.3.4" id="QQ2-1-158">Trial Balance as a Summary of Account Activity</a></span>
  333. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">14.3.5 <a
  334. href="#x1-15200014.3.5" id="QQ2-1-159">Trial Balance as a Budget Planning Tool</a></span>
  335. <br /> &#x00A0;<span class="subsectionToc">14.4 <a
  336. href="#x1-15300014.4" id="QQ2-1-160">Income Statement</a></span>
  337. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">14.4.1 <a
  338. href="#x1-15400014.4.1" id="QQ2-1-161">Uses of an Income Statement</a></span>
  339. <br /> &#x00A0;<span class="subsectionToc">14.5 <a
  340. href="#x1-15500014.5" id="QQ2-1-162">Balance Sheet</a></span>
  341. <br /> &#x00A0;<span class="subsectionToc">14.6 <a
  342. href="#x1-15600014.6" id="QQ2-1-163">What if the Balance Sheet doesn&#8217;t balance?</a></span>
  343. <br /> &#x00A0;<span class="subsectionToc">14.7 <a
  344. href="#x1-15700014.7" id="QQ2-1-164">No Statement of Owner Equity?</a></span>
  345. <br /> <span class="sectionToc">15 <a
  346. href="#x1-15800015" id="QQ2-1-165">The Template System</a></span>
  347. <br /> &#x00A0;<span class="subsectionToc">15.1 <a
  348. href="#x1-15900015.1" id="QQ2-1-166">Text Templates</a></span>
  349. <br /> &#x00A0;<span class="subsectionToc">15.2 <a
  350. href="#x1-16000015.2" id="QQ2-1-167">HTML Templates</a></span>
  351. <br /> &#x00A0;<span class="subsectionToc">15.3 <a
  352. href="#x1-16100015.3" id="QQ2-1-168"><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  353. class="E">E</span>X</span></span> Templates</a></span>
  354. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">15.3.1 <a
  355. href="#x1-16200015.3.1" id="QQ2-1-169">What is <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  356. class="E">E</span>X</span></span> ?</a></span>
  357. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">15.3.2 <a
  358. href="#x1-16300015.3.2" id="QQ2-1-170">Using LY X to Edit <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  359. class="E">E</span>X</span></span> Templates</a></span>
  360. <br /> &#x00A0;<span class="subsectionToc">15.4 <a
  361. href="#x1-16400015.4" id="QQ2-1-171">Customizing Logos</a></span>
  362. <br /> &#x00A0;<span class="subsectionToc">15.5 <a
  363. href="#x1-16500015.5" id="QQ2-1-172">How are They Stored in the Filesystem?</a></span>
  364. <br /> &#x00A0;<span class="subsectionToc">15.6 <a
  365. href="#x1-16600015.6" id="QQ2-1-173">Upgrade Issues</a></span>
  366. <br /> <span class="sectionToc">16 <a
  367. href="#x1-16700016" id="QQ2-1-174">An Introduction to the CLI</a></span>
  368. <br /> &#x00A0;<span class="subsectionToc">16.1 <a
  369. href="#x1-16800016.1" id="QQ2-1-175">Conventions</a></span>
  370. <br /> &#x00A0;<span class="subsectionToc">16.2 <a
  371. href="#x1-16900016.2" id="QQ2-1-176">Preliminaries</a></span>
  372. <br /> &#x00A0;<span class="subsectionToc">16.3 <a
  373. href="#x1-17000016.3" id="QQ2-1-177">First Script: lsmb01-cli-example.sh</a></span>
  374. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">16.3.1 <a
  375. href="#x1-17100016.3.1" id="QQ2-1-178">Script 1 (Bash)</a></span>
  376. <br /> &#x00A0;<span class="subsectionToc">16.4 <a
  377. href="#x1-17200016.4" id="QQ2-1-179">Second Script: lsmb02-cli-example.pl</a></span>
  378. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">16.4.1 <a
  379. href="#x1-17300016.4.1" id="QQ2-1-180">Script 2 (Perl)</a></span>
  380. <br /> <span class="partToc">II&#x00A0;&#x00A0;<a
  381. href="#x1-174000II" id="QQ2-1-181">Technical Overview</a></span>
  382. <br /> <span class="sectionToc">17 <a
  383. href="#x1-17500017" id="QQ2-1-182">Basic Architecture</a></span>
  384. <br /> &#x00A0;<span class="subsectionToc">17.1 <a
  385. href="#x1-17600017.1" id="QQ2-1-183">The Software Stack</a></span>
  386. <br /> &#x00A0;<span class="subsectionToc">17.2 <a
  387. href="#x1-17700017.2" id="QQ2-1-185">Capacity Planning</a></span>
  388. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">17.2.1 <a
  389. href="#x1-17800017.2.1" id="QQ2-1-186">Scalability Strategies</a></span>
  390. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">17.2.2 <a
  391. href="#x1-17900017.2.2" id="QQ2-1-187">Database Maintenance</a></span>
  392. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">17.2.3 <a
  393. href="#x1-18000017.2.3" id="QQ2-1-188">Known issues</a></span>
  394. <br /> <span class="sectionToc">18 <a
  395. href="#x1-18100018" id="QQ2-1-189">Customization Possibilities</a></span>
  396. <br /> &#x00A0;<span class="subsectionToc">18.1 <a
  397. href="#x1-18200018.1" id="QQ2-1-190">Brief Guide to the Source Code</a></span>
  398. <br /> &#x00A0;<span class="subsectionToc">18.2 <a
  399. href="#x1-18300018.2" id="QQ2-1-191">Data Entry Screens</a></span>
  400. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">18.2.1 <a
  401. href="#x1-18400018.2.1" id="QQ2-1-192">Examples</a></span>
  402. <br /> &#x00A0;<span class="subsectionToc">18.3 <a
  403. href="#x1-18500018.3" id="QQ2-1-193">Extensions</a></span>
  404. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">18.3.1 <a
  405. href="#x1-18600018.3.1" id="QQ2-1-194">Examples</a></span>
  406. <br /> &#x00A0;<span class="subsectionToc">18.4 <a
  407. href="#x1-18700018.4" id="QQ2-1-195">Templates</a></span>
  408. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">18.4.1 <a
  409. href="#x1-18800018.4.1" id="QQ2-1-196">Examples</a></span>
  410. <br /> &#x00A0;<span class="subsectionToc">18.5 <a
  411. href="#x1-18900018.5" id="QQ2-1-197">Reports</a></span>
  412. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">18.5.1 <a
  413. href="#x1-19000018.5.1" id="QQ2-1-198">Examples</a></span>
  414. <br /> <span class="sectionToc">19 <a
  415. href="#x1-19100019" id="QQ2-1-199">Integration Possibilities</a></span>
  416. <br /> &#x00A0;<span class="subsectionToc">19.1 <a
  417. href="#x1-19200019.1" id="QQ2-1-200">Reporting Tools</a></span>
  418. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">19.1.1 <a
  419. href="#x1-19300019.1.1" id="QQ2-1-201">Examples</a></span>
  420. <br /> &#x00A0;<span class="subsectionToc">19.2 <a
  421. href="#x1-19400019.2" id="QQ2-1-202">Line of Business Tools on PostgreSQL</a></span>
  422. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">19.2.1 <a
  423. href="#x1-19500019.2.1" id="QQ2-1-203">Known Issues</a></span>
  424. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">19.2.2 <a
  425. href="#x1-19600019.2.2" id="QQ2-1-204">Strategies</a></span>
  426. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">19.2.3 <a
  427. href="#x1-19700019.2.3" id="QQ2-1-205">Examples</a></span>
  428. <br /> &#x00A0;<span class="subsectionToc">19.3 <a
  429. href="#x1-19800019.3" id="QQ2-1-206">Line of Business Tools on other RDBMS&#8217;s</a></span>
  430. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">19.3.1 <a
  431. href="#x1-19900019.3.1" id="QQ2-1-207">Strategies</a></span>
  432. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">19.3.2 <a
  433. href="#x1-20000019.3.2" id="QQ2-1-208">Integration Products and Open Source Projects</a></span>
  434. <br /> <span class="sectionToc">20 <a
  435. href="#x1-20100020" id="QQ2-1-209">Customization Guide</a></span>
  436. <br /> &#x00A0;<span class="subsectionToc">20.1 <a
  437. href="#x1-20200020.1" id="QQ2-1-210">General Information</a></span>
  438. <br /> &#x00A0;<span class="subsectionToc">20.2 <a
  439. href="#x1-20300020.2" id="QQ2-1-211">Customizing Templates</a></span>
  440. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.2.1 <a
  441. href="#x1-20400020.2.1" id="QQ2-1-212">Page Breaks in <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  442. class="E">E</span>X</span></span></a></span>
  443. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.2.2 <a
  444. href="#x1-20500020.2.2" id="QQ2-1-213">Conditionals</a></span>
  445. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.2.3 <a
  446. href="#x1-20600020.2.3" id="QQ2-1-214">Loops</a></span>
  447. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.2.4 <a
  448. href="#x1-20700020.2.4" id="QQ2-1-215">File Inclusion</a></span>
  449. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.2.5 <a
  450. href="#x1-20800020.2.5" id="QQ2-1-216">Cross-referencing and multiple passes of <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  451. class="E">E</span>X</span></span></a></span>
  452. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.2.6 <a
  453. href="#x1-20900020.2.6" id="QQ2-1-217">Variable Substitution</a></span>
  454. <br /> &#x00A0;<span class="subsectionToc">20.3 <a
  455. href="#x1-21000020.3" id="QQ2-1-218">Customizing Forms</a></span>
  456. <br /> &#x00A0;<span class="subsectionToc">20.4 <a
  457. href="#x1-21100020.4" id="QQ2-1-219">Customizing Modules</a></span>
  458. <br /> &#x00A0;&#x00A0;<span class="subsubsectionToc">20.4.1 <a
  459. href="#x1-21200020.4.1" id="QQ2-1-220">Database Access</a></span>
  460. <br /> &#x00A0;<span class="subsectionToc">20.5 <a
  461. href="#x1-21300020.5" id="QQ2-1-221">CLI Examples</a></span>
  462. <br /> <span class="partToc">III&#x00A0;&#x00A0;<a
  463. href="#x1-214000III" id="QQ2-1-222">Appendix</a></span>
  464. <br /> <span class="sectionToc">A <a
  465. href="#x1-215000A" id="QQ2-1-223">Where to Go for More Information</a></span>
  466. <br /> <span class="sectionToc">B <a
  467. href="#x1-216000B" id="QQ2-1-224">Quick Tips</a></span>
  468. <br /> &#x00A0;<span class="subsectionToc">B.1 <a
  469. href="#x1-217000B.1" id="QQ2-1-225">Understanding Shipping Addresses and Carriers</a></span>
  470. <br /> &#x00A0;<span class="subsectionToc">B.2 <a
  471. href="#x1-218000B.2" id="QQ2-1-226">Handling bad debts</a></span>
  472. <br /> <span class="sectionToc">C <a
  473. href="#x1-219000C" id="QQ2-1-227">Step by Steps for Vertical Markets</a></span>
  474. <br /> &#x00A0;<span class="subsectionToc">C.1 <a
  475. href="#x1-220000C.1" id="QQ2-1-228">Common Installation Errors</a></span>
  476. <br /> &#x00A0;<span class="subsectionToc">C.2 <a
  477. href="#x1-221000C.2" id="QQ2-1-229">Retail With Light Manufacturing</a></span>
  478. <br /> <span class="sectionToc">D <a
  479. href="#x1-222000D" id="QQ2-1-230">Glossary</a></span>
  480. <br /> <span class="sectionToc">E <a
  481. href="#x1-223000E" id="QQ2-1-231">GNU Free Documentation License</a></span>
  482. <br /> &#x00A0;<span class="subsectionToc"> <a
  483. href="#Q1-1-232">1. APPLICABILITY AND DEFINITIONS</a></span>
  484. <br /> &#x00A0;<span class="subsectionToc"> <a
  485. href="#Q1-1-233">2. VERBATIM COPYING</a></span>
  486. <br /> &#x00A0;<span class="subsectionToc"> <a
  487. href="#Q1-1-234">3. COPYING IN QUANTITY</a></span>
  488. <br /> &#x00A0;<span class="subsectionToc"> <a
  489. href="#Q1-1-235">4. MODIFICATIONS</a></span>
  490. <br /> &#x00A0;<span class="subsectionToc"> <a
  491. href="#Q1-1-236">5. COMBINING DOCUMENTS</a></span>
  492. <br /> &#x00A0;<span class="subsectionToc"> <a
  493. href="#Q1-1-237">6. COLLECTIONS OF DOCUMENTS</a></span>
  494. <br /> &#x00A0;<span class="subsectionToc"> <a
  495. href="#Q1-1-238">7. AGGREGATION WITH INDEPENDENT WORKS</a></span>
  496. <br /> &#x00A0;<span class="subsectionToc"> <a
  497. href="#Q1-1-239">8. TRANSLATION</a></span>
  498. <br /> &#x00A0;<span class="subsectionToc"> <a
  499. href="#Q1-1-240">9. TERMINATION</a></span>
  500. <br /> &#x00A0;<span class="subsectionToc"> <a
  501. href="#Q1-1-241">10. FUTURE REVISIONS OF THIS LICENSE</a></span>
  502. <br /> &#x00A0;<span class="subsectionToc"> <a
  503. href="#Q1-1-242">ADDENDUM: How to use this License for your documents</a></span>
  504. </div>
  505. <!--l. 44--><p class="noindent">
  506. </p>
  507. <h3 class="likesectionHead"><a
  508. id="x1-2000"></a>List of Figures</h3>
  509. <div class="tableofcontents"><span class="lofToc">1&#x00A0;<a
  510. href="#x1-1090011">Simple AR Service Invoice Workflow Example</a></span><br /><span class="lofToc">2&#x00A0;<a
  511. href="#x1-1100012">AR Workflow with
  512. Shipping</a></span><br /><span class="lofToc">3&#x00A0;<a
  513. href="#x1-1110013">Complex AR Workflow with Shipping</a></span><br /><span class="lofToc">4&#x00A0;<a
  514. href="#x1-1160014">Simple AP Workflow</a></span><br /><span class="lofToc">5&#x00A0;<a
  515. href="#x1-1170015">AP
  516. Workflow with Receiving</a></span><br /><span class="lofToc">6&#x00A0;<a
  517. href="#x1-1180016">Complex AP Workflow</a></span><br /><span class="lofToc">7&#x00A0;<a
  518. href="#x1-1390017">Payroll as a GL Transaction (Purely
  519. fictitious numbers)</a></span><br /><span class="lofToc">8&#x00A0;<a
  520. href="#x1-1760018">The LedgerSMB software stack in a Typical Implementation</a></span><br />
  521. </div>
  522. <h1 class="partHead"><span class="titlemark">Part&#x00A0;I<br /></span><a
  523. id="x1-3000I"></a>LedgerSMB and Business Processes</h1>
  524. <h3 class="sectionHead"><span class="titlemark">1 </span> <a
  525. id="x1-40001"></a>Introduction to LedgerSMB</h3>
  526. <!--l. 56--><p class="noindent">
  527. </p>
  528. <h4 class="subsectionHead"><span class="titlemark">1.1 </span> <a
  529. id="x1-50001.1"></a>Why LedgerSMB</h4>
  530. <!--l. 59--><p class="noindent">
  531. </p>
  532. <h5 class="subsubsectionHead"><span class="titlemark">1.1.1 </span> <a
  533. id="x1-60001.1.1"></a>Advantages of LedgerSMB</h5>
  534. <ul class="itemize1">
  535. <li class="itemize">Flexibility and Central Management
  536. </li>
  537. <li class="itemize">Accessibility over the Internet (for some users)
  538. </li>
  539. <li class="itemize">Relatively open data format
  540. </li>
  541. <li class="itemize">Integration with other tools
  542. </li>
  543. <li class="itemize">Excellent accounting options for Linux users
  544. </li>
  545. <li class="itemize">Open Source
  546. </li>
  547. <li class="itemize">Flexible, open framework that can be extended or modified to fit your business.
  548. </li>
  549. <li class="itemize">Security-conscious development community.</li></ul>
  550. <!--l. 73--><p class="noindent">
  551. </p>
  552. <h5 class="subsubsectionHead"><span class="titlemark">1.1.2 </span> <a
  553. id="x1-70001.1.2"></a>Key Features</h5>
  554. <ul class="itemize1">
  555. <li class="itemize">Accounts Receivable
  556. <ul class="itemize2">
  557. <li class="itemize">Track sales by customer
  558. </li>
  559. <li class="itemize">Issue Invoices, Statements, Receipts, and more
  560. </li>
  561. <li class="itemize">Do job costing and time entry for customer projects
  562. </li>
  563. <li class="itemize">Manage sales orders and quotations
  564. </li>
  565. <li class="itemize">Ship items from sales orders</li></ul>
  566. </li>
  567. <li class="itemize">Accounts Payable
  568. <ul class="itemize2">
  569. <li class="itemize">Track purchases and debts by vendor
  570. </li>
  571. <li class="itemize">Issue RFQ&#8217;s Purchase Orders, etc.
  572. </li>
  573. <li class="itemize">Track items received from purchase orders</li></ul>
  574. </li>
  575. <li class="itemize">Budgeting
  576. <ul class="itemize2">
  577. <li class="itemize">Track expenditures and income across multiple departments
  578. </li>
  579. <li class="itemize">Track all transactions across departments</li></ul>
  580. </li>
  581. <li class="itemize">Check Printing
  582. <ul class="itemize2">
  583. <li class="itemize">Customize template for any check form</li></ul>
  584. </li>
  585. <li class="itemize">General Ledger
  586. </li>
  587. <li class="itemize">Inventory Management
  588. <ul class="itemize2">
  589. <li class="itemize">Track sales and orders of parts
  590. </li>
  591. <li class="itemize">Track cost of goods sold using First In/First Out method
  592. </li>
  593. <li class="itemize">List all parts below reorder point
  594. </li>
  595. <li class="itemize">Track ordering requirements
  596. </li>
  597. <li class="itemize">Track, ship, receive, and transfer parts to and from multiple warehouses</li></ul>
  598. </li>
  599. <li class="itemize">Localization
  600. <ul class="itemize2">
  601. <li class="itemize">Provide Localized Translations for Part Descriptions
  602. </li>
  603. <li class="itemize">Provide Localized Templates for Invoices, Orders, Checks, and more
  604. </li>
  605. <li class="itemize">Select language per customer, invoice, order, etc.</li></ul>
  606. </li>
  607. <li class="itemize">Manufacturing
  608. <ul class="itemize2">
  609. <li class="itemize">Track cost of goods sold for manufactured goods (assemblies)
  610. </li>
  611. <li class="itemize">Create assemblies and stock assemblies, tracking materials on hand</li></ul>
  612. </li>
  613. <li class="itemize">Multi-company/Multiuser
  614. <ul class="itemize2">
  615. <li class="itemize">One isolated database per company
  616. </li>
  617. <li class="itemize">Users can have localized systems independent of company data set</li></ul>
  618. </li>
  619. <li class="itemize">Point of Sale
  620. <ul class="itemize2">
  621. <li class="itemize">Run multiple cash registers against main LedgerSMB installation
  622. </li>
  623. <li class="itemize">Suitable for retail stores and more
  624. </li>
  625. <li class="itemize">Credit card processing via TrustCommerce
  626. </li>
  627. <li class="itemize">Supports some POS hardware out of the box including:
  628. <ul class="itemize3">
  629. <li class="itemize">Logic Controls PD3000 pole displays (serial or parallel)
  630. </li>
  631. <li class="itemize">Basic text-based receipt printers
  632. </li>
  633. <li class="itemize">Keyboard wedge barcode scanners
  634. </li>
  635. <li class="itemize">Keyboard wedge magnetic card readers
  636. </li>
  637. <li class="itemize">Printer-attached cash drawers</li></ul>
  638. </li></ul>
  639. </li>
  640. <li class="itemize">Price Matrix
  641. <ul class="itemize2">
  642. <li class="itemize">Track different prices for vendors and customers across the board
  643. </li>
  644. <li class="itemize">Provide discounts to groups of customers per item or across the board
  645. </li>
  646. <li class="itemize">Store vendors&#8217; prices independent of the other last cost in the parts record</li></ul>
  647. </li>
  648. <li class="itemize">Reporting
  649. <ul class="itemize2">
  650. <li class="itemize">Supports all basic financial statements
  651. </li>
  652. <li class="itemize">Easily display customer history, sales data, and additional information
  653. </li>
  654. <li class="itemize">Open framework allows for ODBC connections to be used to generate reports using third
  655. party reporting tools.</li></ul>
  656. </li>
  657. <li class="itemize">Tax
  658. <ul class="itemize2">
  659. <li class="itemize">Supports Retail Sales Tax and Value Added Tax type systems
  660. </li>
  661. <li class="itemize">Flexible framework allows one to customize reports to change the tax reporting framework
  662. to meet any local requirement.</li></ul>
  663. </li></ul>
  664. <!--l. 173--><p class="noindent">
  665. </p>
  666. <h4 class="subsectionHead"><span class="titlemark">1.2 </span> <a
  667. id="x1-80001.2"></a>Limitations of LedgerSMB</h4>
  668. <ul class="itemize1">
  669. <li class="itemize">No payroll module (Payroll must be done manually)
  670. </li>
  671. <li class="itemize">Some integration limitations
  672. </li>
  673. <li class="itemize">Further development/maintenance requires a knowledge of a relatively broad range of
  674. technologies</li></ul>
  675. <!--l. 182--><p class="noindent">
  676. </p>
  677. <h4 class="subsectionHead"><span class="titlemark">1.3 </span> <a
  678. id="x1-90001.3"></a>System Requirements of LedgerSMB</h4>
  679. <ul class="itemize1">
  680. <li class="itemize">PostgreSQL
  681. </li>
  682. <li class="itemize">A CGI-enabled Web Server (for example, Apache)
  683. </li>
  684. <li class="itemize">Perl 5.8.x
  685. </li>
  686. <li class="itemize">An operating system which supports the above software (usually Linux, though Windows,
  687. MacOS X, etc. do work)
  688. </li>
  689. <li class="itemize"><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  690. class="E">E</span>X</span></span>&#x00A0;(optional) is required to create PDF or Postscript invoices
  691. </li>
  692. <li class="itemize">The following CPAN modules:
  693. <ul class="itemize2">
  694. <li class="itemize">Data::Dumper
  695. </li>
  696. <li class="itemize">Locale::Maketext
  697. </li>
  698. <li class="itemize">Locale::Maketext::Lexicon
  699. </li>
  700. <li class="itemize">MIME::Base64
  701. </li>
  702. <li class="itemize">Digest::MD5
  703. </li>
  704. <li class="itemize">HTML::Entities
  705. </li>
  706. <li class="itemize">DBI
  707. </li>
  708. <li class="itemize">DBD::Pg
  709. </li>
  710. <li class="itemize">Math::BigFloat
  711. </li>
  712. <li class="itemize">IO::File
  713. </li>
  714. <li class="itemize">Encode
  715. </li>
  716. <li class="itemize">Locale::Country
  717. </li>
  718. <li class="itemize">Locale::Language
  719. </li>
  720. <li class="itemize">Time::Local
  721. </li>
  722. <li class="itemize">Cwd
  723. </li>
  724. <li class="itemize">Config::Std
  725. </li>
  726. <li class="itemize">MIME::Lite</li></ul>
  727. </li></ul>
  728. <!--l. 214--><p class="noindent">
  729. </p>
  730. <h3 class="sectionHead"><span class="titlemark">2 </span> <a
  731. id="x1-100002"></a>User Account and Database Administration Basics</h3>
  732. <!--l. 216--><p class="noindent">These functions are accessed via the admin.pl script in the installed directory of LedgerSMB.
  733. </p><!--l. 220--><p class="noindent">
  734. </p>
  735. <h4 class="subsectionHead"><span class="titlemark">2.1 </span> <a
  736. id="x1-110002.1"></a>Companies and Datasets</h4>
  737. <!--l. 222--><p class="noindent">LedgerSMB stores its information in locale-specific data sets. When a dataset is created, it sets various
  738. defaults such as currency, a basic chart of accounts setup, and so forth. Note that the default setup is for
  739. Canada, where the author of the software resides.
  740. </p><!--l. 227--><p class="indent"> Datasets are stored as PostgreSQL databases. The application is designed with the idea that each dataset
  741. will represent exactly one company. If a customer is working with multiple companies, he/she must create a
  742. dataset to for each.
  743. </p><!--l. 232--><p class="indent"> When creating a dataset, the application asks for both a username and a superusername. If the
  744. superuser&#8217;s information is not filled in, LedgerSMB will attempt to populate an existing dataset, but if this
  745. information is filled in, the program will log into the PostgreSQL cluster with the superusername and
  746. password, create the database, and attempt to add Plpgsql to it.
  747. </p><!--l. 238--><p class="noindent">
  748. </p>
  749. <h4 class="subsectionHead"><span class="titlemark">2.2 </span> <a
  750. id="x1-120002.2"></a>How to Create a User</h4>
  751. <!--l. 240--><p class="noindent">Users are created by going to the admin.pl page and clicking on "Add User." One then fills out the form and
  752. when it is saved, the user is created.
  753. </p><!--l. 245--><p class="noindent">
  754. </p>
  755. <h4 class="subsectionHead"><span class="titlemark">2.3 </span> <a
  756. id="x1-130002.3"></a>Permissions</h4>
  757. <!--l. 247--><p class="noindent">The permissions system is not rigorously enforced within LedgerSMB, in the sense that the
  758. permissions API is generally not used in the application itself. Instead permissions are used to
  759. enable/disable menu options. Setting an enforcement of such permissions would require some custom
  760. programming at the present time. Most organizations, however, find that the current system is
  761. adequate.
  762. </p><!--l. 254--><p class="indent"> The checkboxes which are marked enable menu entries. Those that are unchecked disable those entries on
  763. the menu.
  764. </p><!--l. 258--><p class="noindent">
  765. </p>
  766. <h4 class="subsectionHead"><span class="titlemark">2.4 </span> <a
  767. id="x1-140002.4"></a>User Account Types</h4>
  768. <ul class="itemize1">
  769. <li class="itemize">User is a general user of the system
  770. </li>
  771. <li class="itemize">Managers often are able to see a larger amount of data
  772. </li>
  773. <li class="itemize">Administrators have full access to the system</li></ul>
  774. <!--l. 266--><p class="noindent">
  775. </p>
  776. <h4 class="subsectionHead"><span class="titlemark">2.5 </span> <a
  777. id="x1-150002.5"></a>Other Features</h4>
  778. <ul class="itemize1">
  779. <li class="itemize">Lock System allows one to lock users out of the system while maintenance is performed. This is
  780. only necessary during upgrades or maintenance which results in the RDBMS being offline.
  781. </li>
  782. <li class="itemize">Change Admin Password changes the administrative password.
  783. </li>
  784. <li class="itemize">Logout terminates the admin session.</li></ul>
  785. <!--l. 276--><p class="noindent">
  786. </p>
  787. <h3 class="sectionHead"><span class="titlemark">3 </span> <a
  788. id="x1-160003"></a>Chart of Accounts</h3>
  789. <!--l. 278--><p class="noindent">The Chart of Accounts provides a basic overview of the logical structure of the accounting program. One can
  790. customize this chart to allow for tracking of different sorts of information.
  791. </p><!--l. 283--><p class="noindent">
  792. </p>
  793. <h4 class="subsectionHead"><span class="titlemark">3.1 </span> <a
  794. id="x1-170003.1"></a>Introduction to Double Entry Bookkeeping</h4>
  795. <!--l. 284--><p class="noindent">In order to set up your chart of accounts in LedgerSMB you will need to understand a bit about double entry
  796. bookkeeping. This section provides a brief overview of the essential concepts. There is a list of references for
  797. further reading at the end.
  798. </p><!--l. 289--><p class="noindent">
  799. </p>
  800. <h5 class="subsubsectionHead"><span class="titlemark">3.1.1 </span> <a
  801. id="x1-180003.1.1"></a>Business Entity</h5>
  802. <!--l. 290--><p class="noindent">You don&#8217;t want to mix your personal expenses and income with that of the business or you will
  803. not be able to tell how much money it is making (if any). For the same reason you will want
  804. to keep track of how much money you put into and take out of the business so you will want
  805. to set up a completely seperate set of records for it and treat it almost as if it had a life of its
  806. own.
  807. </p><!--l. 297--><p class="noindent">
  808. </p>
  809. <h5 class="subsubsectionHead"><span class="titlemark">3.1.2 </span> <a
  810. id="x1-190003.1.2"></a>Double Entry</h5>
  811. <!--l. 298--><p class="noindent">Examples: </p>
  812. <ul class="itemize1">
  813. <li class="itemize">When you buy you pay money and receive goods.
  814. </li>
  815. <li class="itemize">When you sell you get money and give goods.
  816. </li>
  817. <li class="itemize">When you borrow you get money and give a promise to pay it back.
  818. </li>
  819. <li class="itemize">When you lend you give money and get a promise to pay it back.
  820. </li>
  821. <li class="itemize">When you sell on credit you give goods and get a promise to pay.
  822. </li>
  823. <li class="itemize">When you buy on credit you give a promise to pay and get goods.</li></ul>
  824. <!--l. 308--><p class="indent"> You need to record both sides of each transaction: thus double entry. Furthermore, you want to organize
  825. your entries, recording those having to do with money in one place, value of goods bought and sold in
  826. another, money owed in yet another, etc. Hence you create accounts, and record each half of each transaction
  827. in an appropriate account. Of course, you won&#8217;t have to actually record the amount in more than one place
  828. yourself: the program takes care of that.
  829. </p><!--l. 316--><p class="noindent">
  830. </p>
  831. <h5 class="subsubsectionHead"><span class="titlemark">3.1.3 </span> <a
  832. id="x1-200003.1.3"></a>Accounts</h5>
  833. <!--l. 318--><p class="noindent">
  834. </p><dl class="description"><dt class="description">
  835. <span
  836. class="pplb8t-">Assets</span> </dt><dd
  837. class="description">Valuable stuff the business owns such as money and goods available for sale
  838. </dd><dt class="description">
  839. <span
  840. class="pplb8t-">Liabilities</span> </dt><dd
  841. class="description">Debts owned by the business such as bank loans and unpaid bills
  842. </dd><dt class="description">
  843. <span
  844. class="pplb8t-">Equity or Capital</span> </dt><dd
  845. class="description">What would be left for the owner if all the assets were converted to money and
  846. all the liabilities paid off ("Share Capital" on the LedgerSMB default chart of accounts: not to be
  847. confused with "Capital Assets".)
  848. </dd><dt class="description">
  849. <span
  850. class="pplb8t-">Revenue</span> </dt><dd
  851. class="description">Income from business activity: increases Equity
  852. </dd><dt class="description">
  853. <span
  854. class="pplb8t-">Expense</span> </dt><dd
  855. class="description">The light bill, the cost of goods sold, etc: decreases Equity</dd></dl>
  856. <!--l. 330--><p class="noindent">All other accounts are subdivisions of these. The relationship between the top-level accounts
  857. is often stated in the form of the Accounting Equation (don&#8217;t worry: you won&#8217;t have to solve
  858. it):
  859. </p><!--l. 334--><p class="indent"> Assets = Liabilities + Equity + (Revenue - Expense)
  860. </p><!--l. 336--><p class="indent"> You won&#8217;t actually use this equation while doing your bookkeeping, but it&#8217;s a useful tool for
  861. understanding how the system works.
  862. </p><!--l. 339--><p class="noindent">
  863. </p>
  864. <h5 class="subsubsectionHead"><span class="titlemark">3.1.4 </span> <a
  865. id="x1-210003.1.4"></a>Debits and Credits</h5>
  866. <!--l. 341--><p class="noindent">Traditional paper accounting systems used a two-column form in which all increases went in one column
  867. and all deceases in the other. For asset and expense accounts increases went in the left column and decreases
  868. in the right. For liability and capital accounts decreases went in the left column and increases in the right.
  869. Looking at the accounting equation we see that assets are on the left, so it is logical that asset increases would
  870. go on the left. Libilities, capital, and revenue are on the right so it is logical that their increase would go on
  871. the right. Expenses, however, are on the right, so why do their increases go on the left? Because expenses are
  872. subtracted from the right side of the equation and so expense increases decrease the right side of the
  873. equation.
  874. </p><!--l. 353--><p class="indent"> Entries in the left column of the traditional form are called debits, while entries on the right are called
  875. credits. Neither is "negative".
  876. </p>
  877. <ul class="itemize1">
  878. <li class="itemize">Debits increase assets
  879. </li>
  880. <li class="itemize">Debits increase expense
  881. </li>
  882. <li class="itemize">Credits increase liabilities
  883. </li>
  884. <li class="itemize">Credits increase capital
  885. </li>
  886. <li class="itemize">Credits increase revenue</li></ul>
  887. <!--l. 364--><p class="indent"> Examples:
  888. </p><!--l. 366--><p class="indent"> You go to the bank and make a deposit. The teller tells you that he is going to credit your
  889. account. This is correct: your account is money the bank owes you and so is a liability from their
  890. point of view. Your deposit increased this liability and so they will credit it. They will make an
  891. equal debit to their cash account. When you return you will debit your bank deposits account
  892. because you have increased that asset and credit cash on hand because you have decreased that
  893. one.
  894. </p><!--l. 375--><p class="noindent">
  895. </p>
  896. <h5 class="subsubsectionHead"><span class="titlemark">3.1.5 </span> <a
  897. id="x1-220003.1.5"></a>Accrual</h5>
  898. <!--l. 377--><p class="noindent">Early accounting systems were usually run on a cash basis. One generally did not consider money owed to
  899. affect the financial health of a company, so expenses posted when paid as did income.
  900. </p><!--l. 381--><p class="indent"> The problem with this approach is that it becomes very difficult or impossible to truly understand the
  901. exact nature of the financial health of a business. One cannot get the full picture of the financial health of a
  902. business because outstanding debts are not considered. Futhermore, this does not allow for revenue to
  903. be tied to cost effectively, so it becomes difficult to assess how profitable a given activity truly
  904. is.
  905. </p><!--l. 388--><p class="indent"> To solve this problem, accrual-based systems were designed. The basic principle is that income and
  906. expense should be posted as they are incurred, or accrued. This allows one to track income relative to
  907. expense for specific projects or operations, and make better decisions about which activities will help one
  908. maximize profitability.
  909. </p><!--l. 394--><p class="indent"> To show how these systems differ, imagine that you bill a customer for time and materials for a project
  910. you have just completed. The customer pays the bill after 30 days. In a cash based system, you would post
  911. the income at the time when the customer pays, while in an accrual system, the income is posted at the time
  912. when the project is completed.
  913. </p><!--l. 400--><p class="noindent">
  914. </p>
  915. <h5 class="subsubsectionHead"><span class="titlemark">3.1.6 </span> <a
  916. id="x1-230003.1.6"></a>References</h5>
  917. <!--l. 402--><p class="noindent"><span class="obeylines-h"><a
  918. href="http://www.accounting-and-bookkeeping-tips.com/learning-accounting/accounting-basics-credit.htm" class="url" >http://www.accounting-and-bookkeeping-tips.com/learning-accounting/accounting-basics-credit.htm</a></span>
  919. <br class="newline" />Discussion of debits and credits as well as links to other accounting subjects.
  920. <br class="newline" />
  921. </p><!--l. 405--><p class="noindent"><span class="obeylines-h"><a
  922. href="http://www.computer-consulting.com/accttips.htm" class="url" >http://www.computer-consulting.com/accttips.htm</a></span>
  923. <br class="newline" />Discussion of double entry bookkeeping.
  924. <br class="newline" />
  925. </p><!--l. 408--><p class="noindent"><span class="obeylines-h"><a
  926. href="http://www.minnesota.com/~tom/sql-ledger/howtos/" class="url" >http://www.minnesota.com/~tom/sql-ledger/howtos/</a></span>
  927. <br class="newline" />A short glossary, some links, and a FAQ (which makes the "credit=negative number" error). The FAQ focuses
  928. on SQL-Ledger, LedgerSMB&#8217;s ancestor.
  929. <br class="newline" />
  930. </p><!--l. 412--><p class="noindent"><span class="obeylines-h"><a
  931. href="http://bitscafe.com/pub2/etp/sql-ledger-notes#expenses" class="url" >http://bitscafe.com/pub2/etp/sql-ledger-notes#expenses</a></span>
  932. <br class="newline" />Some notes on using SQL-Ledger (LedgerSMB&#8217;s ancestor).
  933. <br class="newline" />
  934. </p><!--l. 415--><p class="noindent"><span class="obeylines-h"><a
  935. href="http://en.wikipedia.org/wiki/List_of_accounting_topics" class="url" >http://en.wikipedia.org/wiki/List_of_accounting_topics</a></span>
  936. <br class="newline" />Wikipedia articles on accounting.
  937. <br class="newline" />
  938. </p><!--l. 418--><p class="noindent"><span class="obeylines-h"><a
  939. href="http://www.bized.ac.uk/learn/accounting/financial/index.htm" class="url" >http://www.bized.ac.uk/learn/accounting/financial/index.htm</a></span>
  940. <br class="newline" />Basic accounting tutorial.
  941. <br class="newline" />
  942. </p><!--l. 421--><p class="noindent"><span class="obeylines-h"><a
  943. href="http://www.asset-analysis.com/glossary/glo_index.html" class="url" >http://www.asset-analysis.com/glossary/glo_index.html</a></span>
  944. <br class="newline" />Financial dictionary and glossary.
  945. <br class="newline" />
  946. </p><!--l. 424--><p class="noindent"><span class="obeylines-h"><a
  947. href="http://www.geocities.com/chapleaucree/educational/FinanceHandbook.html" class="url" >http://www.geocities.com/chapleaucree/educational/FinanceHandbook.html</a></span>
  948. <br class="newline" />Financial glossary.
  949. <br class="newline" />
  950. </p><!--l. 427--><p class="noindent"><span class="obeylines-h"><a
  951. href="http://www.quickmba.com/accounting/fin/" class="url" >http://www.quickmba.com/accounting/fin/</a></span>
  952. <br class="newline" />Explanation of fundamentals of accounting, including good discussions of debits and credits and of
  953. double-entry.
  954. </p><!--l. 432--><p class="noindent">
  955. </p>
  956. <h4 class="subsectionHead"><span class="titlemark">3.2 </span> <a
  957. id="x1-240003.2"></a>General Guidelines on Numbering Accounts</h4>
  958. <!--l. 434--><p class="noindent">In general, most drop-down boxes in LedgerSMB order the accounts by account number. Therefore by
  959. setting appropriate account numbers, one can affect the default values.
  960. </p><!--l. 438--><p class="indent"> A second consideration is to try to keep things under each heading appropriate to that heading.
  961. Thus setting an account number for a bank loan account in the assets category is not generally
  962. advisable.
  963. </p><!--l. 443--><p class="noindent">
  964. </p>
  965. <h4 class="subsectionHead"><span class="titlemark">3.3 </span> <a
  966. id="x1-250003.3"></a>Adding/Modifying Accounts</h4>
  967. <!--l. 445--><p class="noindent">These features are listed under System-&#x003E;Chart of Accounts. One can list the accounts and click on the
  968. account number to modify them or click on the "add account" option to create new accounts.
  969. </p>
  970. <ul class="itemize1">
  971. <li class="itemize">Headings are just broad categories and do not store values themselves, while accounts are used
  972. to store the transactional information.
  973. </li>
  974. <li class="itemize">One cannot have an account that is a summary account (like AR) and also has another function.
  975. </li>
  976. <li class="itemize">GIFI is mostly of interest to Canadian customers but it can be used to create reports of account
  977. hierarchies.</li></ul>
  978. <!--l. 459--><p class="noindent">
  979. </p>
  980. <h4 class="subsectionHead"><span class="titlemark">3.4 </span> <a
  981. id="x1-260003.4"></a>Listing Account Balances and Transactions</h4>
  982. <!--l. 461--><p class="noindent">One can list the account balances via the Reports-&#x003E;Chart of Accounts report. Clicking on the account number
  983. will provide a ledger for that account.
  984. </p><!--l. 466--><p class="noindent">
  985. </p>
  986. <h3 class="sectionHead"><span class="titlemark">4 </span> <a
  987. id="x1-270004"></a>Administration</h3>
  988. <!--l. 468--><p class="noindent">This section covers other (non-Chart of Accounts) aspects to the setup of the LedgerSMB accounting
  989. package. These are generally accessed in the System submenu.
  990. </p><!--l. 473--><p class="noindent">
  991. </p>
  992. <h4 class="subsectionHead"><span class="titlemark">4.1 </span> <a
  993. id="x1-280004.1"></a>Taxes, Defaults, and Preferences</h4>
  994. <!--l. 474--><p class="noindent">One of the new features in 1.2 is the modular sales tax system and the simple sales tax module. This allows
  995. one to install different tax modules and then select which taxes are applied by which programming modules.
  996. The sales tax module has access to everything on the submitted form so it is able to make complex
  997. determinations on what is taxable based on arbitrary criteria.
  998. </p><!--l. 480--><p class="indent"> The tax rules drop-down box allows one to select any installed tax module (LedgerSMB 1.2 ships only
  999. with the simple module), while the ordering is an integer which allows one to specify a tax run which occurs
  1000. on the form after any rules with lower entries in this box. This allows for compounding of sales tax (for
  1001. example, when PST applies to the total and GST as well).
  1002. </p><!--l. 485--><p class="noindent">
  1003. </p>
  1004. <h5 class="subsubsectionHead"><span class="titlemark">4.1.1 </span> <a
  1005. id="x1-290004.1.1"></a>Adding A Sales Tax Account</h5>
  1006. <!--l. 487--><p class="noindent">Sales Tax is collected on behalf of a state or national government by the individual store. Thus a sales tax
  1007. account is a liability&#8211; it represents money owed by the business to the government.
  1008. </p><!--l. 491--><p class="indent"> To add a sales tax account, create an account in the Chart of Accounts as a liability account, check all of
  1009. the "tax" checkboxes.
  1010. </p><!--l. 494--><p class="indent"> Once this account is created, one can set the tax amount.
  1011. </p><!--l. 497--><p class="noindent">
  1012. </p>
  1013. <h5 class="subsubsectionHead"><span class="titlemark">4.1.2 </span> <a
  1014. id="x1-300004.1.2"></a>Setting a Sales Tax Amount</h5>
  1015. <!--l. 499--><p class="noindent">Go to System-&#x003E;Defaults and the tax account will be listed near the bottom of the page. The rate can be set
  1016. there.
  1017. </p><!--l. 503--><p class="noindent">
  1018. </p>
  1019. <h5 class="subsubsectionHead"><span class="titlemark">4.1.3 </span> <a
  1020. id="x1-310004.1.3"></a>Default Account Setup</h5>
  1021. <!--l. 505--><p class="noindent">These accounts are the default accounts for part creation and foreign exchange tracking.
  1022. </p><!--l. 509--><p class="noindent">
  1023. </p>
  1024. <h5 class="subsubsectionHead"><span class="titlemark">4.1.4 </span> <a
  1025. id="x1-320004.1.4"></a>Currency Setup</h5>
  1026. <!--l. 511--><p class="noindent">The US accounts list this as USD:CAD:EUR. One can add other currencies in here, such as IDR (Indonesian
  1027. Rupiah), etc. Currencies are separated by colons.
  1028. </p><!--l. 516--><p class="noindent">
  1029. </p>
  1030. <h5 class="subsubsectionHead"><span class="titlemark">4.1.5 </span> <a
  1031. id="x1-330004.1.5"></a>Sequence Settings</h5>
  1032. <!--l. 518--><p class="noindent">These sequences are used to generate user identifiers for quotations, invoices, and the like. If an identifier is
  1033. not added, the next number will be used.
  1034. </p><!--l. 522--><p class="indent"> A common application is to set invoices, etc. to start at 1000 in order to hide the number of issued invoices
  1035. from a customer.
  1036. </p><!--l. 525--><p class="indent"> Leading zeros are preserved. Other special values which can be embedded using <span
  1037. class="cmmi-10">&#x003C;</span>?lsmb ?<span
  1038. class="cmmi-10">&#x003E; </span>tags
  1039. include:
  1040. </p><!--l. 528--><p class="indent">
  1041. </p><dl class="description"><dt class="description">
  1042. <span
  1043. class="pplb8t-">DATE</span> </dt><dd
  1044. class="description">expands to the current date
  1045. </dd><dt class="description">
  1046. <span
  1047. class="pplb8t-">YYMMDD</span> </dt><dd
  1048. class="description">expands to a six-digit version of the date. The components of this date can be re-arranged
  1049. in any order, so MMDDYY, DDMMYY, or even just MMYY are all options.
  1050. </dd><dt class="description">
  1051. <span
  1052. class="pplb8t-">NAME</span> </dt><dd
  1053. class="description">expands to the name of the customer or vendor
  1054. </dd><dt class="description">
  1055. <span
  1056. class="pplb8t-">BUSINESS</span> </dt><dd
  1057. class="description">expands to the type of business assigned to the customer or ventor.
  1058. </dd><dt class="description">
  1059. <span
  1060. class="pplb8t-">DESCRIPTION</span> </dt><dd
  1061. class="description">expands to the description of the part. Valid only for parts.
  1062. </dd><dt class="description">
  1063. <span
  1064. class="pplb8t-">ITEM</span> </dt><dd
  1065. class="description">expands to the item field. Valid only for parts.
  1066. </dd><dt class="description">
  1067. <span
  1068. class="pplb8t-">PERISCOPE</span> </dt><dd
  1069. class="description">expands to the partsgroup. Valid only for parts.
  1070. </dd><dt class="description">
  1071. <span
  1072. class="pplb8t-">PHONE</span> </dt><dd
  1073. class="description">expands to the telephoen number for customers and vendors.</dd></dl>
  1074. <!--l. 542--><p class="noindent">
  1075. </p>
  1076. <h4 class="subsectionHead"><span class="titlemark">4.2 </span> <a
  1077. id="x1-340004.2"></a>Audit Control</h4>
  1078. <!--l. 544--><p class="noindent">Auditability is a core concern of the architects of any accounting system. Such ensures that any modification
  1079. to the accounting information leaves a trail which can be followed to determine the nature of the change.
  1080. Audits can help ensure that the data in the accounting system is meaningful and accurate, and that no foul
  1081. play (such as embezzlement) is occurring.
  1082. </p><!--l. 552--><p class="noindent">
  1083. </p>
  1084. <h5 class="subsubsectionHead"><span class="titlemark">4.2.1 </span> <a
  1085. id="x1-350004.2.1"></a>Explaining transaction reversal</h5>
  1086. <!--l. 554--><p class="noindent">In paper accounting systems, it was necessary to have a means to authoritatively track corrections of
  1087. mistakes. The means by which this was done was known as "transaction reversal."
  1088. </p><!--l. 558--><p class="indent"> When a mistake would be made, one would then reverse the transaction and then enter it in correctly. For
  1089. example, let us say that an office was renting space for $300 per month. Let us say that they inadvertently
  1090. entered it in as a $200 expense.
  1091. </p><!--l. 563--><p class="indent"> The original transaction would be:
  1092. </p>
  1093. <div class="tabular"><table class="tabular"
  1094. cellspacing="0" cellpadding="0" rules="groups"
  1095. ><colgroup id="TBL-2-1g"><col
  1096. id="TBL-2-1" /></colgroup><colgroup id="TBL-2-2g"><col
  1097. id="TBL-2-2" /></colgroup><colgroup id="TBL-2-3g"><col
  1098. id="TBL-2-3" /></colgroup><tr
  1099. style="vertical-align:baseline;" id="TBL-2-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-1-1"
  1100. class="td11">Account </td><td style="white-space:nowrap; text-align:right;" id="TBL-2-1-2"
  1101. class="td11">Debit</td><td style="white-space:nowrap; text-align:right;" id="TBL-2-1-3"
  1102. class="td11">Credit</td>
  1103. </tr><tr
  1104. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  1105. style="vertical-align:baseline;" id="TBL-2-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-2-1"
  1106. class="td11">5760 Rent </td><td style="white-space:nowrap; text-align:right;" id="TBL-2-2-2"
  1107. class="td11"> $200</td><td style="white-space:nowrap; text-align:right;" id="TBL-2-2-3"
  1108. class="td11"> </td>
  1109. </tr><tr
  1110. style="vertical-align:baseline;" id="TBL-2-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-3-1"
  1111. class="td11">2100 Accounts Payable</td><td style="white-space:nowrap; text-align:right;" id="TBL-2-3-2"
  1112. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-2-3-3"
  1113. class="td11"> $200</td>
  1114. </tr><tr
  1115. style="vertical-align:baseline;" id="TBL-2-4-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-4-1"
  1116. class="td11"> </td> </tr></table>
  1117. </div>
  1118. <!--l. 578--><p class="indent"> The reversal would be:
  1119. </p>
  1120. <div class="tabular"><table class="tabular"
  1121. cellspacing="0" cellpadding="0" rules="groups"
  1122. ><colgroup id="TBL-3-1g"><col
  1123. id="TBL-3-1" /></colgroup><colgroup id="TBL-3-2g"><col
  1124. id="TBL-3-2" /></colgroup><colgroup id="TBL-3-3g"><col
  1125. id="TBL-3-3" /></colgroup><tr
  1126. style="vertical-align:baseline;" id="TBL-3-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-1-1"
  1127. class="td11">Account </td><td style="white-space:nowrap; text-align:right;" id="TBL-3-1-2"
  1128. class="td11">Debit</td><td style="white-space:nowrap; text-align:right;" id="TBL-3-1-3"
  1129. class="td11">Credit</td>
  1130. </tr><tr
  1131. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  1132. style="vertical-align:baseline;" id="TBL-3-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-2-1"
  1133. class="td11">5760 Rent </td><td style="white-space:nowrap; text-align:right;" id="TBL-3-2-2"
  1134. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-3-2-3"
  1135. class="td11"> $200</td>
  1136. </tr><tr
  1137. style="vertical-align:baseline;" id="TBL-3-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-3-1"
  1138. class="td11">2100 Accounts Payable</td><td style="white-space:nowrap; text-align:right;" id="TBL-3-3-2"
  1139. class="td11"> $200</td><td style="white-space:nowrap; text-align:right;" id="TBL-3-3-3"
  1140. class="td11"> </td>
  1141. </tr><tr
  1142. style="vertical-align:baseline;" id="TBL-3-4-"><td style="white-space:nowrap; text-align:left;" id="TBL-3-4-1"
  1143. class="td11"> </td> </tr></table>
  1144. </div>
  1145. <!--l. 593--><p class="indent"> This would be followed by re-entering the rent data with the correct numbers. This was meant to ensure
  1146. that one did not erase data from the accounting books (and as such that erasing data would be a sign of foul
  1147. play).
  1148. </p><!--l. 598--><p class="indent"> LedgerSMB has a capability to require such reversals if the business deems this to be necessary. When
  1149. this option is enabled, existing transactions cannot be modified and one will need to post reversing
  1150. transactions to void existing transactions before posting corrected ones.
  1151. </p><!--l. 604--><p class="indent"> Most accountants prefer this means to other audit trails because it is well proven and understood by
  1152. them.
  1153. </p><!--l. 608--><p class="noindent">
  1154. </p>
  1155. <h5 class="subsubsectionHead"><span class="titlemark">4.2.2 </span> <a
  1156. id="x1-360004.2.2"></a>Close books option</h5>
  1157. <!--l. 610--><p class="noindent">You cannot alter a transaction that was entered before the closing date.
  1158. </p><!--l. 613--><p class="noindent">
  1159. </p>
  1160. <h5 class="subsubsectionHead"><span class="titlemark">4.2.3 </span> <a
  1161. id="x1-370004.2.3"></a>Audit Trails</h5>
  1162. <!--l. 615--><p class="noindent">This option stores additional information in the database to help auditors trace individual transactions. The
  1163. information stored, however, is limited and it is intended to be supplemental to other auditing
  1164. facilities.
  1165. </p><!--l. 620--><p class="indent"> The information added includes which table stored the record, which employee entered the
  1166. information, which form was used, and what the action was. No direct financial information is
  1167. included.
  1168. </p><!--l. 625--><p class="noindent">
  1169. </p>
  1170. <h4 class="subsectionHead"><span class="titlemark">4.3 </span> <a
  1171. id="x1-380004.3"></a>Departments</h4>
  1172. <!--l. 627--><p class="noindent">Departments are logical divisions of a business. They allow for budgets to be prepared for the individual
  1173. department as well as the business as a whole. This allows larger businesses to use LedgerSMB to meet their
  1174. needs.
  1175. </p><!--l. 633--><p class="noindent">
  1176. </p>
  1177. <h5 class="subsubsectionHead"><span class="titlemark">4.3.1 </span> <a
  1178. id="x1-390004.3.1"></a>Cost v Profit Centers.</h5>
  1179. <!--l. 635--><p class="noindent">In general business units are divided into cost and profit centers. Cost centers are generally regarded as
  1180. business units where the business expects to lose money and profit centers are where they expect to gain
  1181. money. For example, the legal department in most companies is a cost center.
  1182. </p><!--l. 641--><p class="indent"> One of the serious misunderstandings people run up against is that LedgerSMB tends to more narrowly
  1183. define cost and profit centers than most businesses do. In LedgerSMB a cost center is any department of the
  1184. business that does not issue AR transactions. Although many businesses may have cost centers (like
  1185. technical support) where customer fees may subsidize the cost of providing the service, in LedgerSMB, these
  1186. are profit centers.
  1187. </p><!--l. 649--><p class="indent"> LedgerSMB will not allow cost centers to be associated with AR transactions. So if you want this
  1188. functionality, you must create the department as a profit center.
  1189. </p><!--l. 654--><p class="noindent">
  1190. </p>
  1191. <h4 class="subsectionHead"><span class="titlemark">4.4 </span> <a
  1192. id="x1-400004.4"></a>Warehouses</h4>
  1193. <!--l. 656--><p class="noindent">LedgerSMB has the ability to track inventory by warehouse. Inventory items can be moved between
  1194. warehouses, and shipped from any warehouse where the item is in stock. We will explore this concept more
  1195. later.
  1196. </p><!--l. 661--><p class="noindent">
  1197. </p>
  1198. <h4 class="subsectionHead"><span class="titlemark">4.5 </span> <a
  1199. id="x1-410004.5"></a>Languages</h4>
  1200. <!--l. 663--><p class="noindent">Languages allow for goods and services to be translated so that one can maintain offices in different
  1201. countries and allow for different goods and service descriptions to be translated to different languages for
  1202. localization purposes.
  1203. </p><!--l. 669--><p class="noindent">
  1204. </p>
  1205. <h4 class="subsectionHead"><span class="titlemark">4.6 </span> <a
  1206. id="x1-420004.6"></a>Types of Businesses</h4>
  1207. <!--l. 671--><p class="noindent">One can create types of businesses and then give them discounts across the board. For example, one might
  1208. give a firm that uses one&#8217;s services as a subcontractor a 10% discount or more.
  1209. </p><!--l. 676--><p class="noindent">
  1210. </p>
  1211. <h4 class="subsectionHead"><span class="titlemark">4.7 </span> <a
  1212. id="x1-430004.7"></a>Misc.</h4>
  1213. <!--l. 679--><p class="noindent">
  1214. </p>
  1215. <h5 class="subsubsectionHead"><span class="titlemark">4.7.1 </span> <a
  1216. id="x1-440004.7.1"></a>GIFI</h5>
  1217. <!--l. 681--><p class="noindent">GIFI is a requirement for Canadian customers. This feature allows one to link accounts with
  1218. Canadian tax codes to simplify the reporting process. Some European countries now use a similar
  1219. system.
  1220. </p><!--l. 685--><p class="indent"> People that don&#8217;t otherwise have a use for GIFI can use it to create reports which agregate accounts
  1221. together.
  1222. </p><!--l. 688--><p class="noindent">
  1223. </p>
  1224. <h5 class="subsubsectionHead"><span class="titlemark">4.7.2 </span> <a
  1225. id="x1-450004.7.2"></a>SIC</h5>
  1226. <!--l. 690--><p class="noindent">Standard Industrial Classification is a way of tracking the type of business that a vendor or customer is in.
  1227. For example, an accountant would have an SIC of 8721 while a graphic design firm would have an SIC of
  1228. 7336. The classification is hierarchical so one could use this field for custom reporting and marketing
  1229. purposes.
  1230. </p><!--l. 697--><p class="noindent">
  1231. </p>
  1232. <h5 class="subsubsectionHead"><span class="titlemark">4.7.3 </span> <a
  1233. id="x1-460004.7.3"></a>Overview of Template Editing</h5>
  1234. <!--l. 699--><p class="noindent">The templates for invoices, orders, and the like can be edited from within LedgerSMB. The submenus within
  1235. the System submenu such as HTML Templates, Text Templates and <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  1236. class="E">E</span>X</span></span> templates provide access to this
  1237. functionality.
  1238. </p><!--l. 705--><p class="noindent">
  1239. </p>
  1240. <h5 class="subsubsectionHead"><span class="titlemark">4.7.4 </span> <a
  1241. id="x1-470004.7.4"></a>Year-end</h5>
  1242. <!--l. 707--><p class="noindent">Although the Year-end functionality in LedgerSMB is very useful, it does not entirely make the process
  1243. simple and painless. One must still manually enter adjustments prior to closing the books. The extent to
  1244. which these adjustments are necessary for any given business is a matter best discussed with an
  1245. accountant.
  1246. </p><!--l. 713--><p class="indent"> The standard way books are normally closed at the end of the year is by moving all
  1247. adjusted<span class="footnote-mark"><a
  1248. href="LedgerSMB-manual2.html#fn1x0"><sup class="textsuperscript">1</sup></a></span><a
  1249. id="x1-47001f1"></a>
  1250. income and expenses to an equity account usually called "Retained Earnings." Assets and liabilities are not
  1251. moved. Equity drawing/dividend accounts are also moved, but the investment accounts are not. The
  1252. reasoning behind this process is that one wants a permanent record of the amount invested in a business, but
  1253. any dividends ought not to count against their recipients when new investors are brought on
  1254. board.
  1255. </p><!--l. 725--><p class="indent"> LedgerSMB automatically moves all income and expense into the specified year-end/retained earnings
  1256. account. It does not move the drawing account, and this must be done manually, nor does it automate the
  1257. process of making adjustments.
  1258. </p><!--l. 730--><p class="indent"> Contrary to its name, this function can close the books at any time, though this would likely be of limited
  1259. use.
  1260. </p>
  1261. <h4 class="subsectionHead"><span class="titlemark">4.8 </span> <a
  1262. id="x1-480004.8"></a>Options in the ledgersmb.conf</h4>
  1263. <!--l. 736--><p class="noindent">The ledgersmb.conf configures the software by assigning site-wide variables. Most of these should be left
  1264. alone unless one knows what one is doing. However, on some systems some options might need to be
  1265. changed, so all options are presented here for reference:
  1266. </p><!--l. 741--><p class="indent">
  1267. </p><dl class="description"><dt class="description">
  1268. <span
  1269. class="pplb8t-">templates</span> </dt><dd
  1270. class="description">is the directory where the templates are stored.
  1271. </dd><dt class="description">
  1272. <span
  1273. class="pplb8t-">sendmail</span> </dt><dd
  1274. class="description">is the command to use to send a message. It must read the email from standard input.
  1275. </dd><dt class="description">
  1276. <span
  1277. class="pplb8t-">language</span> </dt><dd
  1278. class="description">allows one to set the language for the login screen and admin page.
  1279. </dd><dt class="description">
  1280. <span
  1281. class="pplb8t-">latex</span> </dt><dd
  1282. class="description">tells LedgerSMB whether <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  1283. class="E">E</span>X</span></span> is installed. <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  1284. class="E">E</span>X</span></span> is required for generating Postscript and
  1285. PDF invoices and the like.
  1286. </dd><dt class="description">
  1287. <span
  1288. class="pplb8t-">Environmental variables</span> </dt><dd
  1289. class="description">can be set here too. One can add paths for searching for <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  1290. class="E">E</span>X</span></span>, etc.
  1291. </dd><dt class="description">
  1292. <span
  1293. class="pplb8t-">Printers</span> </dt><dd
  1294. class="description">section can be used to set a hash table of printers for the software. The primary example is
  1295. <br class="newline" /><span
  1296. class="cmr-10">[</span>printers<span
  1297. class="cmr-10">]</span>
  1298. <br class="newline" />Default = lpr
  1299. <br class="newline" />Color = lpr -PEpson
  1300. <br class="newline" />However, this can use any program that can accept print documents (in Postscript) from
  1301. standard input, so there are many more possibilities.</dd></dl>
  1302. <!--l. 761--><p class="noindent">
  1303. </p>
  1304. <h3 class="sectionHead"><span class="titlemark">5 </span> <a
  1305. id="x1-490005"></a>Goods and Services</h3>
  1306. <!--l. 763--><p class="noindent">The Goods and Services module will focus on the definition of goods and services and the related accounting
  1307. concepts.
  1308. </p><!--l. 767--><p class="noindent">
  1309. </p>
  1310. <h4 class="subsectionHead"><span class="titlemark">5.1 </span> <a
  1311. id="x1-500005.1"></a>Basic Terms</h4>
  1312. <!--l. 769--><p class="noindent">
  1313. </p><dl class="description"><dt class="description">
  1314. <span
  1315. class="pplb8t-">COGS</span> </dt><dd
  1316. class="description">is Cost of Goods Sold. When an item is sold, then the expense of its purchase is accrued as
  1317. attached to the income of the sale.
  1318. </dd><dt class="description">
  1319. <span
  1320. class="pplb8t-">List</span> </dt><dd
  1321. class="description">Price is the recommended retail price.
  1322. </dd><dt class="description">
  1323. <span
  1324. class="pplb8t-">Markup</span> </dt><dd
  1325. class="description">is the percentage increase that is applied to the last cost to get the sell price.
  1326. </dd><dt class="description">
  1327. <span
  1328. class="pplb8t-">ROP</span> </dt><dd
  1329. class="description">is re-order point. Items with fewer in stock than this will show up on short reports.
  1330. </dd><dt class="description">
  1331. <span
  1332. class="pplb8t-">Sell</span> </dt><dd
  1333. class="description">Price is the price at which the item is sold.</dd></dl>
  1334. <!--l. 780--><p class="noindent">
  1335. </p>
  1336. <h4 class="subsectionHead"><span class="titlemark">5.2 </span> <a
  1337. id="x1-510005.2"></a>The Price Matrix</h4>
  1338. <!--l. 782--><p class="noindent">It is possible to set different prices for different groups of customers, or for different customers individually.
  1339. Similarly, one can track different prices from different vendors along with the required lead time for an
  1340. order.
  1341. </p><!--l. 788--><p class="noindent">
  1342. </p>
  1343. <h4 class="subsectionHead"><span class="titlemark">5.3 </span> <a
  1344. id="x1-520005.3"></a>Pricegroups</h4>
  1345. <!--l. 790--><p class="noindent">Pricegroups are used to help determine the discount a given customer may have.
  1346. </p><!--l. 794--><p class="noindent">
  1347. </p>
  1348. <h4 class="subsectionHead"><span class="titlemark">5.4 </span> <a
  1349. id="x1-530005.4"></a>Groups</h4>
  1350. <!--l. 796--><p class="noindent">Groups represent a way of categorizing POS items for a touchscreen environment. It is not fully functional
  1351. yet, but is sufficient that with some stylesheet changes, it could be made to work.
  1352. </p><!--l. 801--><p class="noindent">
  1353. </p>
  1354. <h4 class="subsectionHead"><span class="titlemark">5.5 </span> <a
  1355. id="x1-540005.5"></a>Labor/Overhead</h4>
  1356. <!--l. 803--><p class="noindent">Labor/overhead is usually used for tracking manufacturing expenses. It is not directly billed to a customer. It
  1357. is associated with an expense/Cost of Goods Sold (COGS) account.
  1358. </p><!--l. 808--><p class="noindent">
  1359. </p>
  1360. <h4 class="subsectionHead"><span class="titlemark">5.6 </span> <a
  1361. id="x1-550005.6"></a>Services</h4>
  1362. <!--l. 810--><p class="noindent">Services include any labor that is billed directly to the customer. It is associated with an expense/COGS
  1363. account and an income account. Services can be associated with sales tax.
  1364. </p><!--l. 815--><p class="noindent">
  1365. </p>
  1366. <h5 class="subsubsectionHead"><span class="titlemark">5.6.1 </span> <a
  1367. id="x1-560005.6.1"></a>Shipping and Handling as a Service</h5>
  1368. <!--l. 817--><p class="noindent">One approach to dealing with shipping and handling is to add it as a service. Create a service called
  1369. &#8220;Shipping and Handling&#8221;, with a sell price $1 per unit, and a 0% markup. Bill it as $1 per unit. This allows
  1370. one to add the exact amount of shipping and handling as necessary.
  1371. </p><!--l. 824--><p class="noindent">
  1372. </p>
  1373. <h4 class="subsectionHead"><span class="titlemark">5.7 </span> <a
  1374. id="x1-570005.7"></a>Parts</h4>
  1375. <!--l. 826--><p class="noindent">A part is any single item you might purchase and either might resell or use in manufacturing an assembly. It
  1376. is linked to an expense/COGS account, an income account, and an inventory account. Parts can be associated
  1377. with sales tax.
  1378. </p><!--l. 832--><p class="noindent">
  1379. </p>
  1380. <h4 class="subsectionHead"><span class="titlemark">5.8 </span> <a
  1381. id="x1-580005.8"></a>Assemblies and Manufacturing</h4>
  1382. <!--l. 834--><p class="noindent">Manufacturers order parts but they sell the products of their efforts. LedgerSMB supports manufacturing
  1383. using the concept of assemblies. An assembly is any product which is manufactured on site. It consists of a
  1384. selection of parts, services, and/or labor and overhead. Assemblies are treated as parts in most other
  1385. regards.
  1386. </p><!--l. 840--><p class="indent"> However, one cannot order assemblies from vendors. One must instead order the components and stock
  1387. them once they are manufactured.
  1388. </p><!--l. 844--><p class="noindent">
  1389. </p>
  1390. <h5 class="subsubsectionHead"><span class="titlemark">5.8.1 </span> <a
  1391. id="x1-590005.8.1"></a>Stocking Assemblies</h5>
  1392. <!--l. 846--><p class="noindent">One stocks assemblies in the Stock Assembly entry on the Goods and Services submenu. When an assembly
  1393. is stocked the inventory is adjusted properly.
  1394. </p><!--l. 850--><p class="indent"> The Check Inventory option will cause LedgerSMB to refuse to stock an assembly if the inventory
  1395. required to produce the assembly would drop the part below the reorder point.
  1396. </p><!--l. 855--><p class="noindent">
  1397. </p>
  1398. <h4 class="subsectionHead"><span class="titlemark">5.9 </span> <a
  1399. id="x1-600005.9"></a>Reporting</h4>
  1400. <!--l. 858--><p class="noindent">
  1401. </p>
  1402. <h5 class="subsubsectionHead"><span class="titlemark">5.9.1 </span> <a
  1403. id="x1-610005.9.1"></a>All Items and Parts Reports</h5>
  1404. <!--l. 860--><p class="noindent">The All Items report provides a unified view of assemblies, parts, services, and labor for the company, while
  1405. the Parts report confines it to parts.
  1406. </p><!--l. 863--><p class="indent"> Types of reports are:
  1407. </p><!--l. 865--><p class="indent">
  1408. </p><dl class="description"><dt class="description">
  1409. <span
  1410. class="pplb8t-">Active</span> </dt><dd
  1411. class="description">lists all items not marked as obsolete.
  1412. </dd><dt class="description">
  1413. <span
  1414. class="pplb8t-">On</span> </dt><dd
  1415. class="description">Hand lists current inventory .
  1416. </dd><dt class="description">
  1417. <span
  1418. class="pplb8t-">Short</span> </dt><dd
  1419. class="description">Lists all items which are stocked below their ROP.
  1420. </dd><dt class="description">
  1421. <span
  1422. class="pplb8t-">Obsolete</span> </dt><dd
  1423. class="description">Lists all items which are marked as obsolete.
  1424. </dd><dt class="description">
  1425. <span
  1426. class="pplb8t-">Orphaned</span> </dt><dd
  1427. class="description">Lists all items which have never had a transaction associated with them.</dd></dl>
  1428. <!--l. 873--><p class="noindent">One can also list these goods by invoice, order, or quotation.
  1429. </p><!--l. 875--><p class="indent"> For best results, it is a good idea to enter some AR and AP data before running these reports.
  1430. </p><!--l. 879--><p class="noindent">
  1431. </p>
  1432. <h5 class="subsubsectionHead"><span class="titlemark">5.9.2 </span> <a
  1433. id="x1-620005.9.2"></a>Requirements</h5>
  1434. <!--l. 881--><p class="noindent">This report is designed to assist managers determine the quantities of goods to order and/or stock. It
  1435. compares the quantity on hand with the activity in a given time frame and provides a list of goods which
  1436. need to be ordered and the relevant quantity.
  1437. </p><!--l. 887--><p class="noindent">
  1438. </p>
  1439. <h5 class="subsubsectionHead"><span class="titlemark">5.9.3 </span> <a
  1440. id="x1-630005.9.3"></a>Services and Labor</h5>
  1441. <!--l. 889--><p class="noindent">This is similar to the Parts and All Items menu but only supports Active, Obsolete, and Orphaned
  1442. reports.
  1443. </p><!--l. 893--><p class="noindent">
  1444. </p>
  1445. <h5 class="subsubsectionHead"><span class="titlemark">5.9.4 </span> <a
  1446. id="x1-640005.9.4"></a>Assemblies</h5>
  1447. <!--l. 895--><p class="noindent">This is similar to the Parts and All Items reports but it also provides an ability to list individual items in the
  1448. assemblies as well.
  1449. </p><!--l. 898--><p class="indent"> AP Invoices, Purchase Orders, and RFQ&#8217;s are not available on this report.
  1450. </p><!--l. 902--><p class="noindent">
  1451. </p>
  1452. <h5 class="subsubsectionHead"><span class="titlemark">5.9.5 </span> <a
  1453. id="x1-650005.9.5"></a>Groups and Pricegroups</h5>
  1454. <!--l. 904--><p class="noindent">These reports provide a simple interface for locating groups and pricegroups. The report types are similar to
  1455. what they are for services.
  1456. </p><!--l. 908--><p class="noindent">
  1457. </p>
  1458. <h4 class="subsectionHead"><span class="titlemark">5.10 </span> <a
  1459. id="x1-660005.10"></a>Translations</h4>
  1460. <!--l. 910--><p class="noindent">One can add translations so that they show up in the customer&#8217;s native language in the issued
  1461. invoice.
  1462. </p><!--l. 913--><p class="indent"> To issue translations, one must have languages defined. One can then add translations to descriptions and
  1463. part groups.
  1464. </p><!--l. 917--><p class="noindent">
  1465. </p>
  1466. <h4 class="subsectionHead"><span class="titlemark">5.11 </span> <a
  1467. id="x1-670005.11"></a>How Cost of Goods Sold is tracked</h4>
  1468. <!--l. 919--><p class="noindent">Cost of Goods Sold is tracked on a First-In, First-out (FIFO) basis. When a part is purchased, its cost is
  1469. recorded in the database. The cost of the item is then added to the inventory asset account. When the good is
  1470. sold, the cost of the item is moved to the cost of goods sold account.
  1471. </p><!--l. 925--><p class="indent"> This means that one must actually provide invoices for all goods entered at their actual cost. If one enters
  1472. in $0 for the cost, the cost of goods sold will also be $0 when the item is sold. We will cover this entire process
  1473. in more depth after we cover the AP and AR units below.
  1474. </p><!--l. 932--><p class="noindent">
  1475. </p>
  1476. <h3 class="sectionHead"><span class="titlemark">6 </span> <a
  1477. id="x1-680006"></a>AP</h3>
  1478. <!--l. 935--><p class="noindent">
  1479. </p>
  1480. <h4 class="subsectionHead"><span class="titlemark">6.1 </span> <a
  1481. id="x1-690006.1"></a>Basic AP Concepts</h4>
  1482. <!--l. 937--><p class="noindent">The Accounts Payable module tracks all financial commitments that the company makes to other businesses.
  1483. This includes rent, utilities, etc. as well as orders of goods and services.
  1484. </p><!--l. 942--><p class="noindent">
  1485. </p>
  1486. <h4 class="subsectionHead"><span class="titlemark">6.2 </span> <a
  1487. id="x1-700006.2"></a>Vendors</h4>
  1488. <!--l. 944--><p class="noindent">A vendor is any business that the company agrees to pay money to.
  1489. </p><!--l. 946--><p class="indent"> One can enter vendor information under AP-&#x003E;Vendors-&#x003E;Add Vendor. The vendor list can be searched
  1490. under AP-&#x003E;Vendors-&#x003E;Reports-&#x003E;Search.
  1491. </p><!--l. 950--><p class="indent"> Enter start and end-dates for each vendor. This will make searches and drop-down boxes faster when
  1492. some vendors are no longer actively supporting your company.
  1493. </p><!--l. 954--><p class="indent"> A few fields that need explanation are:
  1494. </p><!--l. 956--><p class="indent">
  1495. </p><dl class="description"><dt class="description">
  1496. <span
  1497. class="pplb8t-">BIC</span> </dt><dd
  1498. class="description">Bank Identifier Code is often the same as the S.W.I.F.T. code. This is a code for the bank a
  1499. customer uses for automated money transfers.
  1500. </dd><dt class="description">
  1501. <span
  1502. class="pplb8t-">IBAN</span> </dt><dd
  1503. class="description">International Bank Account Number is related to the BIC and is used for cross-border
  1504. automated money transfers.
  1505. </dd><dt class="description">
  1506. <span
  1507. class="pplb8t-">Terms</span> </dt><dd
  1508. class="description">is the number of days one has to pay the invoice.
  1509. </dd><dt class="description">
  1510. <span
  1511. class="pplb8t-">Vendor</span> </dt><dd
  1512. class="description">Number is automatically generated.</dd></dl>
  1513. <!--l. 966--><p class="noindent">
  1514. </p>
  1515. <h4 class="subsectionHead"><span class="titlemark">6.3 </span> <a
  1516. id="x1-710006.3"></a>AP Transactions</h4>
  1517. <!--l. 968--><p class="noindent">AP Transactions are generally used for items other than goods and services. Utilities, rent, travel expenses,
  1518. etc. could be entered in as an AP transaction.
  1519. </p><!--l. 972--><p class="indent"> If the item is paid partially or in full when the transaction is entered, one can add payments to the
  1520. payment section.
  1521. </p><!--l. 975--><p class="indent"> All other payments can and should be entered under cash payment (below).
  1522. </p><!--l. 977--><p class="indent"> The PO Number and Order Number fields are generally used to track associations with purchase orders
  1523. sent to vendors, etc. These fields can be helpful for adding misc. expenses to orders for reporting
  1524. purposes.
  1525. </p><!--l. 981--><p class="indent"> The department drop-down box appears when one has created one or more departments. A
  1526. transaction is not required to be associated with a department, but one can use this feature for budget
  1527. tracking.
  1528. </p><!--l. 985--><p class="indent"> With AP Transactions, there is no option for internal notes. All notes will appear on any printed version of
  1529. the transaction.
  1530. </p><!--l. 988--><p class="indent"> Note: Printing a transaction does not post it. No data is committed until the invoice is posted.
  1531. </p><!--l. 992--><p class="noindent">
  1532. </p>
  1533. <h4 class="subsectionHead"><span class="titlemark">6.4 </span> <a
  1534. id="x1-720006.4"></a>AP Invoices</h4>
  1535. <!--l. 994--><p class="noindent">AP Invoices are used to enter in the receipt of goods and services. Goods and services are deemed entered
  1536. into the inventory when they are invoiced.
  1537. </p><!--l. 998--><p class="indent"> This screen is reasonably similar to the AP Transaction Screen, though the part entry section is a bit
  1538. different.
  1539. </p><!--l. 1001--><p class="indent"> The AP Invoice section has a capacity to separate internal notes from notes printed on the invoice. Note,
  1540. however, that since these are received invoices, it is rare that one needs this ability.
  1541. </p><!--l. 1005--><p class="indent"> Note that LedgerSMB can search for partial part numbers or descriptions.
  1542. </p><!--l. 1007--><p class="indent"> Also if you have a group you can use this to select the part.
  1543. </p><!--l. 1009--><p class="indent"> To remove a line item from an invoice or order, delete the partnumber and click update.
  1544. </p><!--l. 1013--><p class="noindent">
  1545. </p>
  1546. <h5 class="subsubsectionHead"><span class="titlemark">6.4.1 </span> <a
  1547. id="x1-730006.4.1"></a>Correcting an AP Invoice</h5>
  1548. <!--l. 1015--><p class="noindent">If an invoice is entered improperly, the methods used to correct it will vary depending on whether
  1549. transaction reversal is enforced or not. If transaction reversal is not enforced, one can simply correct the
  1550. invoice or transaction and repost. Note, however, that this violates generally accepted accounting
  1551. principles.
  1552. </p><!--l. 1021--><p class="indent"> If transaction reversal is in effect, one needs to create a duplicate invoice with exactly opposite values
  1553. entered. If one part was listed as received, then one should enter a negative one for the quantity. Then one
  1554. can enter the invoice number as the same as the old one. Add an R to the end to show that it is a reversing
  1555. transaction. Once this is posted, one can enter the invoice correctly.
  1556. </p><!--l. 1029--><p class="noindent">
  1557. </p>
  1558. <h4 class="subsectionHead"><span class="titlemark">6.5 </span> <a
  1559. id="x1-740006.5"></a>Cash payment And Check Printing</h4>
  1560. <!--l. 1031--><p class="noindent">It is a bad idea to repost invoices/transactions just to enter a payment. The Cash-&#x003E;Payment window allows
  1561. one to enter payments against AP invoices or transactions.
  1562. </p><!--l. 1035--><p class="indent"> The printing capability can be used to print checks. The default template is NEBS 9085, though you can
  1563. use 9082 as well (as Quickbooks does).
  1564. </p><!--l. 1038--><p class="indent"> The source field is used to store an identifying number of the source document, such as the check
  1565. number. One must select the item to have it paid, and then enter the amount. One can then print a
  1566. check.
  1567. </p><!--l. 1043--><p class="noindent">
  1568. </p>
  1569. <h5 class="subsubsectionHead"><span class="titlemark">6.5.1 </span> <a
  1570. id="x1-750006.5.1"></a>Rapid Payment Entry Screen</h5>
  1571. <!--l. 1045--><p class="noindent">One can also use the rapid payment entry screen to print multiple checks. However, this does not allow you
  1572. to print the multiple checks to the screen as a separate document is created for each check. In this event, one
  1573. must print directly to a printer as postscript.
  1574. </p><!--l. 1051--><p class="noindent">
  1575. </p>
  1576. <h4 class="subsectionHead"><span class="titlemark">6.6 </span> <a
  1577. id="x1-760006.6"></a>Transaction/Invoice Reporting</h4>
  1578. <!--l. 1054--><p class="noindent">
  1579. </p>
  1580. <h5 class="subsubsectionHead"><span class="titlemark">6.6.1 </span> <a
  1581. id="x1-770006.6.1"></a>Transactions Report</h5>
  1582. <!--l. 1056--><p class="noindent">This report is designed to help you locate AP transactions based on various criteria. One can
  1583. search by vendor, invoice number, department, and the like. One can even search by the shipping
  1584. method.
  1585. </p><!--l. 1060--><p class="indent"> The summary button will show what was placed where, while the details button will show all debits and
  1586. credits associated with the transaction.
  1587. </p><!--l. 1063--><p class="indent"> To view the invoice, click on the invoice number. In the detail view, to view the account transactions as a
  1588. whole, click on the account number.
  1589. </p><!--l. 1067--><p class="indent"> Open invoices are ones not fully paid off, while closed invoices are those that have been
  1590. paid.
  1591. </p><!--l. 1071--><p class="noindent">
  1592. </p>
  1593. <h5 class="subsubsectionHead"><span class="titlemark">6.6.2 </span> <a
  1594. id="x1-780006.6.2"></a>Outstanding Report</h5>
  1595. <!--l. 1073--><p class="noindent">The outstanding report is designed to help you locate AP transactions that are not paid yet. The
  1596. ID field is mostly useful for locating the specific database record if a duplicate invoice number
  1597. exists.
  1598. </p><!--l. 1078--><p class="noindent">
  1599. </p>
  1600. <h5 class="subsubsectionHead"><span class="titlemark">6.6.3 </span> <a
  1601. id="x1-790006.6.3"></a>AP Aging Report</h5>
  1602. <!--l. 1080--><p class="noindent">This report can tell you how many invoices are past due and by how much.
  1603. </p><!--l. 1083--><p class="indent"> A summary report just shows vendors while a detail report shows individual invoices.
  1604. </p><!--l. 1087--><p class="noindent">
  1605. </p>
  1606. <h5 class="subsubsectionHead"><span class="titlemark">6.6.4 </span> <a
  1607. id="x1-800006.6.4"></a>Tax Paid and Non-taxable Report</h5>
  1608. <!--l. 1089--><p class="noindent">These reports have known issues. It is better to use the GL reports and filter accordingly.
  1609. </p><!--l. 1092--><p class="noindent">
  1610. </p>
  1611. <h4 class="subsectionHead"><span class="titlemark">6.7 </span> <a
  1612. id="x1-810006.7"></a>Vendor Reporting</h4>
  1613. <!--l. 1095--><p class="noindent">
  1614. </p>
  1615. <h5 class="subsubsectionHead"><span class="titlemark">6.7.1 </span> <a
  1616. id="x1-820006.7.1"></a>Vendor Search</h5>
  1617. <!--l. 1097--><p class="noindent">The Vendor Search screen can be used to locate vendors or AP transactions associated with those
  1618. vendors.
  1619. </p><!--l. 1100--><p class="indent"> The basic types of reports are:
  1620. </p><!--l. 1102--><p class="indent">
  1621. </p><dl class="description"><dt class="description">
  1622. <span
  1623. class="pplb8t-">All</span> </dt><dd
  1624. class="description">Lists all vendors
  1625. </dd><dt class="description">
  1626. <span
  1627. class="pplb8t-">Active</span> </dt><dd
  1628. class="description">Lists those vendors currently active
  1629. </dd><dt class="description">
  1630. <span
  1631. class="pplb8t-">Inactive</span> </dt><dd
  1632. class="description">Lists those vendors who are currently inactive. time frame.
  1633. </dd><dt class="description">
  1634. <span
  1635. class="pplb8t-">Orphaned</span> </dt><dd
  1636. class="description">Lists those vendors who do not have transactions associated with them. These vendors
  1637. can be deleted.</dd></dl>
  1638. <!--l. 1110--><p class="noindent">One can include purchase orders, Requests for Quotations, AP invoices, and AP transactions on this report as
  1639. well if they occur between the from and to dates.
  1640. </p><!--l. 1115--><p class="noindent">
  1641. </p>
  1642. <h5 class="subsubsectionHead"><span class="titlemark">6.7.2 </span> <a
  1643. id="x1-830006.7.2"></a>Vendor History</h5>
  1644. <!--l. 1117--><p class="noindent">This report can be used to obtain information about the past goods and services ordered or received from
  1645. vendors. One can find quantities, partnumber, and sell prices on this report. This facility can be used to
  1646. search RFQ&#8217;s, Purchase Orders, and AP Invoices.
  1647. </p><!--l. 1123--><p class="noindent">
  1648. </p>
  1649. <h3 class="sectionHead"><span class="titlemark">7 </span> <a
  1650. id="x1-840007"></a>AR</h3>
  1651. <!--l. 1126--><p class="noindent">
  1652. </p>
  1653. <h4 class="subsectionHead"><span class="titlemark">7.1 </span> <a
  1654. id="x1-850007.1"></a>Customers</h4>
  1655. <!--l. 1128--><p class="noindent">Customers are entered in using the AR-&#x003E;Customers-&#x003E;Add Customer menu.
  1656. </p><!--l. 1131--><p class="indent"> The salesperson is autopopulated with the current user who is logged in. Otherwise, it looks fairly similar
  1657. to the Vendor input screen. Customers, like vendors can be assigned languages, but it is more important to
  1658. do so because invoices will be printed and sent to them.
  1659. </p><!--l. 1136--><p class="indent"> The credit limit field can be used to assign an amount that one is willing to do for a customer on
  1660. credit.
  1661. </p><!--l. 1140--><p class="noindent">
  1662. </p>
  1663. <h5 class="subsubsectionHead"><span class="titlemark">7.1.1 </span> <a
  1664. id="x1-860007.1.1"></a>Customer Price Matrix</h5>
  1665. <!--l. 1142--><p class="noindent">The price list button can be used to enter specific discounts to the customer, and groups of customers can be
  1666. assigned a pricegroup for the purpose of offering specific discounts on specific parts to the customer. Such
  1667. discounts can be temporary or permanent.
  1668. </p><!--l. 1148--><p class="noindent">
  1669. </p>
  1670. <h4 class="subsectionHead"><span class="titlemark">7.2 </span> <a
  1671. id="x1-870007.2"></a>AR Transactions</h4>
  1672. <!--l. 1150--><p class="noindent">AR Transactions are where one can add moneys owed the business by customers. One can associate these
  1673. transactions with income accounts, and add payments if the item is paid when the invoice is
  1674. issued.
  1675. </p><!--l. 1154--><p class="indent"> The PO number field is used to track the PO that the customer sent. This makes it easier to find items
  1676. when a customer is asking for clarification on a bill, for example.
  1677. </p><!--l. 1159--><p class="noindent">
  1678. </p>
  1679. <h4 class="subsectionHead"><span class="titlemark">7.3 </span> <a
  1680. id="x1-880007.3"></a>AR Invoices</h4>
  1681. <!--l. 1161--><p class="noindent">AR Invoices are designed to provide for the delivery of goods and services to customers. One would
  1682. normally issue these invoices at the time when the everything has been done that is necessary to get paid by
  1683. the customer.
  1684. </p><!--l. 1166--><p class="indent"> As with AP invoices, one can search for matches to partial part numbers and descriptions, and enter
  1685. initial payments at this screen.
  1686. </p><!--l. 1170--><p class="noindent">
  1687. </p>
  1688. <h4 class="subsectionHead"><span class="titlemark">7.4 </span> <a
  1689. id="x1-890007.4"></a>Cash Receipt</h4>
  1690. <!--l. 1172--><p class="noindent">The Cash-&#x003E;Receipt screen allows you to accept prepayments from customers or pay single or multiple
  1691. invoices after they have been posted. One can print a receipt, however the current templates seem to be
  1692. based on check printing templates and so are unsuitable for this purpose. This presents a great opportunity
  1693. for improvement.
  1694. </p><!--l. 1179--><p class="noindent">
  1695. </p>
  1696. <h5 class="subsubsectionHead"><span class="titlemark">7.4.1 </span> <a
  1697. id="x1-900007.4.1"></a>Cash Receipts for multiple customers</h5>
  1698. <!--l. 1181--><p class="noindent">The cash-&#x003E;receipts screen allows you to accept payments on all open customer invoices of all
  1699. customers at once. One could print (directly to a printer only) all receipts to be sent out if this was
  1700. desired.
  1701. </p><!--l. 1187--><p class="noindent">
  1702. </p>
  1703. <h4 class="subsectionHead"><span class="titlemark">7.5 </span> <a
  1704. id="x1-910007.5"></a>AR Transaction Reporting</h4>
  1705. <!--l. 1189--><p class="noindent">The AR Outstanding report is almost identical to the AP Outstanding report and is not covered in any detail
  1706. in this document.
  1707. </p><!--l. 1193--><p class="noindent">
  1708. </p>
  1709. <h5 class="subsubsectionHead"><span class="titlemark">7.5.1 </span> <a
  1710. id="x1-920007.5.1"></a>AR Transactions Report</h5>
  1711. <!--l. 1195--><p class="noindent">This is almost identical to the AP Transactions Report.
  1712. </p><!--l. 1197--><p class="indent"> If a customer&#8217;s PO has been associated with this transaction, one can search under this field as
  1713. well.
  1714. </p><!--l. 1201--><p class="noindent">
  1715. </p>
  1716. <h5 class="subsubsectionHead"><span class="titlemark">7.5.2 </span> <a
  1717. id="x1-930007.5.2"></a>AR Aging Report</h5>
  1718. <!--l. 1203--><p class="noindent">This report is almost identical to the AP Aging report, with the exception that one can print up statements for
  1719. customer accounts that are overdue. One more application is to calculate interest based on balance owed so
  1720. that these can be entered as AR transactions associated with the customer.
  1721. </p><!--l. 1210--><p class="noindent">
  1722. </p>
  1723. <h4 class="subsectionHead"><span class="titlemark">7.6 </span> <a
  1724. id="x1-940007.6"></a>Customer Reporting</h4>
  1725. <!--l. 1212--><p class="noindent">These reports are almost identical to the AP Vendor reports and are not discussed in these notes.
  1726. </p><!--l. 1216--><p class="noindent">
  1727. </p>
  1728. <h3 class="sectionHead"><span class="titlemark">8 </span> <a
  1729. id="x1-950008"></a>Projects</h3>
  1730. <!--l. 1219--><p class="noindent">
  1731. </p>
  1732. <h4 class="subsectionHead"><span class="titlemark">8.1 </span> <a
  1733. id="x1-960008.1"></a>Project Basics</h4>
  1734. <!--l. 1221--><p class="noindent">A project is a logical collection of AR and AP transactions, orders, and the like that allow one to better
  1735. manage specific service or product offerings. LedgerSMB does not offer comprehensive project management
  1736. capabilities, and projects are only used here as they relate to accounting.
  1737. </p><!--l. 1226--><p class="indent"> One can also add translated descriptions to the project names as well.
  1738. </p><!--l. 1229--><p class="noindent">
  1739. </p>
  1740. <h4 class="subsectionHead"><span class="titlemark">8.2 </span> <a
  1741. id="x1-970008.2"></a>Timecards</h4>
  1742. <!--l. 1231--><p class="noindent">Timecards allow one to track time entered on specific services. These can then be used to generate invoices
  1743. for the time entered.
  1744. </p><!--l. 1234--><p class="indent"> The non-chargeable is the number of hours that are not billed on the invoice.
  1745. </p><!--l. 1237--><p class="indent"> One can then generate invoices based on this information.
  1746. </p><!--l. 1239--><p class="indent"> The project field is not optional.
  1747. </p><!--l. 1242--><p class="noindent">
  1748. </p>
  1749. <h4 class="subsectionHead"><span class="titlemark">8.3 </span> <a
  1750. id="x1-980008.3"></a>Projects and Invoices</h4>
  1751. <!--l. 1244--><p class="noindent">One can select the project id for line items of both AR and AP invoices. These will then be tracked against the
  1752. project itself.
  1753. </p><!--l. 1248--><p class="noindent">
  1754. </p>
  1755. <h4 class="subsectionHead"><span class="titlemark">8.4 </span> <a
  1756. id="x1-990008.4"></a>Reporting</h4>
  1757. <!--l. 1251--><p class="noindent">
  1758. </p>
  1759. <h5 class="subsubsectionHead"><span class="titlemark">8.4.1 </span> <a
  1760. id="x1-1000008.4.1"></a>Timecard Reporting</h5>
  1761. <!--l. 1253--><p class="noindent">The Timecard Report allows one to search for timecards associated with one or more projects. One can then
  1762. use the total time in issuing invoices (this is not automated yet).
  1763. </p><!--l. 1258--><p class="noindent">
  1764. </p>
  1765. <h5 class="subsubsectionHead"><span class="titlemark">8.4.2 </span> <a
  1766. id="x1-1010008.4.2"></a>Project Transaction Reporting</h5>
  1767. <!--l. 1260--><p class="noindent">The Standard or GIFI options can be used to create different reports (for example, for Canadian Tax reporting
  1768. purposes).
  1769. </p><!--l. 1263--><p class="indent"> This report brings up a summary that looks sort of like a chart of accounts. Of one clicks on the account
  1770. numbers, one can see the transactions associated with the project.
  1771. </p><!--l. 1268--><p class="noindent">
  1772. </p>
  1773. <h5 class="subsubsectionHead"><span class="titlemark">8.4.3 </span> <a
  1774. id="x1-1020008.4.3"></a>List of Projects</h5>
  1775. <!--l. 1270--><p class="noindent">This provides a simple way of searching for projects to edit or modify.
  1776. </p><!--l. 1273--><p class="noindent">
  1777. </p>
  1778. <h4 class="subsectionHead"><span class="titlemark">8.5 </span> <a
  1779. id="x1-1030008.5"></a>Possibilities for Using Projects</h4>
  1780. <ul class="itemize1">
  1781. <li class="itemize">One can use them similar to departments for tracking work done for a variety of customers.
  1782. </li>
  1783. <li class="itemize">One can use them for customer-specific projects, such as this training.</li></ul>
  1784. <!--l. 1281--><p class="noindent">
  1785. </p>
  1786. <h3 class="sectionHead"><span class="titlemark">9 </span> <a
  1787. id="x1-1040009"></a>Quotations and Order Management</h3>
  1788. <!--l. 1283--><p class="noindent">This unit will introduce the business processes that LedgerSMB allows. These processes are designed to
  1789. allow various types of businesses to manage their orders and allow for rudimentary customer
  1790. relationship management processes to be built around this software. In this section, we will
  1791. introduce the work flow options that many businesses may use in their day-to-day use of the
  1792. software.
  1793. </p><!--l. 1291--><p class="noindent">
  1794. </p>
  1795. <h4 class="subsectionHead"><span class="titlemark">9.1 </span> <a
  1796. id="x1-1050009.1"></a>Sales Orders</h4>
  1797. <!--l. 1293--><p class="noindent">Sales orders represent orders from customers that have not been delivered or shipped yet. These orders can
  1798. be for work in the future, for back ordered products, or work in progress. A sales order can be generated
  1799. form an AR invoice or from a quotation automatically.
  1800. </p><!--l. 1299--><p class="noindent">
  1801. </p>
  1802. <h4 class="subsectionHead"><span class="titlemark">9.2 </span> <a
  1803. id="x1-1060009.2"></a>Quotations</h4>
  1804. <!--l. 1301--><p class="noindent">Quotations are offers made to a customer but to which the customer has not committed to the work.
  1805. Quotations can be created from Sales orders or AR Invoice automatically.
  1806. </p><!--l. 1306--><p class="noindent">
  1807. </p>
  1808. <h4 class="subsectionHead"><span class="titlemark">9.3 </span> <a
  1809. id="x1-1070009.3"></a>Shipping</h4>
  1810. <!--l. 1308--><p class="noindent">The Shipping module (Shipping-&#x003E;Shipping) allows one to ship portions or entireties of existing sales orders,
  1811. printing pick lists and packing slips.
  1812. </p><!--l. 1312--><p class="indent"> One can then generate invoices for those parts that were shipped.
  1813. </p><!--l. 1314--><p class="indent"> In general, one will be more likely to use these features if they have multiple warehouses that they ship
  1814. from. More likely most customers will just generate invoices from orders.
  1815. </p><!--l. 1319--><p class="noindent">
  1816. </p>
  1817. <h4 class="subsectionHead"><span class="titlemark">9.4 </span> <a
  1818. id="x1-1080009.4"></a>AR Work Flow</h4>
  1819. <!--l. 1322--><p class="noindent">
  1820. </p>
  1821. <h5 class="subsubsectionHead"><span class="titlemark">9.4.1 </span> <a
  1822. id="x1-1090009.4.1"></a>Service Example</h5>
  1823. <!--l. 1324--><p class="noindent">A customer contacts your firm and asks for a quote on some services. Your company would create a
  1824. quotation for the job and email it to the customer or print it and mail it. Once the customer agrees to pay, one
  1825. creates a sales order from the quotation.
  1826. </p><!--l. 1329--><p class="indent"> When the work is completed, the sales order is converted into a sales invoice and this is presented to the
  1827. customer as a bill.
  1828. </p><!--l. 1332--><p class="indent"> Note that in some cases, this procedure may be shortened. If the customer places an order without
  1829. asking for a quotation and is offered a verbal quote, then one might merely prepare the sales
  1830. order.
  1831. </p>
  1832. <hr class="figure" /><div class="figure"
  1833. ><table class="figure"><tr class="figure"><td class="figure"
  1834. >
  1835. <a
  1836. id="x1-1090011"></a>
  1837. <br /><table class="caption"
  1838. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;1: </td><td
  1839. class="content">Simple AR Service Invoice Workflow Example</td></tr></table><!--tex4ht:label?: x1-1090011 -->
  1840. <!--l. 9--><p class="center"> <img
  1841. src="LedgerSMB-manual0x.png" alt="PICT" />
  1842. </p>
  1843. </td></tr></table></div><hr class="endfigure" />
  1844. <h5 class="subsubsectionHead"><span class="titlemark">9.4.2 </span> <a
  1845. id="x1-1100009.4.2"></a>Single Warehouse Example</h5>
  1846. <!--l. 1350--><p class="noindent">A customer contacts your firm and asks for a quotation for shipping a part. You would create the quotation
  1847. and when you get confirmation, convert it to an order. Once the parts are in place you could go to shipping
  1848. and ship the part.
  1849. </p><!--l. 1355--><p class="indent"> The billing department can then generate the invoice from the sales order based on what merchandise has
  1850. been shipped and mail it to the customer.
  1851. </p><!--l. 1359--><p class="indent"> Note that this requires that you have the part in your inventory.
  1852. </p>
  1853. <hr class="figure" /><div class="figure"
  1854. ><table class="figure"><tr class="figure"><td class="figure"
  1855. >
  1856. <a
  1857. id="x1-1100012"></a>
  1858. <br /><table class="caption"
  1859. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;2: </td><td
  1860. class="content">AR Workflow with Shipping</td></tr></table><!--tex4ht:label?: x1-1100012 -->
  1861. <!--l. 9--><p class="center"> <img
  1862. src="LedgerSMB-manual1x.png" alt="PICT" />
  1863. </p>
  1864. </td></tr></table></div><hr class="endfigure" />
  1865. <h5 class="subsubsectionHead"><span class="titlemark">9.4.3 </span> <a
  1866. id="x1-1110009.4.3"></a>Multiple Warehouse Example</h5>
  1867. <!--l. 1375--><p class="noindent">A customer contacts your firm and asks for a quotation for a number of different parts. You would create a
  1868. quotation and when you get confirmation, convert it to a sales order. When you go to ship the item, you
  1869. would select the warehouse in the drop-down menu, and select the parts to ship. One would repeat with
  1870. other warehouses until the entire order is shipped.
  1871. </p><!--l. 1382--><p class="indent"> Then the billing department would go to the sales order and generate the invoice. It would then be
  1872. mailed to the customer.
  1873. </p>
  1874. <hr class="figure" /><div class="figure"
  1875. ><table class="figure"><tr class="figure"><td class="figure"
  1876. >
  1877. <a
  1878. id="x1-1110013"></a>
  1879. <br /><table class="caption"
  1880. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;3: </td><td
  1881. class="content">Complex AR Workflow with Shipping</td></tr></table><!--tex4ht:label?: x1-1110013 -->
  1882. <!--l. 9--><p class="center"> <img
  1883. src="LedgerSMB-manual2x.png" alt="PICT" />
  1884. </p>
  1885. </td></tr></table></div><hr class="endfigure" />
  1886. <h4 class="subsectionHead"><span class="titlemark">9.5 </span> <a
  1887. id="x1-1120009.5"></a>Requests for Quotation (RFQ)</h4>
  1888. <!--l. 1399--><p class="noindent">A request for quotation would be a formal document one might submit to a vendor to ask for a quote
  1889. on a product or service they might offer. These can be generated from Purchase Orders or AP
  1890. Invoices.
  1891. </p><!--l. 1404--><p class="noindent">
  1892. </p>
  1893. <h4 class="subsectionHead"><span class="titlemark">9.6 </span> <a
  1894. id="x1-1130009.6"></a>Purchase Orders</h4>
  1895. <!--l. 1406--><p class="noindent">A purchase order is a confirmation that is issued to the vendor to order the product or service. Many
  1896. businesses will require a purchase order with certain terms in order to begin work on a product. These can be
  1897. generated from RFQ&#8217;s or AP Invoices.
  1898. </p><!--l. 1412--><p class="noindent">
  1899. </p>
  1900. <h4 class="subsectionHead"><span class="titlemark">9.7 </span> <a
  1901. id="x1-1140009.7"></a>Receiving</h4>
  1902. <!--l. 1414--><p class="noindent">The Shipping-&#x003E;Receiving screen allows you to track the parts received from an existing purchase order. Like
  1903. shipping, it does not post an invoice but tracks the received parts in the order.
  1904. </p><!--l. 1419--><p class="noindent">
  1905. </p>
  1906. <h4 class="subsectionHead"><span class="titlemark">9.8 </span> <a
  1907. id="x1-1150009.8"></a>AP Work Flow</h4>
  1908. <!--l. 1422--><p class="noindent">
  1909. </p>
  1910. <h5 class="subsubsectionHead"><span class="titlemark">9.8.1 </span> <a
  1911. id="x1-1160009.8.1"></a>Bookkeeper entering the received items, order completed in full</h5>
  1912. <!--l. 1424--><p class="noindent">Your company inquires about the price of a given good or service from another firm. You submit an RFQ to
  1913. the vendor, and finding that the price is reasonable, you convert it to an order, adjust the price to what they
  1914. have quoted, and save it. When the goods are delivered you convert the order into an AP invoice and post
  1915. it.
  1916. </p>
  1917. <hr class="figure" /><div class="figure"
  1918. ><table class="figure"><tr class="figure"><td class="figure"
  1919. >
  1920. <a
  1921. id="x1-1160014"></a>
  1922. <br /><table class="caption"
  1923. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;4: </td><td
  1924. class="content">Simple AP Workflow</td></tr></table><!--tex4ht:label?: x1-1160014 -->
  1925. <!--l. 9--><p class="center"> <img
  1926. src="LedgerSMB-manual3x.png" alt="PICT" />
  1927. </p>
  1928. </td></tr></table></div><hr class="endfigure" />
  1929. <h5 class="subsubsectionHead"><span class="titlemark">9.8.2 </span> <a
  1930. id="x1-1170009.8.2"></a>Bookkeeper entering received items, order completed in part</h5>
  1931. <!--l. 1444--><p class="noindent">Your company inquires about the price of a given good or service from another firm, You submit an RFQ to
  1932. the vendor, and finding that the price is acceptable, you convert it into an order, adjusting the price to what
  1933. they have quoted, and save it. When some of the goods are received, you open up the purchase order, enter
  1934. the number of parts received, convert that order into an invoice, and post it. Repeat until all parts are
  1935. received.
  1936. </p>
  1937. <hr class="figure" /><div class="figure"
  1938. ><table class="figure"><tr class="figure"><td class="figure"
  1939. >
  1940. <a
  1941. id="x1-1170015"></a>
  1942. <br /><table class="caption"
  1943. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;5: </td><td
  1944. class="content">AP Workflow with Receiving</td></tr></table><!--tex4ht:label?: x1-1170015 -->
  1945. <!--l. 9--><p class="center"> <img
  1946. src="LedgerSMB-manual4x.png" alt="PICT" />
  1947. </p>
  1948. </td></tr></table></div><hr class="endfigure" />
  1949. <h5 class="subsubsectionHead"><span class="titlemark">9.8.3 </span> <a
  1950. id="x1-1180009.8.3"></a>Receiving staff entering items</h5>
  1951. <!--l. 1466--><p class="noindent">Your company inquires about the price of a given good or service from another firm, You submit an RFQ to
  1952. the vendor, and finding that the price is acceptable, you convert it into an order, adjusting the price to
  1953. what they have quoted, and save it. When some or all of the goods are received, the receiving
  1954. staff goes to Shipping-Receiving, locates the purchase order, and fills in the number of items
  1955. received.
  1956. </p><!--l. 1473--><p class="indent"> The bookkeeper can then determine when all items have been received and post the invoice at that
  1957. time.
  1958. </p>
  1959. <hr class="figure" /><div class="figure"
  1960. ><table class="figure"><tr class="figure"><td class="figure"
  1961. >
  1962. <a
  1963. id="x1-1180016"></a>
  1964. <br /><table class="caption"
  1965. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;6: </td><td
  1966. class="content">Complex AP Workflow</td></tr></table><!--tex4ht:label?: x1-1180016 -->
  1967. <!--l. 9--><p class="center"> <img
  1968. src="LedgerSMB-manual5x.png" alt="PICT" />
  1969. </p>
  1970. </td></tr></table></div><hr class="endfigure" />
  1971. <h4 class="subsectionHead"><span class="titlemark">9.9 </span> <a
  1972. id="x1-1190009.9"></a>Generation and Consolidation</h4>
  1973. <!--l. 1491--><p class="noindent">
  1974. </p>
  1975. <h5 class="subsubsectionHead"><span class="titlemark">9.9.1 </span> <a
  1976. id="x1-1200009.9.1"></a>Generation</h5>
  1977. <!--l. 1493--><p class="noindent">The Generation screen allows you to generate Purchase Orders based on sales orders. One selects the sales
  1978. orders one wants to use, and clicks "Generate Purchase Orders." Then one selects clicks on the parts to order,
  1979. adjusts the quantity if necessary, and clicks "Select Vendor." This process is repeated for every vendor
  1980. required. Then the Generate Orders button is clicked.
  1981. </p><!--l. 1501--><p class="noindent">
  1982. </p>
  1983. <h5 class="subsubsectionHead"><span class="titlemark">9.9.2 </span> <a
  1984. id="x1-1210009.9.2"></a>Consolidation</h5>
  1985. <!--l. 1503--><p class="noindent">One can consolidate sales and/or purchase orders using this screen. For the consolidation to work you must
  1986. have more than one order associated with the relevant customer or vendor.
  1987. </p><!--l. 1508--><p class="noindent">
  1988. </p>
  1989. <h4 class="subsectionHead"><span class="titlemark">9.10 </span> <a
  1990. id="x1-1220009.10"></a>Reporting</h4>
  1991. <!--l. 1510--><p class="noindent">The reporting functionality in the order management is largely limited to the ability to locate purchase
  1992. orders, sales orders, RFQ&#8217;s, and quotations.
  1993. </p><!--l. 1515--><p class="noindent">
  1994. </p>
  1995. <h4 class="subsectionHead"><span class="titlemark">9.11 </span> <a
  1996. id="x1-1230009.11"></a>Shipping Module: Transferring Inventory between Warehouses</h4>
  1997. <!--l. 1517--><p class="noindent">One can transfer inventory between warehouses if necessary by using the Shipping-&#x003E;Transfer Inventory
  1998. screen.
  1999. </p><!--l. 1521--><p class="noindent">
  2000. </p>
  2001. <h3 class="sectionHead"><span class="titlemark">10 </span> <a
  2002. id="x1-12400010"></a>HR</h3>
  2003. <!--l. 1523--><p class="noindent">The HR module is currently limited to tracking employees for and their start and end dates. It
  2004. has very little other functionality. One could build payroll systems that could integrate with it
  2005. however.
  2006. </p><!--l. 1528--><p class="noindent">
  2007. </p>
  2008. <h3 class="sectionHead"><span class="titlemark">11 </span> <a
  2009. id="x1-12500011"></a>POS</h3>
  2010. <!--l. 1530--><p class="noindent">LedgerSMB 1.2 includes a number of components merged from Metatron Technology Consulting&#8217;s SL-POS.
  2011. Although it is still not a perfect solution, it is greatly improved in both workflow and hardware support. It is
  2012. suitable for retail establishments at the moment.
  2013. </p><!--l. 1534--><p class="noindent">
  2014. </p>
  2015. <h4 class="subsectionHead"><span class="titlemark">11.1 </span> <a
  2016. id="x1-12600011.1"></a>Sales Screen</h4>
  2017. <!--l. 1536--><p class="noindent">The sales screen looks very much like a normal invoice entry screen with a few differences.
  2018. </p>
  2019. <ul class="itemize1">
  2020. <li class="itemize">The discount text field is not available, nor is the unit field..
  2021. </li>
  2022. <li class="itemize">The next part number is automatically focused when the data loads for rapid data entry.
  2023. </li>
  2024. <li class="itemize">Hot keys for the buttons are Alt-U for update, Alt-P for print, Alt-O for post, and Alt-R for print
  2025. and post.
  2026. </li>
  2027. <li class="itemize">Part Groups appear at the bottom of the screen.
  2028. </li>
  2029. <li class="itemize">Alt-N moves the cursor to the next free payment line.</li></ul>
  2030. <!--l. 1549--><p class="noindent">
  2031. </p>
  2032. <h4 class="subsectionHead"><span class="titlemark">11.2 </span> <a
  2033. id="x1-12700011.2"></a>Possibilities for Data Entry</h4>
  2034. <ul class="itemize1">
  2035. <li class="itemize">Barcode scanners can be used to scan items in as they are being rung in.
  2036. </li>
  2037. <li class="itemize">One could use touch screens, though this would ideally require some custom stylesheets to
  2038. make it efficient.</li></ul>
  2039. <!--l. 1558--><p class="noindent">
  2040. </p>
  2041. <h4 class="subsectionHead"><span class="titlemark">11.3 </span> <a
  2042. id="x1-12800011.3"></a>Hardware Support</h4>
  2043. <!--l. 1560--><p class="noindent">As LedgerSMB is a web-based application, the web browser usually does not allow the page to write to
  2044. arbitrary files. Therefore hardware support for pole displays, etc. is not readily possible from the application
  2045. itself. LedgerSMB gets around this limitation by using an additional set of network sockets from the server to
  2046. the client to control its hardware. This naturally requires that other software is also running on the
  2047. client.
  2048. </p><!--l. 1567--><p class="indent"> Notes for specific types of hardware are as follows:
  2049. </p><!--l. 1569--><p class="indent">
  2050. </p><dl class="description"><dt class="description">
  2051. <span
  2052. class="pplb8t-">Touch</span> </dt><dd
  2053. class="description">screens: The default stylesheet is not really usable from a touchscreen as the items are often
  2054. too small. One would need to modify the stylesheets to ensure that the relevant items would be
  2055. reasonable. Setting down the resolution would also help.
  2056. </dd><dt class="description">
  2057. <span
  2058. class="pplb8t-">Receipt</span> </dt><dd
  2059. class="description">Printers: ESC/POS printers generally work in text mode. Control sequences can be
  2060. embedded in the template as necessary.
  2061. </dd><dt class="description">
  2062. <span
  2063. class="pplb8t-">Pole</span> </dt><dd
  2064. class="description">Displays: Generally supported. Only the Logic Controls PD3000 is supported out of the box,
  2065. but making this work for other models ought to be trivial.
  2066. </dd><dt class="description">
  2067. <span
  2068. class="pplb8t-">Cash</span> </dt><dd
  2069. class="description">Drawers: These should be attached to the printer. The control codes is then specified in the
  2070. pos.conf.pl so that the command is sent to the printer when the open till button is pushed.
  2071. </dd><dt class="description">
  2072. <span
  2073. class="pplb8t-">Barcode</span> </dt><dd
  2074. class="description">Scanners: Most customers use decoded barcode scanners through a keyboard wedge
  2075. interface. This allows them to scan items as if they were typing them on the keyboard.</dd></dl>
  2076. <!--l. 1587--><p class="noindent">
  2077. </p>
  2078. <h4 class="subsectionHead"><span class="titlemark">11.4 </span> <a
  2079. id="x1-12900011.4"></a>Reports</h4>
  2080. <!--l. 1590--><p class="noindent">
  2081. </p>
  2082. <h5 class="subsubsectionHead"><span class="titlemark">11.4.1 </span> <a
  2083. id="x1-13000011.4.1"></a>Open Invoices</h5>
  2084. <!--l. 1592--><p class="noindent">The POS-&#x003E;Open screen allows one to find any POS receipts that are not entirely paid off.
  2085. </p><!--l. 1596--><p class="noindent">
  2086. </p>
  2087. <h5 class="subsubsectionHead"><span class="titlemark">11.4.2 </span> <a
  2088. id="x1-13100011.4.2"></a>Receipts</h5>
  2089. <!--l. 1598--><p class="noindent">The POS-&#x003E;Receipts screen allows one to bring up a basic record of the POS terminals. It is not sufficient for
  2090. closing the till, however, though it may help for reconciliation.
  2091. </p><!--l. 1602--><p class="indent"> The till column is the last component or octet of the terminal&#8217;s IP address. Therefore it is a good idea to
  2092. try to avoid having IP addresses where the last octet is the same.
  2093. </p><!--l. 1606--><p class="indent"> All entries are grouped by date and source in this report.
  2094. </p><!--l. 1609--><p class="noindent">
  2095. </p>
  2096. <h3 class="sectionHead"><span class="titlemark">12 </span> <a
  2097. id="x1-13200012"></a>General Ledger</h3>
  2098. <!--l. 1612--><p class="noindent">
  2099. </p>
  2100. <h4 class="subsectionHead"><span class="titlemark">12.1 </span> <a
  2101. id="x1-13300012.1"></a>GL Basics</h4>
  2102. <!--l. 1614--><p class="noindent">The General Ledger is the heart of LedgerSMB. Indeed, LedgerSMB is designed to be as close as possible to
  2103. a software equivalent of a paper-based accounting program (but with no difference between the General
  2104. Ledger and General Journal).
  2105. </p><!--l. 1620--><p class="noindent">
  2106. </p>
  2107. <h5 class="subsubsectionHead"><span class="titlemark">12.1.1 </span> <a
  2108. id="x1-13400012.1.1"></a>Paper-based accounting systems and the GL</h5>
  2109. <!--l. 1622--><p class="noindent">In order to understand the principle of the General Ledger, one must have a basic understanding of the
  2110. general process of bookkeeping using double-entry paper-based accounting systems.
  2111. </p><!--l. 1626--><p class="indent"> Normally when a transaction would be recorded, it would first be recorded in the "General Journal"
  2112. which would contain detailed information about the transaction, notes, etc. Then the entries from the
  2113. General Journal would be transcribed to the General Ledger, where one could keep closer tabs on what was
  2114. going on in each account.
  2115. </p><!--l. 1632--><p class="indent"> In the general journal, all transactions are listed chronologically with whatever commentary is deemed
  2116. necessary, while in the general ledger each account has its own page and transactions are recorded in a
  2117. simple and terse manner. The General Journal is the first place the transaction is recorded and the General
  2118. Ledger is the last.
  2119. </p><!--l. 1638--><p class="indent"> At the end of the accounting period, the GL transactions would be summarized into a trial balance
  2120. and this would be used for creating financial statements and closing the books at the end of the
  2121. year.
  2122. </p><!--l. 1643--><p class="noindent">
  2123. </p>
  2124. <h5 class="subsubsectionHead"><span class="titlemark">12.1.2 </span> <a
  2125. id="x1-13500012.1.2"></a>Double Entry Examples on Paper</h5>
  2126. <!--l. 1645--><p class="noindent">Let us say that John starts his business with an initial investment of $10,000.
  2127. </p><!--l. 1648--><p class="indent"> This is recorded in the General Journal as follows (in this example, suppose it is page 1):
  2128. </p>
  2129. <div class="tabular"><table class="tabular"
  2130. cellspacing="0" cellpadding="0" rules="groups"
  2131. ><colgroup id="TBL-4-1g"><col
  2132. id="TBL-4-1" /></colgroup><colgroup id="TBL-4-2g"><col
  2133. id="TBL-4-2" /></colgroup><colgroup id="TBL-4-3g"><col
  2134. id="TBL-4-3" /></colgroup><colgroup id="TBL-4-4g"><col
  2135. id="TBL-4-4" /></colgroup><colgroup id="TBL-4-5g"><col
  2136. id="TBL-4-5" /></colgroup><tr
  2137. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2138. style="vertical-align:baseline;" id="TBL-4-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-1-1"
  2139. class="td11">Date </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-1-2"
  2140. class="td11">Accounts and Explanation</td><td style="white-space:nowrap; text-align:left;" id="TBL-4-1-3"
  2141. class="td11">Ref </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-1-4"
  2142. class="td11"> DEBIT</td><td style="white-space:nowrap; text-align:right;" id="TBL-4-1-5"
  2143. class="td11">CREDIT</td>
  2144. </tr><tr
  2145. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2146. style="vertical-align:baseline;" id="TBL-4-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-2-1"
  2147. class="td11">March 1</td><td style="white-space:nowrap; text-align:left;" id="TBL-4-2-2"
  2148. class="td11">Checking Account </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-2-3"
  2149. class="td11">1060</td><td style="white-space:nowrap; text-align:right;" id="TBL-4-2-4"
  2150. class="td11">10000.00</td><td style="white-space:nowrap; text-align:right;" id="TBL-4-2-5"
  2151. class="td11"> </td>
  2152. </tr><tr
  2153. style="vertical-align:baseline;" id="TBL-4-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-3-1"
  2154. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-3-2"
  2155. class="td11">John Doe Capital </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-3-3"
  2156. class="td11">3011</td><td style="white-space:nowrap; text-align:right;" id="TBL-4-3-4"
  2157. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-3-5"
  2158. class="td11">10000.00</td>
  2159. </tr><tr
  2160. style="vertical-align:baseline;" id="TBL-4-4-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-4-1"
  2161. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-4-2"
  2162. class="td11">John Doe began a business</td><td style="white-space:nowrap; text-align:left;" id="TBL-4-4-3"
  2163. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-4-4"
  2164. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-4-5"
  2165. class="td11"> </td>
  2166. </tr><tr
  2167. style="vertical-align:baseline;" id="TBL-4-5-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-5-1"
  2168. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-5-2"
  2169. class="td11">with an investment of </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-5-3"
  2170. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-5-4"
  2171. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-5-5"
  2172. class="td11"> </td>
  2173. </tr><tr
  2174. style="vertical-align:baseline;" id="TBL-4-6-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-6-1"
  2175. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-6-2"
  2176. class="td11">$10000 </td><td style="white-space:nowrap; text-align:left;" id="TBL-4-6-3"
  2177. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-6-4"
  2178. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-4-6-5"
  2179. class="td11"> </td>
  2180. </tr><tr
  2181. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2182. style="vertical-align:baseline;" id="TBL-4-7-"><td style="white-space:nowrap; text-align:left;" id="TBL-4-7-1"
  2183. class="td11"> </td> </tr></table>
  2184. </div>
  2185. <!--l. 1688--><p class="indent"> This would then be transcribed into two pages of the General Ledger. The first page might be the
  2186. Checking Account page:
  2187. </p>
  2188. <div class="tabular"><table class="tabular"
  2189. cellspacing="0" cellpadding="0" rules="groups"
  2190. ><colgroup id="TBL-5-1g"><col
  2191. id="TBL-5-1" /></colgroup><colgroup id="TBL-5-2g"><col
  2192. id="TBL-5-2" /></colgroup><colgroup id="TBL-5-3g"><col
  2193. id="TBL-5-3" /></colgroup><colgroup id="TBL-5-4g"><col
  2194. id="TBL-5-4" /></colgroup><colgroup id="TBL-5-5g"><col
  2195. id="TBL-5-5" /></colgroup><colgroup id="TBL-5-6g"><col
  2196. id="TBL-5-6" /></colgroup><colgroup id="TBL-5-7g"><col
  2197. id="TBL-5-7" /></colgroup><colgroup id="TBL-5-8g"><col
  2198. id="TBL-5-8" /></colgroup><tr
  2199. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2200. style="vertical-align:baseline;" id="TBL-5-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-5-1-1"
  2201. class="td11">DATE </td><td style="white-space:nowrap; text-align:left;" id="TBL-5-1-2"
  2202. class="td11">EXPLANATION</td><td style="white-space:nowrap; text-align:left;" id="TBL-5-1-3"
  2203. class="td11">REF.</td><td style="white-space:nowrap; text-align:right;" id="TBL-5-1-4"
  2204. class="td11"> DEBITS</td><td style="white-space:nowrap; text-align:left;" id="TBL-5-1-5"
  2205. class="td11">DATE</td><td style="white-space:nowrap; text-align:left;" id="TBL-5-1-6"
  2206. class="td11">EXPLANATION</td><td style="white-space:nowrap; text-align:left;" id="TBL-5-1-7"
  2207. class="td11">REF.</td><td style="white-space:nowrap; text-align:right;" id="TBL-5-1-8"
  2208. class="td11">CREDITS</td>
  2209. </tr><tr
  2210. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2211. style="vertical-align:baseline;" id="TBL-5-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-5-2-1"
  2212. class="td11">March 1</td><td style="white-space:nowrap; text-align:left;" id="TBL-5-2-2"
  2213. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-5-2-3"
  2214. class="td11">J1 </td><td style="white-space:nowrap; text-align:right;" id="TBL-5-2-4"
  2215. class="td11">10000.00</td><td style="white-space:nowrap; text-align:left;" id="TBL-5-2-5"
  2216. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-5-2-6"
  2217. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-5-2-7"
  2218. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-5-2-8"
  2219. class="td11"> </td>
  2220. </tr><tr
  2221. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2222. style="vertical-align:baseline;" id="TBL-5-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-5-3-1"
  2223. class="td11"> </td> </tr></table>
  2224. </div>
  2225. <!--l. 1715--><p class="indent"> On the John Doe Capital page, we would add a similar entry:
  2226. </p>
  2227. <div class="tabular"><table class="tabular"
  2228. cellspacing="0" cellpadding="0" rules="groups"
  2229. ><colgroup id="TBL-6-1g"><col
  2230. id="TBL-6-1" /></colgroup><colgroup id="TBL-6-2g"><col
  2231. id="TBL-6-2" /></colgroup><colgroup id="TBL-6-3g"><col
  2232. id="TBL-6-3" /></colgroup><colgroup id="TBL-6-4g"><col
  2233. id="TBL-6-4" /></colgroup><colgroup id="TBL-6-5g"><col
  2234. id="TBL-6-5" /></colgroup><colgroup id="TBL-6-6g"><col
  2235. id="TBL-6-6" /></colgroup><colgroup id="TBL-6-7g"><col
  2236. id="TBL-6-7" /></colgroup><colgroup id="TBL-6-8g"><col
  2237. id="TBL-6-8" /></colgroup><tr
  2238. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2239. style="vertical-align:baseline;" id="TBL-6-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-6-1-1"
  2240. class="td11">DATE</td><td style="white-space:nowrap; text-align:left;" id="TBL-6-1-2"
  2241. class="td11">EXPLANATION</td><td style="white-space:nowrap; text-align:left;" id="TBL-6-1-3"
  2242. class="td11">REF.</td><td style="white-space:nowrap; text-align:right;" id="TBL-6-1-4"
  2243. class="td11">DEBITS</td><td style="white-space:nowrap; text-align:left;" id="TBL-6-1-5"
  2244. class="td11">DATE </td><td style="white-space:nowrap; text-align:left;" id="TBL-6-1-6"
  2245. class="td11">EXPLANATION</td><td style="white-space:nowrap; text-align:left;" id="TBL-6-1-7"
  2246. class="td11">REF.</td><td style="white-space:nowrap; text-align:right;" id="TBL-6-1-8"
  2247. class="td11">CREDITS</td>
  2248. </tr><tr
  2249. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2250. style="vertical-align:baseline;" id="TBL-6-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-6-2-1"
  2251. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-6-2-2"
  2252. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-6-2-3"
  2253. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-6-2-4"
  2254. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-6-2-5"
  2255. class="td11">March 1</td><td style="white-space:nowrap; text-align:left;" id="TBL-6-2-6"
  2256. class="td11"> </td><td style="white-space:nowrap; text-align:left;" id="TBL-6-2-7"
  2257. class="td11">J1 </td><td style="white-space:nowrap; text-align:right;" id="TBL-6-2-8"
  2258. class="td11"> 10000.00</td>
  2259. </tr><tr
  2260. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2261. style="vertical-align:baseline;" id="TBL-6-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-6-3-1"
  2262. class="td11"> </td> </tr></table>
  2263. </div>
  2264. <!--l. 1742--><p class="noindent">
  2265. </p>
  2266. <h5 class="subsubsectionHead"><span class="titlemark">12.1.3 </span> <a
  2267. id="x1-13600012.1.3"></a>The GL in LedgerSMB</h5>
  2268. <!--l. 1744--><p class="noindent">The paper-based accounting procedure works well when one is stuck with paper recording requirements but
  2269. it has one serious deficiency&#8212; all of this transcribing creates an opportunity for errors.
  2270. </p><!--l. 1748--><p class="indent"> Relational databases relieve the need for such transcription as it is possible to store everything
  2271. physically in a way similar to the way a General Journal is used in the paper-based systems and then
  2272. present the same information in ways which are more closely related to the General Ledger
  2273. book.
  2274. </p><!--l. 1754--><p class="indent"> This is the exact way that the General Ledger is used in LedgerSMB. The actual data is entered and
  2275. stored as if it was a general journal, and then the data can be presented in any number of different
  2276. ways.
  2277. </p><!--l. 1758--><p class="indent"> All modules of LedgerSMB that involve COA accounts store their data in the General Ledger (it is a little
  2278. more complex than this but this is very close to the actual mechanism).
  2279. </p><!--l. 1763--><p class="noindent">
  2280. </p>
  2281. <h4 class="subsectionHead"><span class="titlemark">12.2 </span> <a
  2282. id="x1-13700012.2"></a>Cash Transfer</h4>
  2283. <!--l. 1765--><p class="noindent">The simplest form of GL entry in LedgerSMB is the Cash-&#x003E;Transfer screen. This screen shows two
  2284. transaction lines, and fields for reference, department, description, and notes.
  2285. </p><!--l. 1769--><p class="indent"> The field descriptions are as follows:
  2286. </p><!--l. 1771--><p class="indent">
  2287. </p><dl class="description"><dt class="description">
  2288. <span
  2289. class="pplb8t-">Reference</span> </dt><dd
  2290. class="description">refers to the source document for the transfer. One can use transfer sheets, bank receipt
  2291. numbers, etc for this field.
  2292. </dd><dt class="description">
  2293. <span
  2294. class="pplb8t-">Description</span> </dt><dd
  2295. class="description">is optional but really should be filled in. It ought to be a description of the transaction.
  2296. </dd><dt class="description">
  2297. <span
  2298. class="pplb8t-">Notes</span> </dt><dd
  2299. class="description">provide supplemental information for the transaction.
  2300. </dd><dt class="description">
  2301. <span
  2302. class="pplb8t-">FX</span> </dt><dd
  2303. class="description">indicates whether foreign exchange is a factor in this transaction.
  2304. </dd><dt class="description">
  2305. <span
  2306. class="pplb8t-">Debit</span> </dt><dd
  2307. class="description">indicates money going <span
  2308. class="pplb8t-">into </span>the asset account.
  2309. </dd><dt class="description">
  2310. <span
  2311. class="pplb8t-">Credit</span> </dt><dd
  2312. class="description">indicates money coming <span
  2313. class="pplb8t-">out </span>of the asset account.
  2314. </dd><dt class="description">
  2315. <span
  2316. class="pplb8t-">Source</span> </dt><dd
  2317. class="description">is the source document for that portion of the transaction.
  2318. </dd><dt class="description">
  2319. <span
  2320. class="pplb8t-">Memo</span> </dt><dd
  2321. class="description">lists additional information as necessary.
  2322. </dd><dt class="description">
  2323. <span
  2324. class="pplb8t-">Project</span> </dt><dd
  2325. class="description">allows you to assign this line to a project.</dd></dl>
  2326. <!--l. 1784--><p class="noindent">The credit and debit options seem to be the opposite of what one would think of concerning one&#8217;s bank account.
  2327. The reason is that your bank statement is done from the bank&#8217;s point of view. Your bank account balance is
  2328. an asset to you and therefor you show it as having a debit balance, but to the bank it is money they owe you
  2329. and so they show it as having a credit balance.
  2330. </p><!--l. 1791--><p class="indent"> Note that in this screen, when an item is updated, it will reduce the number of lines to those already filled
  2331. in plus an extra line for the new line in the data entry.
  2332. </p><!--l. 1796--><p class="noindent">
  2333. </p>
  2334. <h4 class="subsectionHead"><span class="titlemark">12.3 </span> <a
  2335. id="x1-13800012.3"></a>GL Transactions</h4>
  2336. <!--l. 1798--><p class="noindent">The GL Transaction screen (General Ledger-&#x003E;Add Transaction) is identical to the Cash Transfer screen with
  2337. the exception that it starts with nine lines instead of two. Otherwise, they are identical.
  2338. </p><!--l. 1802--><p class="indent"> Again, one must be careful with debits and credits. Often it is easy to get confused. It is generally worth
  2339. while to go back to the principle that one tracks them with regard to their impact on the equity accounts. So
  2340. expenses are credits because they debit the equity accounts, and income is a debit because it credits the
  2341. retained earning equity account.
  2342. </p><!--l. 1809--><p class="noindent">
  2343. </p>
  2344. <h4 class="subsectionHead"><span class="titlemark">12.4 </span> <a
  2345. id="x1-13900012.4"></a>Payroll as a GL transaction</h4>
  2346. <!--l. 1811--><p class="noindent">Currently payroll must be done as a GL transaction. The attempts to create a payroll system that would ship
  2347. with LSMB have largely stalled.
  2348. </p><!--l. 1814--><p class="indent"> Most customers running their businesses will have an idea of how to do this.
  2349. </p>
  2350. <hr class="figure" /><div class="figure"
  2351. ><table class="figure"><tr class="figure"><td class="figure"
  2352. >
  2353. <a
  2354. id="x1-1390017"></a>
  2355. <br /><table class="caption"
  2356. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;7: </td><td
  2357. class="content">Payroll as a GL Transaction (Purely fictitious numbers)</td></tr></table><!--tex4ht:label?: x1-1390017 -->
  2358. <div class="tabular"><table class="tabular"
  2359. cellspacing="0" cellpadding="0" rules="groups"
  2360. ><colgroup id="TBL-7-1g"><col
  2361. id="TBL-7-1" /></colgroup><colgroup id="TBL-7-2g"><col
  2362. id="TBL-7-2" /></colgroup><colgroup id="TBL-7-3g"><col
  2363. id="TBL-7-3" /></colgroup><tr
  2364. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2365. style="vertical-align:baseline;" id="TBL-7-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-1-1"
  2366. class="td11">Account </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-1-2"
  2367. class="td11">Debit</td><td style="white-space:nowrap; text-align:right;" id="TBL-7-1-3"
  2368. class="td11">Credit</td>
  2369. </tr><tr
  2370. style="vertical-align:baseline;" id="TBL-7-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-2-1"
  2371. class="td11">5101 Wages and Salaries </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-2-2"
  2372. class="td11"> 500</td><td style="white-space:nowrap; text-align:right;" id="TBL-7-2-3"
  2373. class="td11"> </td>
  2374. </tr><tr
  2375. style="vertical-align:baseline;" id="TBL-7-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-3-1"
  2376. class="td11">2032 Accrued Wages </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-3-2"
  2377. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-3-3"
  2378. class="td11"> 450</td>
  2379. </tr><tr
  2380. style="vertical-align:baseline;" id="TBL-7-4-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-4-1"
  2381. class="td11">2033 Fed. Income Tax wthd</td><td style="white-space:nowrap; text-align:right;" id="TBL-7-4-2"
  2382. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-4-3"
  2383. class="td11"> 30</td>
  2384. </tr><tr
  2385. style="vertical-align:baseline;" id="TBL-7-5-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-5-1"
  2386. class="td11">2034 State Inc. Tax. wthd </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-5-2"
  2387. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-5-3"
  2388. class="td11"> 15</td>
  2389. </tr><tr
  2390. style="vertical-align:baseline;" id="TBL-7-6-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-6-1"
  2391. class="td11">2035 Social Security wthd </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-6-2"
  2392. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-6-3"
  2393. class="td11"> 3</td>
  2394. </tr><tr
  2395. style="vertical-align:baseline;" id="TBL-7-7-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-7-1"
  2396. class="td11">2036 Medicare wthd </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-7-2"
  2397. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-7-3"
  2398. class="td11"> 2</td>
  2399. </tr><tr
  2400. style="vertical-align:baseline;" id="TBL-7-8-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-8-1"
  2401. class="td11">2032 Accrued Wages </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-8-2"
  2402. class="td11"> 450</td><td style="white-space:nowrap; text-align:right;" id="TBL-7-8-3"
  2403. class="td11"> </td>
  2404. </tr><tr
  2405. style="vertical-align:baseline;" id="TBL-7-9-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-9-1"
  2406. class="td11">1060 Checking Acct </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-9-2"
  2407. class="td11"> </td><td style="white-space:nowrap; text-align:right;" id="TBL-7-9-3"
  2408. class="td11"> 450</td>
  2409. </tr><tr
  2410. class="hline"><td><hr /></td><td><hr /></td><td><hr /></td></tr><tr
  2411. style="vertical-align:baseline;" id="TBL-7-10-"><td style="white-space:nowrap; text-align:left;" id="TBL-7-10-1"
  2412. class="td11"> </td> </tr></table>
  2413. </div>
  2414. </td></tr></table></div><hr class="endfigure" />
  2415. <h4 class="subsectionHead"><span class="titlemark">12.5 </span> <a
  2416. id="x1-14000012.5"></a>Reconciliation</h4>
  2417. <!--l. 1861--><p class="noindent">To reconcile an account (say, when one would get a checking account statement), one would
  2418. go to cash/reconciliation, and check off the items that have cleared. One can then attempt to
  2419. determine where any errors lie by comparing the total on the statement with the total that LSMB
  2420. generates.
  2421. </p><!--l. 1867--><p class="indent"> This can be done for other accounts too, such as petty
  2422. cash.<span class="footnote-mark"><a
  2423. href="LedgerSMB-manual3.html#fn2x0"><sup class="textsuperscript">2</sup></a></span><a
  2424. id="x1-140001f2"></a>
  2425. </p>
  2426. <h4 class="subsectionHead"><span class="titlemark">12.6 </span> <a
  2427. id="x1-14100012.6"></a>Reports</h4>
  2428. <!--l. 1876--><p class="noindent">The most flexible report in LedgerSMB is the GL report because it has access to the entire set of financial
  2429. transactions of a business. Every invoice posted, payment made or received, etc. can be located
  2430. here.
  2431. </p><!--l. 1881--><p class="indent"> The search criteria include:
  2432. </p><!--l. 1883--><p class="indent">
  2433. </p><dl class="description"><dt class="description">
  2434. <span
  2435. class="pplb8t-">Reference</span> </dt><dd
  2436. class="description">is the invoice number, or other reference number associated with the transaction.
  2437. </dd><dt class="description">
  2438. <span
  2439. class="pplb8t-">Source</span> </dt><dd
  2440. class="description">is the field related to the source document number in a payment or other transaction.<span class="footnote-mark"><a
  2441. href="LedgerSMB-manual4.html#fn3x0"><sup class="textsuperscript">3</sup></a></span><a
  2442. id="x1-141001f3"></a>
  2443. </dd><dt class="description">
  2444. <span
  2445. class="pplb8t-">Memo</span> </dt><dd
  2446. class="description">relates to the memo field on a payment.
  2447. </dd><dt class="description">
  2448. <span
  2449. class="pplb8t-">Department</span> </dt><dd
  2450. class="description">can be used to filter results by department.
  2451. </dd><dt class="description">
  2452. <span
  2453. class="pplb8t-">Account</span> </dt><dd
  2454. class="description">Type can be used to filter results by type of account (Asset, Liability, etc.)
  2455. </dd><dt class="description">
  2456. <span
  2457. class="pplb8t-">Description</span> </dt><dd
  2458. class="description">can be used to filter by GL description or by customer/vendor name.</dd></dl>
  2459. <!--l. 1898--><p class="noindent">The actual format of the report looks more like what one would expect in a paper accounting system&#8217;s general
  2460. journal than a general ledger per se. A presentation of the data that is more like the paper general ledger is
  2461. found in the Chart of Accounts report.
  2462. </p><!--l. 1904--><p class="noindent">
  2463. </p>
  2464. <h5 class="subsubsectionHead"><span class="titlemark">12.6.1 </span> <a
  2465. id="x1-14200012.6.1"></a>GL as access to almost everything else</h5>
  2466. <!--l. 1906--><p class="noindent">The GL reports can be used to do all manner of things. One can determine, for example, which AP invoice or
  2467. transaction was paid with a certain check number or which invoice by a specific customer was paid by a
  2468. specific check number.
  2469. </p><!--l. 1912--><p class="noindent">
  2470. </p>
  2471. <h3 class="sectionHead"><span class="titlemark">13 </span> <a
  2472. id="x1-14300013"></a>Recurring Transactions</h3>
  2473. <!--l. 1914--><p class="noindent">Any transaction or invoice may be repeated a number of times in regular intervals. To schedule any GL, AR,
  2474. or AP transaction or invoice, click the schedule button.
  2475. </p><!--l. 1918--><p class="indent"> In general the reference number should be left blank as this will force LedgerSMB to create a new invoice
  2476. or transaction number for each iteration. The rest of the options are self-explanatory. Note that a blank
  2477. number if iterations will result in no recurrences of the transaction.
  2478. </p><!--l. 1924--><p class="indent"> To process the recurring transactions, click on the Recurring Transactions option on the main menu select
  2479. the ones you want to process and click "Process Transactions."
  2480. </p><!--l. 1929--><p class="noindent">
  2481. </p>
  2482. <h3 class="sectionHead"><span class="titlemark">14 </span> <a
  2483. id="x1-14400014"></a>Financial Statements and Reports</h3>
  2484. <!--l. 1931--><p class="noindent">Financial statements and reports are a very important part of any accounting system. Accountants and
  2485. business people rely on these reports to determine the financial soundness of the business and its prospects
  2486. for the next accounting period.
  2487. </p><!--l. 1937--><p class="noindent">
  2488. </p>
  2489. <h4 class="subsectionHead"><span class="titlemark">14.1 </span> <a
  2490. id="x1-14500014.1"></a>Cash v. Accrual Basis</h4>
  2491. <!--l. 1939--><p class="noindent">Financial statements, such as the Income Statement and Balance Sheet can be prepared either on a cash or
  2492. accrual basis. In cash-basis accounting, the income is deemed earned when the customer pays it, and the
  2493. expenses are deemed incurred when the business pays them.
  2494. </p><!--l. 1944--><p class="indent"> There are a number of problems with cash-basis accounting from a business point of view. The most
  2495. serious is that one can misrepresent the wellbeing of a business by paying a large expense after a deadline.
  2496. Thus cash-basis accounting does not allow one to accurately pair the income with the related expense as
  2497. these are recorded at different times. If one cannot accurately pair the income with the related expense, then
  2498. financial statements cannot be guaranteed to tell one much of anything about the well-being of the
  2499. business.
  2500. </p><!--l. 1953--><p class="indent"> In accrual basis accounting, income is considered earned when the invoice is posted, and
  2501. expenses are considered incurred at the time when the goods or services are delivered to the
  2502. business. This way, one can pair the income made from the sale of a product with the expense
  2503. incurred in bringing that product to sale. This pairing allows for greater confidence in business
  2504. reporting.
  2505. </p><!--l. 1961--><p class="noindent">
  2506. </p>
  2507. <h4 class="subsectionHead"><span class="titlemark">14.2 </span> <a
  2508. id="x1-14600014.2"></a>Viewing the Chart of Accounts and Transactions</h4>
  2509. <!--l. 1963--><p class="noindent">The Reports&#8211;&#x003E;Chart of Accounts will provide the chart of accounts along with current totals in each
  2510. account.
  2511. </p><!--l. 1966--><p class="indent"> If you click on an account number, you will get a screen that allows you to filter out transactions in that
  2512. account by various criteria. One can also include AR/AP, and Subtotal in the report.
  2513. </p><!--l. 1970--><p class="indent"> The report format is similar to that of a paper-based general ledger.
  2514. </p><!--l. 1973--><p class="noindent">
  2515. </p>
  2516. <h4 class="subsectionHead"><span class="titlemark">14.3 </span> <a
  2517. id="x1-14700014.3"></a>Trial Balance</h4>
  2518. <!--l. 1976--><p class="noindent">
  2519. </p>
  2520. <h5 class="subsubsectionHead"><span class="titlemark">14.3.1 </span> <a
  2521. id="x1-14800014.3.1"></a>The Paper-based function of a Trial Balance</h5>
  2522. <!--l. 1978--><p class="noindent">In paper-based accounting systems, the accountant at the end of the year would total up the debits and
  2523. credits in every account and transfer them onto another sheet called the trial balance. The accountant
  2524. would check to determine that the total debits and credits were equal and would then transfer
  2525. this information onto the financial statements. It was called a trial balance because it was the
  2526. main step at which the error-detection capabilities of double-entry accounting systems were
  2527. used.
  2528. </p><!--l. 1988--><p class="noindent">
  2529. </p>
  2530. <h5 class="subsubsectionHead"><span class="titlemark">14.3.2 </span> <a
  2531. id="x1-14900014.3.2"></a>Running the Trial Balance Report</h5>
  2532. <!--l. 1990--><p class="noindent">This report is located under Reports &#8211;&#x003E;Trial Balance. One can filter out items by date, accounting period, or
  2533. department. One can run the report by accounts or using GIFI classifications to group accounts
  2534. together.
  2535. </p><!--l. 1995--><p class="indent"> From this report, you can click on the account number and see all transactions on the trial balance as well
  2536. as whether or not they have been reconciled.
  2537. </p><!--l. 2000--><p class="noindent">
  2538. </p>
  2539. <h5 class="subsubsectionHead"><span class="titlemark">14.3.3 </span> <a
  2540. id="x1-15000014.3.3"></a>What if the Trial Balance doesn&#8217;t Balance?</h5>
  2541. <!--l. 2002--><p class="noindent">If the trial balance does not balance, get technical support immediately. This usually means that transactions
  2542. were not entered properly. Some may have been out of balance, or some may have gone into non-existent
  2543. accounts (believe it or not, LedgerSMB does not check this latter issue).
  2544. </p><!--l. 2009--><p class="noindent">
  2545. </p>
  2546. <h5 class="subsubsectionHead"><span class="titlemark">14.3.4 </span> <a
  2547. id="x1-15100014.3.4"></a>Trial Balance as a Summary of Account Activity</h5>
  2548. <!--l. 2011--><p class="noindent">The trial balance offers a glance at the total activity in every account. It can provide a useful look at financial
  2549. activity at a glance for the entire business.
  2550. </p><!--l. 2016--><p class="noindent">
  2551. </p>
  2552. <h5 class="subsubsectionHead"><span class="titlemark">14.3.5 </span> <a
  2553. id="x1-15200014.3.5"></a>Trial Balance as a Budget Planning Tool</h5>
  2554. <!--l. 2018--><p class="noindent">By filtering out departments, one can determine what a department earned and spent during a given
  2555. financial interval. This can be used in preparing budgets for the next accounting period.
  2556. </p><!--l. 2023--><p class="noindent">
  2557. </p>
  2558. <h4 class="subsectionHead"><span class="titlemark">14.4 </span> <a
  2559. id="x1-15300014.4"></a>Income Statement</h4>
  2560. <!--l. 2025--><p class="noindent">The Income Statement is another tool that can be used to assist with budgetary planning as well as provide
  2561. information on the financial health of a business.
  2562. </p><!--l. 2029--><p class="indent"> The report is run from Reports&#8211;&#x003E;Income Statement. The report preparation screen shows the following
  2563. fields:
  2564. </p><!--l. 2032--><p class="indent">
  2565. </p><dl class="description"><dt class="description">
  2566. <span
  2567. class="pplb8t-">Department</span> </dt><dd
  2568. class="description">allows you to run reports for individual departments. This is useful for budgetary
  2569. purposes.
  2570. </dd><dt class="description">
  2571. <span
  2572. class="pplb8t-">Project</span> </dt><dd
  2573. class="description">allows you to run reports on individual projects. This can show how profitable a given project
  2574. was during a given time period.
  2575. </dd><dt class="description">
  2576. <span
  2577. class="pplb8t-">From</span> </dt><dd
  2578. class="description">and To allow you to select arbitrary from and to dates.
  2579. </dd><dt class="description">
  2580. <span
  2581. class="pplb8t-">Period</span> </dt><dd
  2582. class="description">allows you to specify a standard accounting period.
  2583. </dd><dt class="description">
  2584. <span
  2585. class="pplb8t-">Compare to</span> </dt><dd
  2586. class="description">fields allow you to run a second report for comparison purposes for a separate range of
  2587. dates or accounting period.
  2588. </dd><dt class="description">
  2589. <span
  2590. class="pplb8t-">Decimalplaces</span> </dt><dd
  2591. class="description">allows you to display numbers to a given precision.
  2592. </dd><dt class="description">
  2593. <span
  2594. class="pplb8t-">Method</span> </dt><dd
  2595. class="description">allows you to select between accrual and cash basis reports.
  2596. </dd><dt class="description">
  2597. <span
  2598. class="pplb8t-">Include</span> </dt><dd
  2599. class="description">in Report provides various options for reporting.
  2600. </dd><dt class="description">
  2601. <span
  2602. class="pplb8t-">Accounts</span> </dt><dd
  2603. class="description">allows you to run GIFI reports instead of the standard ones.</dd></dl>
  2604. <!--l. 2047--><p class="noindent">The report shows all income and expense accounts with activity during the period when the report is run, the
  2605. balances accrued during the period, as well as the total income and expense at the bottom of each section.
  2606. The total expense is subtracted from the total income to provide the net income during the period. If there is
  2607. a loss, it appears in parentheses.
  2608. </p><!--l. 2055--><p class="noindent">
  2609. </p>
  2610. <h5 class="subsubsectionHead"><span class="titlemark">14.4.1 </span> <a
  2611. id="x1-15400014.4.1"></a>Uses of an Income Statement</h5>
  2612. <!--l. 2057--><p class="noindent">The income statement provides a basic snapshot of the overall ability of the business to make money. It is one
  2613. of the basic accounting statements and is required, for example, on many SEC forms for publicly traded
  2614. firms.
  2615. </p><!--l. 2062--><p class="indent"> Additionally, businessmen use the income statement to look at overall trends in the ability of the business
  2616. to make money. One can compare a given month, quarter, or year with a year prior to look for trends so that
  2617. one can make adjustments in order to maximize profit.
  2618. </p><!--l. 2067--><p class="indent"> Finally, these reports can be used to provide a look at each department&#8217;s performance and their
  2619. ability to work within their budget. One can compare a department or project&#8217;s performance to
  2620. a year prior and look for patterns that can indicate problems or opportunities that need to be
  2621. addressed.
  2622. </p><!--l. 2074--><p class="noindent">
  2623. </p>
  2624. <h4 class="subsectionHead"><span class="titlemark">14.5 </span> <a
  2625. id="x1-15500014.5"></a>Balance Sheet</h4>
  2626. <!--l. 2076--><p class="noindent">The balance sheet is the second major accounting statement supported by LedgerSMB. The balance sheet
  2627. provides a snapshot of the current financial health of the business by comparing assets, liabilities, and
  2628. equity.
  2629. </p><!--l. 2081--><p class="indent"> In essence the balance sheet is a statement of the current state of owner equity. Traditionally, it does not
  2630. track changes in owner equity in the same way the Statement of Owner Equity does.
  2631. </p><!--l. 2085--><p class="indent"> The Balance Sheet report preparation screen is much simpler than the Income Statement screen.
  2632. Balance sheets don&#8217;t apply to projects, but they do apply to departments. Also, unlike an income
  2633. statement, a balance sheet is fixed for a specific date in time. Therefore one does not need to select a
  2634. period.
  2635. </p><!--l. 2091--><p class="indent"> The fields in creating a balance sheet are:
  2636. </p><!--l. 2093--><p class="indent">
  2637. </p><dl class="description"><dt class="description">
  2638. <span
  2639. class="pplb8t-">Department</span> </dt><dd
  2640. class="description">allows you to run separate balance sheets for each department.
  2641. </dd><dt class="description">
  2642. <span
  2643. class="pplb8t-">As</span> </dt><dd
  2644. class="description">at specifies the date. If blank this will be the current date.
  2645. </dd><dt class="description">
  2646. <span
  2647. class="pplb8t-">Compare to</span> </dt><dd
  2648. class="description">specifies the date to compare the balance sheet to.
  2649. </dd><dt class="description">
  2650. <span
  2651. class="pplb8t-">Decimalplaces</span> </dt><dd
  2652. class="description">specifies the number of decimal places to use.
  2653. </dd><dt class="description">
  2654. <span
  2655. class="pplb8t-">Method</span> </dt><dd
  2656. class="description">selects between cash and accrual basis.
  2657. </dd><dt class="description">
  2658. <span
  2659. class="pplb8t-">Include</span> </dt><dd
  2660. class="description">in report allows you to select supplemental information on the report.
  2661. </dd><dt class="description">
  2662. <span
  2663. class="pplb8t-">Accounts</span> </dt><dd
  2664. class="description">allows you to select between standard and GIFI reports.</dd></dl>
  2665. <!--l. 2104--><p class="noindent">The balance sheet lists all asset, liability, and equity accounts with a balance. Each category has a total listed, and
  2666. the total of the equity and liability accounts is also listed.
  2667. </p><!--l. 2108--><p class="indent"> The total assets should be equal to the sum of the totals of the liability and equity accounts.
  2668. </p><!--l. 2112--><p class="noindent">
  2669. </p>
  2670. <h4 class="subsectionHead"><span class="titlemark">14.6 </span> <a
  2671. id="x1-15600014.6"></a>What if the Balance Sheet doesn&#8217;t balance?</h4>
  2672. <!--l. 2114--><p class="noindent">Get technical support immediately, This may indicate that out of balance transactions were entered or that
  2673. transactions did not post properly.
  2674. </p><!--l. 2118--><p class="noindent">
  2675. </p>
  2676. <h4 class="subsectionHead"><span class="titlemark">14.7 </span> <a
  2677. id="x1-15700014.7"></a>No Statement of Owner Equity?</h4>
  2678. <!--l. 2120--><p class="noindent">The Statement of Owner Equity is the one accounting statement that LedgerSMB does not support.
  2679. However, it can be simulated by running a balance sheet at the end of the time frame in question and
  2680. comparing it to the beginning. One can check this against an income statement for the period in question
  2681. to verify its accuracy. The statement of owner equity is not as commonly used now as it once
  2682. was.
  2683. </p><!--l. 2128--><p class="noindent">
  2684. </p>
  2685. <h3 class="sectionHead"><span class="titlemark">15 </span> <a
  2686. id="x1-15800015"></a>The Template System</h3>
  2687. <!--l. 2130--><p class="noindent">LedgerSMB allows most documents to be generated according to a template system. This allows financial
  2688. statements, invoices, orders, and the like to be customized to meet the needs of most businesses. Company
  2689. logos can be inserted, the format can be radically altered, one can print letters to be included
  2690. with checks to vendors instead of the checks themselves, and the like. In the end, there is very
  2691. little that cannot be accomplished regarding modification of these documents with the template
  2692. system.
  2693. </p><!--l. 2139--><p class="indent"> One can define different templates for different languages, so that a customer in Spain gets a different
  2694. invoice than a customer in Canada.
  2695. </p><!--l. 2143--><p class="noindent">
  2696. </p>
  2697. <h4 class="subsectionHead"><span class="titlemark">15.1 </span> <a
  2698. id="x1-15900015.1"></a>Text Templates</h4>
  2699. <!--l. 2145--><p class="noindent">The only template that uses a text-only format is the POS receipt. This example provides the simplest way to
  2700. understand the template system.
  2701. </p><!--l. 2149--><p class="indent"> The first two lines are:
  2702. <br class="newline" />&#x003C;?lsmb company align=center width=40 ?&#x003E;
  2703. <br class="newline" />&#x003C;?lsmb address align=center width=40 ?&#x003E;
  2704. <br class="newline" />
  2705. </p><!--l. 2154--><p class="indent"> The first line tells LedgerSMB to print the company name as passed to it via a variable, centered, with a
  2706. page width of 40 characters. The second line does the same thing with the address.
  2707. </p><!--l. 2158--><p class="indent"> These variables are usually passed to the invoice using form fields (hidden or otherwise) in the
  2708. submitting web page. The printing script, however, can disable some of these fields or add others via
  2709. database lookups and the like.
  2710. </p><!--l. 2163--><p class="indent"> In all types of templates, variable substitution occurs between &#x003C;?lsmb and ?&#x003E;. One can optionally specify an
  2711. alignment or a width but these are really only useful in text templates.
  2712. </p><!--l. 2168--><p class="noindent">
  2713. </p>
  2714. <h4 class="subsectionHead"><span class="titlemark">15.2 </span> <a
  2715. id="x1-16000015.2"></a>HTML Templates</h4>
  2716. <!--l. 2170--><p class="noindent">The following templates exist in HTML format:
  2717. </p>
  2718. <ul class="itemize1">
  2719. <li class="itemize">Income Statement
  2720. </li>
  2721. <li class="itemize">Balance Sheet
  2722. </li>
  2723. <li class="itemize">Invoice (AR)
  2724. </li>
  2725. <li class="itemize">AR Transaction
  2726. </li>
  2727. <li class="itemize">AP Transaction
  2728. </li>
  2729. <li class="itemize">Packing List
  2730. </li>
  2731. <li class="itemize">Pick List
  2732. </li>
  2733. <li class="itemize">Sales Order
  2734. </li>
  2735. <li class="itemize">Work Order
  2736. </li>
  2737. <li class="itemize">Purchase Order
  2738. </li>
  2739. <li class="itemize">Bin List
  2740. </li>
  2741. <li class="itemize">Statement
  2742. </li>
  2743. <li class="itemize">Quotation
  2744. </li>
  2745. <li class="itemize">RFQ
  2746. </li>
  2747. <li class="itemize">Time Card</li></ul>
  2748. <!--l. 2189--><p class="noindent">These templates can be edited by an HTML editor. However, it is generally recommended that one back up
  2749. templates first. The reason is that some HTML editors will fully re-parse the HTML and save it back without
  2750. what they see as invalid tags. Most editors, however, will save the variable substitution tags because similar
  2751. tags are also used by Microsoft&#8217;s active server pages.
  2752. </p><!--l. 2196--><p class="indent"> Finally, some editors are known to mangle formatting, so many problems can be avoided by ensuring that
  2753. one has a backup of the templates, especially if they have already been customized.
  2754. </p><!--l. 2201--><p class="noindent">
  2755. </p>
  2756. <h4 class="subsectionHead"><span class="titlemark">15.3 </span> <a
  2757. id="x1-16100015.3"></a><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2758. class="E">E</span>X</span></span>&#x00A0;Templates</h4>
  2759. <!--l. 2203--><p class="noindent">The following templates, by default, are available in <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2760. class="E">E</span>X</span></span>&#x00A0;:
  2761. </p>
  2762. <ul class="itemize1">
  2763. <li class="itemize">Invoice
  2764. </li>
  2765. <li class="itemize">AR Transaction
  2766. </li>
  2767. <li class="itemize">AP Transaction
  2768. </li>
  2769. <li class="itemize">Packing List
  2770. </li>
  2771. <li class="itemize">Pick List
  2772. </li>
  2773. <li class="itemize">Sales Order
  2774. </li>
  2775. <li class="itemize">Work Order
  2776. </li>
  2777. <li class="itemize">Purchase Order
  2778. </li>
  2779. <li class="itemize">Bin List
  2780. </li>
  2781. <li class="itemize">Statement
  2782. </li>
  2783. <li class="itemize">Check
  2784. </li>
  2785. <li class="itemize">Receipt
  2786. </li>
  2787. <li class="itemize">Quotation
  2788. </li>
  2789. <li class="itemize">RFQ
  2790. </li>
  2791. <li class="itemize">Time Card</li></ul>
  2792. <!--l. 2222--><p class="noindent"><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2793. class="E">E</span>X</span></span>&#x00A0;templates allow one to generate PDF and postscript documents and print directly to a postscript-enabled
  2794. printer or print software (like CUPS).
  2795. </p><!--l. 2226--><p class="indent"> <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2796. class="E">E</span>X</span></span>&#x00A0;templates can be edited using a standard text editor (like vim or emacs), or using a synchronous
  2797. <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2798. class="E">E</span>X</span></span>&#x00A0;implementation such as LY X.
  2799. </p><!--l. 2231--><p class="noindent">
  2800. </p>
  2801. <h5 class="subsubsectionHead"><span class="titlemark">15.3.1 </span> <a
  2802. id="x1-16200015.3.1"></a>What is <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2803. class="E">E</span>X</span></span>&#x00A0;?</h5>
  2804. <!--l. 2233--><p class="noindent"><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2805. class="E">E</span>X</span></span>&#x00A0;(pronounced LAY-tech) is an extension on the <span class="TEX">T<span
  2806. class="E">E</span>X</span>&#x00A0;typesetting system. It largely consists of a set of
  2807. macros that allow one to focus on the structure of the document while letting the <span class="TEX">T<span
  2808. class="E">E</span>X</span>&#x00A0;engine do the heavy
  2809. lifting in terms of determining the optimal formatting for the page. <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2810. class="E">E</span>X</span></span>&#x00A0;is used in a large number of
  2811. academic journals (including those of the American Mathematics Association). It is available at <span class="obeylines-h"><a
  2812. href="http://www.tug.org" class="url" >http://www.tug.org</a></span> and is included in most Linux distributions.
  2813. </p><!--l. 2241--><p class="indent"> Like HTML, <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2814. class="E">E</span>X</span></span>&#x00A0;uses plain text documents to store the formatting information and then when the
  2815. document is rendered, attempts to fit it onto a page. <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2816. class="E">E</span>X</span></span>&#x00A0;supports the concept of stylesheets, allowing
  2817. one to separate content from format, and this feature is used in many higher-end applications, like journal
  2818. publication.
  2819. </p><!--l. 2248--><p class="indent"> Unlike HTML, <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2820. class="E">E</span>X</span></span>&#x00A0;is a complete though simple programming language that allows one to redefine
  2821. internals of the system for formatting purposes.
  2822. </p><!--l. 2252--><p class="indent"> This document is written in <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2823. class="E">E</span>X</span></span>.
  2824. </p><!--l. 2255--><p class="noindent">
  2825. </p>
  2826. <h5 class="subsubsectionHead"><span class="titlemark">15.3.2 </span> <a
  2827. id="x1-16300015.3.2"></a>Using LY X to Edit <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2828. class="E">E</span>X</span></span>&#x00A0;Templates</h5>
  2829. <!--l. 2257--><p class="noindent">LY X is a synchronous <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2830. class="E">E</span>X</span></span>&#x00A0;editor that runs on Windows, UNIX/Linux, and Mac OS X. It
  2831. requires an installed <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2832. class="E">E</span>X</span></span>-2e implementation and can be obtained at <span class="obeylines-h"><a
  2833. href="http://www.lyx.org" class="url" >http://www.lyx.org</a></span>. Like
  2834. the most common <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2835. class="E">E</span>X</span></span>&#x00A0;implementations, it is open source and is included with most Linux
  2836. distributions.
  2837. </p><!--l. 2263--><p class="noindent">
  2838. </p>
  2839. <h4 class="subsectionHead"><span class="titlemark">15.4 </span> <a
  2840. id="x1-16400015.4"></a>Customizing Logos</h4>
  2841. <!--l. 2265--><p class="noindent"><span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2842. class="E">E</span>X</span></span>&#x00A0;requires different formats of logos depending on whether the document is going to be
  2843. generated as a PDF or as postscript. Postscript requires an embedded postscript graphic, while PDF
  2844. requires any type of graphic other than embedded postscript. Usually one uses a PNG&#8217;s for
  2845. PDF&#8217;s, though GIF&#8217;s could be used as well. The logo for a <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2846. class="E">E</span>X</span></span>&#x00A0;document resides in the users
  2847. directory.
  2848. </p><!--l. 2272--><p class="indent"> HTML documents can have logos in many different formats. PNG&#8217;s are generally preferred for printing
  2849. reasons. The image can be stored anywhere and merely referenced in the HTML.
  2850. </p><!--l. 2276--><p class="indent"> Note: Always test the an invoice with images to ensure that the rest of the page format is not thrown off
  2851. by it.
  2852. </p><!--l. 2280--><p class="noindent">
  2853. </p>
  2854. <h4 class="subsectionHead"><span class="titlemark">15.5 </span> <a
  2855. id="x1-16500015.5"></a>How are They Stored in the Filesystem?</h4>
  2856. <!--l. 2282--><p class="noindent">The template directory ("templates" in the root LedgerSMB install directory) contains all the root templates
  2857. used by LedgerSMB. These follow a naming convention of COAType-templatename.ext where COAType is
  2858. the type of dataset that was created when the user was created, templatename is the name of the template,
  2859. and ext is either txt, html, or tex (for text, html, and <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  2860. class="E">E</span>X</span></span>&#x00A0;respectively).
  2861. </p><!--l. 2289--><p class="indent"> Inside this directory are one or more subdirectories where the relevant templates have been copied as
  2862. default language templates for the user. Many users can use the same user directory (which bears the name
  2863. of the LedgerSMB username). Within this directory are more subdirectories for translated templates, one for
  2864. each language created.
  2865. </p><!--l. 2296--><p class="noindent">
  2866. </p>
  2867. <h4 class="subsectionHead"><span class="titlemark">15.6 </span> <a
  2868. id="x1-16600015.6"></a>Upgrade Issues</h4>
  2869. <!--l. 2298--><p class="noindent">When LedgerSMB is upgraded, the templates are not replaced. This is designed to prevent the upgrade
  2870. script from overwriting changes made during the course of customizing the templates.
  2871. </p><!--l. 2302--><p class="indent"> Occasionally, however, the data model changes in a way which can cause the templates to stop printing
  2872. certain information. When information that was showing up before an upgrade stops showing up, one can
  2873. either upgrade the templates by copying the source template over the existing one, or one can edit the
  2874. template to make the change.
  2875. </p><!--l. 2308--><p class="noindent">
  2876. </p>
  2877. <h3 class="sectionHead"><span class="titlemark">16 </span> <a
  2878. id="x1-16700016"></a>An Introduction to the CLI</h3>
  2879. <!--l. 2310--><p class="noindent">
  2880. </p>
  2881. <h4 class="subsectionHead"><span class="titlemark">16.1 </span> <a
  2882. id="x1-16800016.1"></a>Conventions</h4>
  2883. <!--l. 2312--><p class="noindent">The command-line API will be referred to as the API.
  2884. </p><!--l. 2314--><p class="noindent">
  2885. </p>
  2886. <h4 class="subsectionHead"><span class="titlemark">16.2 </span> <a
  2887. id="x1-16900016.2"></a>Preliminaries</h4>
  2888. <!--l. 2316--><p class="noindent">Logging into LedgerSMB (1.2+) updates a row in the users_conf table containing your account configuration
  2889. defaults and other information. The implication for API users of LSMB is that you must login as part of
  2890. running API scripts. For security purposes, it is recommended that scripts prompt for a password rather than
  2891. storing it.
  2892. </p><!--l. 2322--><p class="indent"> All scripts included in the documentation can also be found in the doc/samples directory.
  2893. </p><!--l. 2325--><p class="indent"> Consider a simple example:
  2894. </p><!--l. 2327--><p class="indent"> cd /usr/local/ledgersmb ./ct.pl "login=name&amp;path=bin&amp;password=xxxxx&amp;action=search&amp;db=customer"
  2895. </p><!--l. 2330--><p class="indent"> The cd command moves your terminal session&#8217;s current working directory into the main LedgerSMB
  2896. directory. Then the LedgerSMB perl script ct.pl is called with one long line as an argument. The argument is
  2897. really several variable=value pairs separated by ampersands (&amp;). The value for the login variable is the
  2898. username that LedgerSMB is to use, and the value for the password variable is the plaintext
  2899. password.
  2900. </p><!--l. 2336--><p class="indent"> To build our examples we will use a username of "clarkkent" who has a password of "lOis,lAn3".
  2901. </p><!--l. 2339--><p class="indent"> cd /usr/local/ledgersmb ./ct.pl "login=clarkkent&amp;path=bin&amp;password=lOis,lAn3&amp;action=search&amp;db=customer"
  2902. </p><!--l. 2342--><p class="indent"> If we execute these commands we will get the html for the search form for the customer database. This
  2903. result isn&#8217;t useful in itself, but it shows we are on the right track.
  2904. </p><!--l. 2347--><p class="noindent">
  2905. </p>
  2906. <h4 class="subsectionHead"><span class="titlemark">16.3 </span> <a
  2907. id="x1-17000016.3"></a>First Script: lsmb01-cli-example.sh</h4>
  2908. <!--l. 2349--><p class="noindent">With a working example, we can start to build reproducible routines that we can grow to do some useful
  2909. work.
  2910. </p><!--l. 2352--><p class="indent"> This is a bash script which:
  2911. </p><!--l. 2354--><p class="indent"> 1. sets NOW to the current working directory 2. prompts for and reads your LedgerSMB login 3. prompts
  2912. for and reads (non-echoing) your LedgerSMB password 4. changes directory to /usr/local/ledgersmb 5.
  2913. constructs login and logout commands and a transaction command 6. logs into ledgersmb (in a real
  2914. program, output would be checked for success or failure) 7. executes the transaction 8. logs out
  2915. of ledgersmb (although this is not necessary) 9. returns to the original working directory 10.
  2916. exits
  2917. </p><!--l. 2366--><p class="indent"> Running lsmb01-cli-example.sh produces:
  2918. </p><!--l. 2368--><p class="indent"> $ lsmb01-cli-example.sh
  2919. </p><!--l. 2370--><p class="indent"> LedgerSMB login: clarkkent
  2920. </p><!--l. 2372--><p class="indent"> LedgerSMB password:
  2921. </p>
  2922. <table
  2923. class="verbatim"><tr class="verbatim"><td
  2924. class="verbatim"><div class="verbatim">
  2925. &#x003C;body&#x003E;
  2926. &#x00A0;<br />
  2927. &#x00A0;<br />&#x003C;form&#x00A0;method=post&#x00A0;action=ct.pl&#x003E;
  2928. &#x00A0;<br />
  2929. &#x00A0;<br />&#x003C;input&#x00A0;type=hidden&#x00A0;name=db&#x00A0;value=customer&#x003E;
  2930. &#x00A0;<br />
  2931. &#x00A0;<br />&#x003C;table&#x00A0;width=100%&#x003E;
  2932. &#x00A0;<br />&#x00A0;&#x00A0;&#x003C;tr&#x003E;
  2933. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x003C;th&#x00A0;class=listtop&#x003E;Search&#x003C;/th&#x003E;
  2934. &#x00A0;<br />.
  2935. &#x00A0;<br />.
  2936. &#x00A0;<br />.
  2937. </div>
  2938. </td></tr></table>
  2939. <!--l. 2387--><p class="nopar">
  2940. </p><!--l. 2389--><p class="indent"> A script like this would work well for simple batch transactions, but bash is not a very friendly language
  2941. for application programming.
  2942. </p><!--l. 2393--><p class="indent"> A nicer solution would be to use a language such as perl to drive the command line API.
  2943. </p><!--l. 2396--><p class="noindent">
  2944. </p>
  2945. <h5 class="subsubsectionHead"><span class="titlemark">16.3.1 </span> <a
  2946. id="x1-17100016.3.1"></a>Script 1 (Bash)</h5>
  2947. <table
  2948. class="verbatim"><tr class="verbatim"><td
  2949. class="verbatim"><div class="verbatim">
  2950. #!/bin/bash
  2951. &#x00A0;<br />#######################################################################
  2952. &#x00A0;<br />#
  2953. &#x00A0;<br />#&#x00A0;lsmb01-cli-example.sh
  2954. &#x00A0;<br />#&#x00A0;Copyright&#x00A0;(C)&#x00A0;2006.&#x00A0;Louis&#x00A0;B.&#x00A0;Moore
  2955. &#x00A0;<br />#
  2956. &#x00A0;<br />#&#x00A0;$Id:&#x00A0;$
  2957. &#x00A0;<br />#
  2958. &#x00A0;<br />#&#x00A0;This&#x00A0;program&#x00A0;is&#x00A0;free&#x00A0;software;&#x00A0;you&#x00A0;can&#x00A0;redistribute&#x00A0;it&#x00A0;and/or&#x00A0;modify
  2959. &#x00A0;<br />#&#x00A0;it&#x00A0;under&#x00A0;the&#x00A0;terms&#x00A0;of&#x00A0;the&#x00A0;GNU&#x00A0;General&#x00A0;Public&#x00A0;License&#x00A0;as&#x00A0;published&#x00A0;by
  2960. &#x00A0;<br />#&#x00A0;the&#x00A0;Free&#x00A0;Software&#x00A0;Foundation;&#x00A0;either&#x00A0;version&#x00A0;2&#x00A0;of&#x00A0;the&#x00A0;License,&#x00A0;or
  2961. &#x00A0;<br />#&#x00A0;(at&#x00A0;your&#x00A0;option)&#x00A0;any&#x00A0;later&#x00A0;version.
  2962. &#x00A0;<br />#
  2963. &#x00A0;<br />#&#x00A0;This&#x00A0;program&#x00A0;is&#x00A0;distributed&#x00A0;in&#x00A0;the&#x00A0;hope&#x00A0;that&#x00A0;it&#x00A0;will&#x00A0;be&#x00A0;useful,
  2964. &#x00A0;<br />#&#x00A0;but&#x00A0;WITHOUT&#x00A0;ANY&#x00A0;WARRANTY;&#x00A0;without&#x00A0;even&#x00A0;the&#x00A0;implied&#x00A0;warranty&#x00A0;of
  2965. &#x00A0;<br />#&#x00A0;MERCHANTABILITY&#x00A0;or&#x00A0;FITNESS&#x00A0;FOR&#x00A0;A&#x00A0;PARTICULAR&#x00A0;PURPOSE.&#x00A0;&#x00A0;See&#x00A0;the
  2966. &#x00A0;<br />#&#x00A0;GNU&#x00A0;General&#x00A0;Public&#x00A0;License&#x00A0;for&#x00A0;more&#x00A0;details.
  2967. &#x00A0;<br />#&#x00A0;You&#x00A0;should&#x00A0;have&#x00A0;received&#x00A0;a&#x00A0;copy&#x00A0;of&#x00A0;the&#x00A0;GNU&#x00A0;General&#x00A0;Public&#x00A0;License
  2968. &#x00A0;<br />#&#x00A0;along&#x00A0;with&#x00A0;this&#x00A0;program;&#x00A0;if&#x00A0;not,&#x00A0;write&#x00A0;to&#x00A0;the&#x00A0;Free&#x00A0;Software
  2969. &#x00A0;<br />#&#x00A0;Foundation,&#x00A0;Inc.,&#x00A0;675&#x00A0;Mass&#x00A0;Ave,&#x00A0;Cambridge,&#x00A0;MA&#x00A0;02139,&#x00A0;USA.
  2970. &#x00A0;<br />#
  2971. &#x00A0;<br />#######################################################################
  2972. &#x00A0;<br />
  2973. &#x00A0;<br />NOW=&#8216;pwd&#8216;
  2974. &#x00A0;<br />
  2975. &#x00A0;<br />echo&#x00A0;-n&#x00A0;~LedgerSMB&#x00A0;login:&#x00A0;~
  2976. &#x00A0;<br />read&#x00A0;LSLOGIN
  2977. &#x00A0;<br />echo
  2978. &#x00A0;<br />
  2979. &#x00A0;<br />echo&#x00A0;-n&#x00A0;~LedgerSMB&#x00A0;password:&#x00A0;~
  2980. &#x00A0;<br />stty&#x00A0;-echo
  2981. &#x00A0;<br />read&#x00A0;LSPWD
  2982. &#x00A0;<br />stty&#x00A0;echo
  2983. &#x00A0;<br />echo
  2984. &#x00A0;<br />
  2985. &#x00A0;<br />ARG=~login=${LSLOGIN}&amp;password=${LSPWD}&amp;path=bin&amp;action=search&amp;db=customer~
  2986. &#x00A0;<br />
  2987. &#x00A0;<br />LGIN=~login=${LSLOGIN}&amp;password=${LSPWD}&amp;path=bin&amp;action=login~
  2988. &#x00A0;<br />LGOT=~login=${LSLOGIN}&amp;password=${LSPWD}&amp;path=bin&amp;action=logout~
  2989. &#x00A0;<br />
  2990. &#x00A0;<br />cd&#x00A0;/usr/local/ledgersmb
  2991. &#x00A0;<br />
  2992. &#x00A0;<br />./login.pl&#x00A0;$LGIN&#x00A0;2&#x003E;&amp;1&#x00A0;&#x00A0;&#x003E;&#x00A0;/dev/null
  2993. &#x00A0;<br />./ct.pl&#x00A0;$ARG
  2994. &#x00A0;<br />./login.pl&#x00A0;$LGOT&#x00A0;2&#x003E;&amp;1&#x00A0;&#x00A0;&#x003E;&#x00A0;/dev/null
  2995. &#x00A0;<br />
  2996. &#x00A0;<br />cd&#x00A0;$NOW
  2997. &#x00A0;<br />
  2998. &#x00A0;<br />exit&#x00A0;0
  2999. </div>
  3000. </td></tr></table>
  3001. <!--l. 2447--><p class="nopar">
  3002. </p><!--l. 2450--><p class="noindent">
  3003. </p>
  3004. <h4 class="subsectionHead"><span class="titlemark">16.4 </span> <a
  3005. id="x1-17200016.4"></a>Second Script: lsmb02-cli-example.pl</h4>
  3006. <!--l. 2452--><p class="noindent">Our second script is written in perl and logs you in but it still uses the API in its simplest form, that is, it
  3007. builds commands and then executes them. This type of script can be used for more complex solutions than
  3008. the simple bash script above, though it is still fairly limited. If your needs require, rather than have the script
  3009. build and then execute the commands it could be written to generate a shell script which is executed by
  3010. hand.
  3011. </p><!--l. 2459--><p class="indent"> This script begins by prompting for your LedgerSMB login and password. Using the supplied
  3012. values a login command is constructed and passed into the runLScmd subroutine. runLScmd
  3013. changes directory to /usr/local/ledgersmb/ for the length of the subroutine. It formats the
  3014. command and executes it and returns both the output and error information to the caller in a
  3015. scalar.
  3016. </p><!--l. 2465--><p class="indent"> The script checks to see if there was an error in the login, exiting if there was.
  3017. </p><!--l. 2467--><p class="indent"> Next, the script reads some records which are stored in the program following the __END__ token. It
  3018. takes each record in turn, formats it then feeds each transaction through runLScmd and looks at the results
  3019. for a string that signals success.
  3020. </p><!--l. 2471--><p class="indent"> Once all the transactions are processed, runLScmd is called one last time to logout and the script
  3021. exits.
  3022. </p><!--l. 2474--><p class="noindent">
  3023. </p>
  3024. <h5 class="subsubsectionHead"><span class="titlemark">16.4.1 </span> <a
  3025. id="x1-17300016.4.1"></a>Script 2 (Perl)</h5>
  3026. <table
  3027. class="verbatim"><tr class="verbatim"><td
  3028. class="verbatim"><div class="verbatim">
  3029. #!/usr/bin/perl&#x00A0;-w
  3030. &#x00A0;<br />#
  3031. &#x00A0;<br />#&#x00A0;&#x00A0;File:&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;lsmb02-cli-example.pl
  3032. &#x00A0;<br />#&#x00A0;&#x00A0;Environment:&#x00A0;&#x00A0;LedgerSMB&#x00A0;1.2.0+
  3033. &#x00A0;<br />#&#x00A0;&#x00A0;Author:&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;Louis&#x00A0;B.&#x00A0;Moore
  3034. &#x00A0;<br />#
  3035. &#x00A0;<br />#&#x00A0;&#x00A0;Copyright&#x00A0;(C)&#x00A0;&#x00A0;&#x00A0;2006&#x00A0;&#x00A0;Louis&#x00A0;B.&#x00A0;Moore
  3036. &#x00A0;<br />#
  3037. &#x00A0;<br />#&#x00A0;&#x00A0;This&#x00A0;program&#x00A0;is&#x00A0;free&#x00A0;software;&#x00A0;you&#x00A0;can&#x00A0;redistribute&#x00A0;it&#x00A0;and/or
  3038. &#x00A0;<br />#&#x00A0;&#x00A0;modify&#x00A0;it&#x00A0;under&#x00A0;the&#x00A0;terms&#x00A0;of&#x00A0;the&#x00A0;GNU&#x00A0;General&#x00A0;Public&#x00A0;License
  3039. &#x00A0;<br />#&#x00A0;&#x00A0;as&#x00A0;published&#x00A0;by&#x00A0;the&#x00A0;Free&#x00A0;Software&#x00A0;Foundation;&#x00A0;either&#x00A0;version&#x00A0;2
  3040. &#x00A0;<br />#&#x00A0;&#x00A0;of&#x00A0;the&#x00A0;License,&#x00A0;or&#x00A0;(at&#x00A0;your&#x00A0;option)&#x00A0;any&#x00A0;later&#x00A0;version.
  3041. &#x00A0;<br />#
  3042. &#x00A0;<br />#&#x00A0;&#x00A0;This&#x00A0;program&#x00A0;is&#x00A0;distributed&#x00A0;in&#x00A0;the&#x00A0;hope&#x00A0;that&#x00A0;it&#x00A0;will&#x00A0;be&#x00A0;useful,
  3043. &#x00A0;<br />#&#x00A0;&#x00A0;but&#x00A0;WITHOUT&#x00A0;ANY&#x00A0;WARRANTY;&#x00A0;without&#x00A0;even&#x00A0;the&#x00A0;implied&#x00A0;warranty&#x00A0;of
  3044. &#x00A0;<br />#&#x00A0;&#x00A0;MERCHANTABILITY&#x00A0;or&#x00A0;FITNESS&#x00A0;FOR&#x00A0;A&#x00A0;PARTICULAR&#x00A0;PURPOSE.&#x00A0;&#x00A0;See&#x00A0;the
  3045. &#x00A0;<br />#&#x00A0;&#x00A0;GNU&#x00A0;General&#x00A0;Public&#x00A0;License&#x00A0;for&#x00A0;more&#x00A0;details.
  3046. &#x00A0;<br />#
  3047. &#x00A0;<br />#&#x00A0;&#x00A0;You&#x00A0;should&#x00A0;have&#x00A0;received&#x00A0;a&#x00A0;copy&#x00A0;of&#x00A0;the&#x00A0;GNU&#x00A0;General&#x00A0;Public&#x00A0;License
  3048. &#x00A0;<br />#&#x00A0;&#x00A0;along&#x00A0;with&#x00A0;this&#x00A0;program;&#x00A0;if&#x00A0;not,&#x00A0;write&#x00A0;to&#x00A0;the&#x00A0;Free&#x00A0;Software
  3049. &#x00A0;<br />#&#x00A0;&#x00A0;Foundation,&#x00A0;Inc.,&#x00A0;59&#x00A0;Temple&#x00A0;Place&#x00A0;-&#x00A0;Suite&#x00A0;330,&#x00A0;Boston,&#x00A0;MA&#x00A0;&#x00A0;02111-1307,&#x00A0;USA.
  3050. &#x00A0;<br />#
  3051. &#x00A0;<br />#&#x00A0;&#x00A0;Revision:
  3052. &#x00A0;<br />#&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;$Id$
  3053. &#x00A0;<br />#
  3054. &#x00A0;<br />#
  3055. &#x00A0;<br />
  3056. &#x00A0;<br />use&#x00A0;File::chdir;
  3057. &#x00A0;<br />use&#x00A0;HTML::Entities;
  3058. &#x00A0;<br />
  3059. &#x00A0;<br />
  3060. &#x00A0;<br />print&#x00A0;~\n\nLedgerSMB&#x00A0;login:&#x00A0;~;
  3061. &#x00A0;<br />my&#x00A0;$login&#x00A0;=&#x00A0;&#x003C;STDIN&#x003E;;
  3062. &#x00A0;<br />chomp($login);
  3063. &#x00A0;<br />
  3064. &#x00A0;<br />
  3065. &#x00A0;<br />print&#x00A0;~\nLedgerSMB&#x00A0;password:&#x00A0;~;
  3066. &#x00A0;<br />system(~stty&#x00A0;-echo~);
  3067. &#x00A0;<br />my&#x00A0;$pwd&#x00A0;=&#x00A0;&#x003C;STDIN&#x003E;;
  3068. &#x00A0;<br />system(~stty&#x00A0;echo~);
  3069. &#x00A0;<br />chomp($pwd);
  3070. &#x00A0;<br />print&#x00A0;~\n\n~;
  3071. &#x00A0;<br />
  3072. &#x00A0;<br />$cmd&#x00A0;=&#x00A0;~login=~&#x00A0;.&#x00A0;$login&#x00A0;.&#x00A0;&#8217;&amp;password=&#8217;&#x00A0;.&#x00A0;$pwd&#x00A0;.&#x00A0;&#8217;&amp;path=bin&amp;action=login&#8217;;
  3073. &#x00A0;<br />
  3074. &#x00A0;<br />$signin&#x00A0;=&#x00A0;runLScmd(~./login.pl~,$cmd);
  3075. &#x00A0;<br />
  3076. &#x00A0;<br />if&#x00A0;(&#x00A0;$signin&#x00A0;=~&#x00A0;m/Error:/&#x00A0;)&#x00A0;{
  3077. &#x00A0;<br />
  3078. &#x00A0;<br />print&#x00A0;~\nLogin&#x00A0;error\n~;
  3079. &#x00A0;<br />exit;
  3080. &#x00A0;<br />
  3081. &#x00A0;<br />}
  3082. &#x00A0;<br />
  3083. &#x00A0;<br />
  3084. &#x00A0;<br />while&#x00A0;(&#x003C;main::DATA&#x003E;)&#x00A0;{
  3085. &#x00A0;<br />
  3086. &#x00A0;<br />chomp;
  3087. &#x00A0;<br />@rec&#x00A0;=&#x00A0;split(/\|/);
  3088. &#x00A0;<br />
  3089. &#x00A0;<br />$arg&#x00A0;=&#x00A0;&#8217;path=bin/mozilla&amp;login=&#8217;&#x00A0;.&#x00A0;$login&#x00A0;.&#x00A0;&#8217;&amp;password=&#8217;&#x00A0;.&#x00A0;$pwd&#x00A0;.
  3090. &#x00A0;<br />&#8217;&amp;action=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[0],0,35))&#x00A0;.
  3091. &#x00A0;<br />&#8217;&amp;db=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;$rec[1]&#x00A0;.
  3092. &#x00A0;<br />&#8217;&amp;name=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[2],0,35))&#x00A0;.
  3093. &#x00A0;<br />&#8217;&amp;vendornumber=&#8217;&#x00A0;.&#x00A0;$rec[3]&#x00A0;.
  3094. &#x00A0;<br />&#8217;&amp;address1=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[4],0,35))&#x00A0;.
  3095. &#x00A0;<br />&#8217;&amp;address2=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[5],0,35))&#x00A0;.
  3096. &#x00A0;<br />&#8217;&amp;city=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[6],0,35))&#x00A0;.
  3097. &#x00A0;<br />&#8217;&amp;state=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[7],0,35))&#x00A0;.
  3098. &#x00A0;<br />&#8217;&amp;zipcode=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[8],0,35))&#x00A0;.
  3099. &#x00A0;<br />&#8217;&amp;country=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[9],0,35))&#x00A0;.
  3100. &#x00A0;<br />&#8217;&amp;phone=&#8217;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;.&#x00A0;escape(substr($rec[10],0,20))&#x00A0;.
  3101. &#x00A0;<br />&#8217;&amp;tax_2150=1&#8217;&#x00A0;.
  3102. &#x00A0;<br />&#8217;&amp;taxaccounts=2150&#8217;&#x00A0;.
  3103. &#x00A0;<br />&#8217;&amp;taxincluded=0&#8217;&#x00A0;.
  3104. &#x00A0;<br />&#8217;&amp;terms=0&#8217;;
  3105. &#x00A0;<br />
  3106. &#x00A0;<br />$rc=runLScmd(~./ct.pl~,$arg);
  3107. &#x00A0;<br />
  3108. &#x00A0;<br />if&#x00A0;($rc&#x00A0;=~&#x00A0;m/Vendor&#x00A0;saved!/)&#x00A0;{
  3109. &#x00A0;<br />
  3110. &#x00A0;<br />print&#x00A0;~$rec[2]&#x00A0;SAVED\n~;
  3111. &#x00A0;<br />
  3112. &#x00A0;<br />}&#x00A0;else&#x00A0;{
  3113. &#x00A0;<br />
  3114. &#x00A0;<br />print&#x00A0;~$rec[2]&#x00A0;ERROR\n~;
  3115. &#x00A0;<br />
  3116. &#x00A0;<br />}
  3117. &#x00A0;<br />
  3118. &#x00A0;<br />}
  3119. &#x00A0;<br />
  3120. &#x00A0;<br />
  3121. &#x00A0;<br />$cmd&#x00A0;=&#x00A0;~login=~&#x00A0;.&#x00A0;$login&#x00A0;.&#x00A0;&#8217;&amp;password=&#8217;&#x00A0;.&#x00A0;$pwd&#x00A0;.&#x00A0;&#8217;&amp;path=bin&amp;action=logout&#8217;;
  3122. &#x00A0;<br />
  3123. &#x00A0;<br />$signin&#x00A0;=&#x00A0;runLScmd(~./login.pl~,$cmd);
  3124. &#x00A0;<br />
  3125. &#x00A0;<br />if&#x00A0;(&#x00A0;$signin&#x00A0;=~&#x00A0;m/Error:/&#x00A0;)&#x00A0;{
  3126. &#x00A0;<br />
  3127. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;print&#x00A0;~\nLogout&#x00A0;error\n~;
  3128. &#x00A0;<br />
  3129. &#x00A0;<br />}
  3130. &#x00A0;<br />
  3131. &#x00A0;<br />exit;
  3132. &#x00A0;<br />
  3133. &#x00A0;<br />
  3134. &#x00A0;<br />#*******************************************************
  3135. &#x00A0;<br />#&#x00A0;Subroutines
  3136. &#x00A0;<br />#*******************************************************
  3137. &#x00A0;<br />
  3138. &#x00A0;<br />
  3139. &#x00A0;<br />sub&#x00A0;runLScmd&#x00A0;{
  3140. &#x00A0;<br />
  3141. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;my&#x00A0;$cmd&#x00A0;&#x00A0;=&#x00A0;shift;
  3142. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;my&#x00A0;$args&#x00A0;=&#x00A0;shift;
  3143. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;my&#x00A0;$i&#x00A0;&#x00A0;&#x00A0;&#x00A0;=&#x00A0;0;
  3144. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;my&#x00A0;$results;
  3145. &#x00A0;<br />
  3146. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;local&#x00A0;$CWD&#x00A0;=&#x00A0;~/usr/local/ledgersmb/~;
  3147. &#x00A0;<br />
  3148. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;$cmd&#x00A0;=&#x00A0;$cmd&#x00A0;.&#x00A0;~&#x00A0;\~~&#x00A0;.&#x00A0;$args&#x00A0;.&#x00A0;~\~~;
  3149. &#x00A0;<br />
  3150. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;$results&#x00A0;=&#x00A0;&#8216;$cmd&#x00A0;2&#x003E;&amp;1&#8216;;
  3151. &#x00A0;<br />
  3152. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;return&#x00A0;$results;
  3153. &#x00A0;<br />
  3154. &#x00A0;<br />}
  3155. &#x00A0;<br />
  3156. &#x00A0;<br />sub&#x00A0;escape&#x00A0;{
  3157. &#x00A0;<br />
  3158. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;my&#x00A0;$str&#x00A0;=&#x00A0;shift;
  3159. &#x00A0;<br />
  3160. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;if&#x00A0;($str)&#x00A0;{
  3161. &#x00A0;<br />
  3162. &#x00A0;<br />decode_entities($str);
  3163. &#x00A0;<br />$str&#x00A0;=~&#x00A0;s/([^a-zA-Z0-9_.-])/sprintf(~%%%02x~,&#x00A0;ord($1))/ge;
  3164. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;}
  3165. &#x00A0;<br />
  3166. &#x00A0;<br />&#x00A0;&#x00A0;&#x00A0;&#x00A0;return&#x00A0;$str;
  3167. &#x00A0;<br />
  3168. &#x00A0;<br />}
  3169. &#x00A0;<br />
  3170. &#x00A0;<br />
  3171. &#x00A0;<br />#*******************************************************
  3172. &#x00A0;<br />#&#x00A0;Record&#x00A0;Format
  3173. &#x00A0;<br />#*******************************************************
  3174. &#x00A0;<br />#
  3175. &#x00A0;<br />#&#x00A0;action&#x00A0;|&#x00A0;db&#x00A0;|&#x00A0;name&#x00A0;|&#x00A0;vendornumber&#x00A0;|&#x00A0;address1&#x00A0;|&#x00A0;address2&#x00A0;|&#x00A0;city&#x00A0;|&#x00A0;state&#x00A0;|&#x00A0;zipcode&#x00A0;|&#x00A0;country&#x00A0;|&#x00A0;phone
  3176. &#x00A0;<br />#
  3177. &#x00A0;<br />
  3178. &#x00A0;<br />__END__
  3179. &#x00A0;<br />save|vendor|Parts&#x00A0;are&#x00A0;Us|1377|238&#x00A0;Riverview|Suite&#x00A0;11|Cheese&#x00A0;Head|WI|56743|USA|555-123-3322|
  3180. &#x00A0;<br />save|vendor|Widget&#x00A0;Heaven|1378|41&#x00A0;S.&#x00A0;Riparian&#x00A0;Way||Show&#x00A0;Me|MO|39793|USA|555-231-3309|
  3181. &#x00A0;<br />save|vendor|Consolidated&#x00A0;Spackle|1379|1010&#x00A0;Binary&#x00A0;Lane|Dept&#x00A0;1101|Beverly&#x00A0;Hills|CA|90210|USA|555-330-7639&#x00A0;x772|
  3182. &#x00A0;<br />
  3183. &#x00A0;<br />
  3184. </div>
  3185. </td></tr></table>
  3186. <!--l. 2631--><p class="nopar">
  3187. </p>
  3188. <h1 class="partHead"><span class="titlemark">Part&#x00A0;II<br /></span><a
  3189. id="x1-174000II"></a>Technical Overview</h1>
  3190. <h3 class="sectionHead"><span class="titlemark">17 </span> <a
  3191. id="x1-17500017"></a>Basic Architecture</h3>
  3192. <!--l. 2642--><p class="noindent">LedgerSMB is a web-based Perl program that interfaces with PostgreSQL using the relevant Perl modules.
  3193. The code is well partitioned, and the main operation modules are written in an object oriented
  3194. way.
  3195. </p><!--l. 2647--><p class="noindent">
  3196. </p>
  3197. <h4 class="subsectionHead"><span class="titlemark">17.1 </span> <a
  3198. id="x1-17600017.1"></a>The Software Stack</h4>
  3199. <hr class="figure" /><div class="figure"
  3200. ><table class="figure"><tr class="figure"><td class="figure"
  3201. >
  3202. <a
  3203. id="x1-1760018"></a>
  3204. <!--l. 9--><p class="center"> <img
  3205. src="LedgerSMB-manual6x.png" alt="PICT" />
  3206. <br /></p><table class="caption"
  3207. ><tr style="vertical-align:baseline;" class="caption"><td class="id">Figure&#x00A0;8: </td><td
  3208. class="content">The LedgerSMB software stack in a Typical Implementation</td></tr></table><!--tex4ht:label?: x1-1760018 -->
  3209. </td></tr></table></div><hr class="endfigure" />
  3210. <!--l. 2658--><p class="indent"> LedgerSMB runs in a Perl interpreter. I do not currently know if it is possible to run it with Perl2C or
  3211. other language converters to run in other environments. However, except for high-capacity environments,
  3212. Perl is a good language choice for this sort of program.
  3213. </p><!--l. 2663--><p class="indent"> LedgerSMB used to support DB2 and Oracle as well as PostgreSQL. However, currently some of the
  3214. functionality is implemented using PostgreSQL user-defined functions. These would need to be ported to
  3215. other database managers in order to make the software work on these. It should not be too hard, but the fact
  3216. that it has not been done yet may mean that there is no real demand for running the software under other
  3217. RDBMS&#8217;s.
  3218. </p><!--l. 2670--><p class="indent"> One can substitute other web servers for Apache. Normally LedgerSMB is run as a CGI program
  3219. but it may be possible to run it in the web server process (note that this may not be entirely
  3220. thread-safe).
  3221. </p><!--l. 2674--><p class="indent"> The operating system can be any that supports a web server and Perl (since PostgreSQL need not run on
  3222. the same system). However, there are a few issues running LedgerSMB on Windows (most notably in trying
  3223. to get Postscript documents to print properly).
  3224. </p><!--l. 2679--><p class="indent"> On the client side, any web-browser will work. Currently, the layout is different for Lynx (which doesn&#8217;t
  3225. support frames), and the layout is not really useful under eLinks (the replacement for Lynx which does
  3226. support frames). Some functionality requires Javascript to work properly, though the application is usable
  3227. without these features.
  3228. </p>
  3229. <h4 class="subsectionHead"><span class="titlemark">17.2 </span> <a
  3230. id="x1-17700017.2"></a>Capacity Planning</h4>
  3231. <!--l. 2688--><p class="noindent">Some companies may ask how scalable LedgerSMB is. In general, it is assumed that few companies are
  3232. going to have a need for a high-concurrency accounting system. However, with all the features available in
  3233. LedgerSMB, the staff that may have access to some of the application may be senior enough to make the
  3234. question worthwhile.
  3235. </p><!--l. 2694--><p class="indent"> This question also becomes more important when companies might look at integrating LedgerSMB with
  3236. a CRM solution, online store, or other environment. This section looks at a number of the known issues and
  3237. their solutions.
  3238. </p><!--l. 2700--><p class="noindent">
  3239. </p>
  3240. <h5 class="subsubsectionHead"><span class="titlemark">17.2.1 </span> <a
  3241. id="x1-17800017.2.1"></a>Scalability Strategies</h5>
  3242. <!--l. 2702--><p class="noindent">LedgerSMB is a fairly standard web-based application. However, sometimes the database schema changes
  3243. during upgrades. In these cases, it becomes impossible to use different versions of the software against the
  3244. same database version safely. LedgerSMB checks the version of the database and if the version is higher than
  3245. the version of the software that is running, will refuse to run.
  3246. </p><!--l. 2709--><p class="indent"> Therefore although one strategy might be to run several front-end web servers with LedgerSMB, in
  3247. reality this can be a bit of a problem. One solution is to take half of the front-end servers off-line while
  3248. doing the initial upgrade, and then take the other offline to upgrade when these are brought back
  3249. online.
  3250. </p><!--l. 2715--><p class="indent"> The database manager is less scalable in the sense that one cannot just add more database servers and
  3251. expect to carry on as normal. However, aside from the known issues listed below, there are few performance
  3252. issues with it. If complex reports are necessary, these can be moved to a replica database (perhaps using
  3253. Slony-I).
  3254. </p><!--l. 2721--><p class="indent"> If this solution is insufficient for database scalability, one might be able to move staff who do not need
  3255. real-time access to new entries onto a PG-Pool/Slony-I cluster where new transactions are entered on the
  3256. master and other data is looked up on the replica. In certain circumstances, one can also offload a number of
  3257. other queries from the master database in order to minimize the load. LedgerSMB has very few issues in the
  3258. scalability of the application.
  3259. </p><!--l. 2730--><p class="noindent">
  3260. </p>
  3261. <h5 class="subsubsectionHead"><span class="titlemark">17.2.2 </span> <a
  3262. id="x1-17900017.2.2"></a>Database Maintenance</h5>
  3263. <!--l. 2732--><p class="noindent">PostgreSQL uses a technique called Multi-version Concurrency Control (MVCC) to provide a snapshot of the
  3264. database at the beginning of a statement or transaction (depending on the transaction isolation level). When a
  3265. row is updated, PostgreSQL leaves the old row in the database, and inserts a new version of that row into the
  3266. table. Over time, unless those old rows are removed, performance can degrade as PostgreSQL has to search
  3267. through all the old versions of the row in order to determine which one ought to be the current
  3268. one.
  3269. </p><!--l. 2741--><p class="indent"> Due to the way the SQL statements are executed in LedgerSMB, most inserts will also create a dead
  3270. row.
  3271. </p><!--l. 2744--><p class="indent"> A second problem occurs in that each transaction is given a transaction id. These id&#8217;s are numbered using
  3272. 32-bit integers. If the transaction id wraps around (prior to 8.1), data from transactions that appear
  3273. (due to the wraparound) to be in the future suddenly becomes inaccessible. This problem was
  3274. corrected in PostgreSQL 8.1, where the database will refuse to accept new transactions if the
  3275. transaction ID gets too close to a wraparound. So while the problem is not as serious in 8.1, the
  3276. application merely becomes inaccessible rather than displaying apparent data loss. Wraparound
  3277. would occur after about a billion transactions between all databases running on that instance of
  3278. PostgreSQL.
  3279. </p><!--l. 2755--><p class="indent"> Prior to 8.1, the main way to prevent both these problems was to run a periodic vacuumdb command
  3280. from cron (UNIX/Linux) or the task scheduler (Windows). In 8.1 or later, autovacuum capabilities are part of
  3281. the back-end and can be configured with the database manager. See the PostgreSQL documentation for
  3282. treatment of these subjects.
  3283. </p><!--l. 2761--><p class="indent"> In general, if performance appears to be slowly degrading, one should try to run vacuumdb -z from the
  3284. shell in order to attempt to reclaim space and provide the planner with accurate information about the size
  3285. and composition of the tables. If this fails, then one can go to other methods of determining the bottleneck
  3286. and what to do about it.
  3287. </p><!--l. 2769--><p class="noindent">
  3288. </p>
  3289. <h5 class="subsubsectionHead"><span class="titlemark">17.2.3 </span> <a
  3290. id="x1-18000017.2.3"></a>Known issues</h5>
  3291. <!--l. 2771--><p class="noindent">The PostgreSQL planner assumes a minimum page size of ten pages for a physically empty table. The
  3292. reasoning behind this choice is that a table could grow rapidly and one could end up with bad database
  3293. performance if the planner assumes a very small table.
  3294. </p><!--l. 2776--><p class="indent"> However, if you end up with joins between a very large table with millions of rows and a physically
  3295. empty table, one can end up with a very bad query plan. In this case, the planner will choose a nested loop
  3296. join and run through this loop for every row in the large table. As a result, performance will suddenly drop
  3297. once the large table becomes too large to effectively do index scans of the join criteria on both tables.
  3298. This problem most often occurs when people have no warehouses, departments, or projects
  3299. defined and are running systems with a large number of transactions (such as a point of sale
  3300. environment).
  3301. </p><!--l. 2786--><p class="indent"> Last time I saw this problem, the server would wait for thirty seconds to display a new point of sale
  3302. screen while the server CPU activity would spike to 100%.
  3303. </p><!--l. 2790--><p class="indent"> One solution is to define one warehouse, department, and project, and then run vacuumdb -z from the
  3304. shell to force the planner to acknowledge these tables as single-row tables. The other option is to go into the
  3305. source code and edit the database queries to omit unused tables.
  3306. </p><!--l. 2796--><p class="noindent">
  3307. </p>
  3308. <h3 class="sectionHead"><span class="titlemark">18 </span> <a
  3309. id="x1-18100018"></a>Customization Possibilities</h3>
  3310. <!--l. 2798--><p class="noindent">LedgerSMB is designed to be customized relatively easily and rapidly. In general, the source
  3311. code is well written and compartmentalized. This section covers the basic possibilities involving
  3312. customization.
  3313. </p><!--l. 2803--><p class="noindent">
  3314. </p>
  3315. <h4 class="subsectionHead"><span class="titlemark">18.1 </span> <a
  3316. id="x1-18200018.1"></a>Brief Guide to the Source Code</h4>
  3317. <!--l. 2805--><p class="noindent">LedgerSMB is an application with over 34000 lines of code. While it is not possible to cover the entire
  3318. application here, a brief overview of the source code is in order.
  3319. </p><!--l. 2809--><p class="indent"> In the root of the install directory, one will find a setup.pl program, a number of other .pl programs, and a
  3320. number of directories. The setup.pl program is used to update or install LedgerSMB. The other .pl programs
  3321. provide a basic set of services for the framework (including authentication) and then pass the work on to the
  3322. data entry screen file in the bin directory.
  3323. </p><!--l. 2816--><p class="indent"> The bin directory contains another directory for each terminal type. The main two offered are lynx and
  3324. mozilla. Lynx would be used for web browsers that do not support frames and is ideal for a text-mode VGA
  3325. terminal. Mozilla is the terminal type used for most other web browsers. The perl files within these
  3326. directories provides the user interface of the software.
  3327. </p><!--l. 2823--><p class="indent"> The css directory in the root install directory contains CSS documents to provide various stylesheets one
  3328. can select for changing various aspects of the look and feel of the application.
  3329. </p><!--l. 2827--><p class="indent"> The locale directory contains translation files that LedgerSMB uses to translate between different
  3330. languages. One could add translations to these files if necessary.
  3331. </p><!--l. 2831--><p class="indent"> The LSMB directory is where the Perl modules reside that provide the core business logic in LedgerSMB.
  3332. These modules provide functionality such as form handling, email capabilities, and access to the database
  3333. through its at least partially object oriented API.
  3334. </p><!--l. 2836--><p class="indent"> Finally, the sql directory provides the database schemas and upgrade scripts.
  3335. </p><!--l. 2840--><p class="noindent">
  3336. </p>
  3337. <h4 class="subsectionHead"><span class="titlemark">18.2 </span> <a
  3338. id="x1-18300018.2"></a>Data Entry Screens</h4>
  3339. <!--l. 2842--><p class="noindent">One can customize the data entry screens to optimize work flow, display additional information,
  3340. etc.
  3341. </p><!--l. 2846--><p class="noindent">
  3342. </p>
  3343. <h5 class="subsubsectionHead"><span class="titlemark">18.2.1 </span> <a
  3344. id="x1-18400018.2.1"></a>Examples</h5>
  3345. <!--l. 2848--><p class="noindent">We set up hot keys for payment lines, automatically focused the keyboard on the last partnumber field,
  3346. removed separate print and post buttons to ensure that invoices were always printed and posted together,
  3347. and removed the ability to print to the screen, and even the ability to scan items in when an invoice was
  3348. received (using a portable data terminal) and import this data into LedgerSMB. Finally we added the ability
  3349. to reconcile the till online in a paperless manner.
  3350. </p><!--l. 2856--><p class="indent"> For another customer, we added the ability to print AR invoices in plain text format and added templates
  3351. (based on the POS sales template) to do this.
  3352. </p><!--l. 2861--><p class="noindent">
  3353. </p>
  3354. <h4 class="subsectionHead"><span class="titlemark">18.3 </span> <a
  3355. id="x1-18500018.3"></a>Extensions</h4>
  3356. <!--l. 2863--><p class="noindent">One can add functionality to the Perl modules in the LSMB directory and often add missing functions
  3357. easily.
  3358. </p><!--l. 2867--><p class="noindent">
  3359. </p>
  3360. <h5 class="subsubsectionHead"><span class="titlemark">18.3.1 </span> <a
  3361. id="x1-18600018.3.1"></a>Examples</h5>
  3362. <!--l. 2869--><p class="noindent">For one customer, we added a module to take data from a portable data terminal collected when inventory
  3363. items were taken and use that to add shrinkage and loss adjustments. We also extended the parts model to
  3364. add a check id flag (for alcohol sales) and added this flag to the user interface.
  3365. </p><!--l. 2875--><p class="indent"> For another customer, we added a complex invoice/packing slip tracking system that allowed one to
  3366. track all the printed documents associated with an order or invoice.
  3367. </p><!--l. 2880--><p class="noindent">
  3368. </p>
  3369. <h4 class="subsectionHead"><span class="titlemark">18.4 </span> <a
  3370. id="x1-18700018.4"></a>Templates</h4>
  3371. <!--l. 2882--><p class="noindent">As noted before templates can be modified or extended, though sometimes this involves extending the user
  3372. interface scripts. Most templates are easy enough to modify.
  3373. </p><!--l. 2887--><p class="noindent">
  3374. </p>
  3375. <h5 class="subsubsectionHead"><span class="titlemark">18.4.1 </span> <a
  3376. id="x1-18800018.4.1"></a>Examples</h5>
  3377. <!--l. 2889--><p class="noindent">For one customer we added text-only invoices for AR and AP transactions/Invoices and an ability to use
  3378. Javascript in them to automatically print them on load.
  3379. </p><!--l. 2894--><p class="noindent">
  3380. </p>
  3381. <h4 class="subsectionHead"><span class="titlemark">18.5 </span> <a
  3382. id="x1-18900018.5"></a>Reports</h4>
  3383. <!--l. 2896--><p class="noindent">The fact that all the data is available within the database manager is a huge advantage of LedgerSMB over
  3384. Quickbooks and the like. The rapid development of reports allows for one to easily develop reports of any
  3385. sort within LedgerSMB.
  3386. </p><!--l. 2902--><p class="noindent">
  3387. </p>
  3388. <h5 class="subsubsectionHead"><span class="titlemark">18.5.1 </span> <a
  3389. id="x1-19000018.5.1"></a>Examples</h5>
  3390. <!--l. 2904--><p class="noindent">For one customer, we developed a report of parts sold and received during arbitrary time frames. The report
  3391. allows one to go back and look up the invoices involved.
  3392. </p><!--l. 2909--><p class="noindent">
  3393. </p>
  3394. <h3 class="sectionHead"><span class="titlemark">19 </span> <a
  3395. id="x1-19100019"></a>Integration Possibilities</h3>
  3396. <!--l. 2911--><p class="noindent">An open database system and programming API allows for many types of integration. There are some
  3397. challenges, but in the end, one can integrate a large number of tools.
  3398. </p><!--l. 2916--><p class="noindent">
  3399. </p>
  3400. <h4 class="subsectionHead"><span class="titlemark">19.1 </span> <a
  3401. id="x1-19200019.1"></a>Reporting Tools</h4>
  3402. <!--l. 2918--><p class="noindent">Any reporting tool which can access the PostgreSQL database can be used with LedgerSMB for custom
  3403. reporting. These can include programs like Microsoft Access and Excel (using the ODBC drivers), PgAccess
  3404. (A PostgreSQL front-end written in TCL/Tk with a similar feel to Access), Rekall, Crystal Reports,
  3405. OpenOffice and more.
  3406. </p><!--l. 2925--><p class="noindent">
  3407. </p>
  3408. <h5 class="subsubsectionHead"><span class="titlemark">19.1.1 </span> <a
  3409. id="x1-19300019.1.1"></a>Examples</h5>
  3410. <!--l. 2927--><p class="noindent">We have created spreadsheets of the summaries of activity by day and used the ODBC driver to import these
  3411. into Excel. Excel can also read HTML tables, so one can use PostgreSQL to create an HTML table of the result
  3412. and save it with a .xls extension so that Windows opens it with Excel. These could then be served via the
  3413. same web server that serves LedgerSMB.
  3414. </p><!--l. 2935--><p class="noindent">
  3415. </p>
  3416. <h4 class="subsectionHead"><span class="titlemark">19.2 </span> <a
  3417. id="x1-19400019.2"></a>Line of Business Tools on PostgreSQL</h4>
  3418. <!--l. 2937--><p class="noindent">Various line of business tools have been written using PostgreSQL in large part due to the fact that it is far
  3419. more mature than MySQL in areas relating to data integrity enforcement, transactional processing, and the
  3420. like. These tools can be integrated with LedgerSMB in various ways. One could integrate this program with
  3421. the HERMES CRM framework, for example.
  3422. </p><!--l. 2945--><p class="noindent">
  3423. </p>
  3424. <h5 class="subsubsectionHead"><span class="titlemark">19.2.1 </span> <a
  3425. id="x1-19500019.2.1"></a>Known Issues</h5>
  3426. <!--l. 2947--><p class="noindent">LedgerSMB uses a single &#8217;id&#8217; sequence across many tables. At the same time it is expected that these tables
  3427. do not have identical id values in their records as they are used as a sort of pseudo-foreign key by the
  3428. acc_trans table which stores the financial transaction information.
  3429. </p><!--l. 2953--><p class="indent"> If the integration solution does not keep this in mind, it is possible to create a situation where the account
  3430. transactions are ambiguously associated with a number of different types of financial transactions. This
  3431. would lead to a large number of problems.
  3432. </p><!--l. 2959--><p class="noindent">
  3433. </p>
  3434. <h5 class="subsubsectionHead"><span class="titlemark">19.2.2 </span> <a
  3435. id="x1-19600019.2.2"></a>Strategies</h5>
  3436. <!--l. 2961--><p class="noindent">In general, it is advisable to run all such programs that benefit from integration in the same database but
  3437. under different schemas. This allows PostgreSQL to become the main method of synchronizing the data in
  3438. real time. However, sometimes this can require dumping the database, recreating the tables etc. in a different
  3439. schema and importing the data back into LedgerSMB.
  3440. </p><!--l. 2968--><p class="indent"> One possibility for this sort of integration is to use database triggers to replicate the data between the
  3441. applications in real-time. This can avoid the main issue of duplicate id&#8217;s. One issue that can occur however
  3442. relates to updates. If one updates a customer record in HERMES, for example, how do we know which
  3443. record to update in LedgerSMB? There are solutions to this problem but they do require some
  3444. forethought.
  3445. </p><!--l. 2975--><p class="indent"> A second possibility is to use views to allow one application to present the data from the other as its own.
  3446. This can be cleaner regarding update issues, but it can also pose issues regarding duplicate id
  3447. fields.
  3448. </p><!--l. 2981--><p class="noindent">
  3449. </p>
  3450. <h5 class="subsubsectionHead"><span class="titlemark">19.2.3 </span> <a
  3451. id="x1-19700019.2.3"></a>Examples</h5>
  3452. <!--l. 2983--><p class="noindent">Others have integrated L&#8217;ane POS and LedgerSMB in order to make it work better with touch screen
  3453. devices. Still others have successfully integrated LedgerSMB and Interchange. In both cases, I believe that
  3454. triggers were used to perform the actual integration.
  3455. </p><!--l. 2989--><p class="noindent">
  3456. </p>
  3457. <h4 class="subsectionHead"><span class="titlemark">19.3 </span> <a
  3458. id="x1-19800019.3"></a>Line of Business Tools on other RDBMS&#8217;s</h4>
  3459. <!--l. 2991--><p class="noindent">Often there are requests to integrate LedgerSMB with applications like SugarCRM, OSCommerce, and other
  3460. applications running on MySQL or other database managers. This is a far more complex field and it requires
  3461. a great deal more effort than integrating applications within the same database.
  3462. </p><!--l. 2998--><p class="noindent">
  3463. </p>
  3464. <h5 class="subsubsectionHead"><span class="titlemark">19.3.1 </span> <a
  3465. id="x1-19900019.3.1"></a>Strategies</h5>
  3466. <!--l. 3000--><p class="noindent">Real-time integration is not always possible. MySQL does not support the SQL extension SQL/MED
  3467. (Management of External Data) that supports non-MySQL data sources so it is not possible to replicate the
  3468. data in real-time. Therefore one generally resorts to integrating the system using time-based updates.
  3469. Replication may be somewhat error-prone unless the database manager supports triggers (first added to
  3470. MySQL in 5.0) or other mechanisms to ensure that all changed records can be detected and replicated. In
  3471. general, it is usually advisable to add two fields to the record&#8211; one that shows the insert time and one that
  3472. shows the last update.
  3473. </p><!--l. 3011--><p class="indent"> Additionally, I would suggest adding additional information to the LedgerSMB tables so that you can
  3474. track the source record from the other application in the case of an update.
  3475. </p><!--l. 3015--><p class="indent"> In general, one must write replication scripts that dump the information from one and add it to the other.
  3476. This must go both ways.
  3477. </p><!--l. 3019--><p class="noindent">
  3478. </p>
  3479. <h5 class="subsubsectionHead"><span class="titlemark">19.3.2 </span> <a
  3480. id="x1-20000019.3.2"></a>Integration Products and Open Source Projects</h5>
  3481. <!--l. 3021--><p class="noindent">While many people write Perl scripts to accomplish the replication, an open source project exists called
  3482. DBI-Link. This package requires PL/Perl to be installed in PostgreSQL, and it allows PostgreSQL to present
  3483. any data accessible via Perl&#8217;s DBI framework as PostgreSQL tables. DBI-Link can be used to allow
  3484. PostgreSQL to pull the data from MySQL or other database managers.
  3485. </p><!--l. 3028--><p class="indent"> DBI-Link can simplify the replication process by reducing the operation to a set of SQL queries.
  3486. </p><!--l. 3032--><p class="noindent">
  3487. </p>
  3488. <h3 class="sectionHead"><span class="titlemark">20 </span> <a
  3489. id="x1-20100020"></a>Customization Guide</h3>
  3490. <!--l. 3034--><p class="noindent">This section is meant to provide a programmer with an understanding of the technologies enough
  3491. information to get up to speed quickly and minimize the time spent familiarizing themselves with the
  3492. software. Topics in this section are listed in order of complexity. As it appeals to a narrower audience than
  3493. previous discussions of this topic, it is listed separately.
  3494. </p><!--l. 3042--><p class="noindent">
  3495. </p>
  3496. <h4 class="subsectionHead"><span class="titlemark">20.1 </span> <a
  3497. id="x1-20200020.1"></a>General Information</h4>
  3498. <!--l. 3044--><p class="noindent">The main framework scripts (the ar.pl, ap.pl, etc. scripts found in the root of the installation directory) handle
  3499. such basic features as instantiating the form object, ensuring that the user is logged in, and the
  3500. like. They then pass the execution off to the user interface script (usually in the bin/mozilla
  3501. directory).
  3502. </p><!--l. 3050--><p class="indent"> LedgerSMB in many ways may look sort of object oriented in its design, but in reality, it is far more
  3503. data-driven than object oriented. The Form object is used largely as a global symbol table and also as a
  3504. collection of fundamental routines for things like database access. It also breaks down the query string into
  3505. sets of variables which are stored in its attribute hash table.
  3506. </p><!--l. 3057--><p class="indent"> In essence one can and often will store all sorts of data structures in the primary Form object. These can
  3507. include almost anything. It is not uncommon to see lists of hashes stored as attributes to a Form
  3508. object.
  3509. </p><!--l. 3063--><p class="noindent">
  3510. </p>
  3511. <h4 class="subsectionHead"><span class="titlemark">20.2 </span> <a
  3512. id="x1-20300020.2"></a>Customizing Templates</h4>
  3513. <!--l. 3065--><p class="noindent">Templates are used to generate printed checks, invoices, receipts, and more in LedgerSMB. Often the format
  3514. of these items does not fit a specific set of requirements and needs to be changed. This document will not
  3515. include <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3516. class="E">E</span>X</span></span> or HTML instruction, but will include a general introduction to editing templates. Also, this
  3517. is not intended to function as a complete reference.
  3518. </p><!--l. 3072--><p class="indent"> Template instructions are contained in tags &#x003C;?lsmb and ?&#x003E;. The actual parsing is done by the
  3519. parse_template function in LSMB/Form.pm.
  3520. </p><!--l. 3076--><p class="noindent">
  3521. </p>
  3522. <h5 class="subsubsectionHead"><span class="titlemark">20.2.1 </span> <a
  3523. id="x1-20400020.2.1"></a>Page Breaks in <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3524. class="E">E</span>X</span></span></h5>
  3525. <!--l. 3078--><p class="noindent">The first tag one will see with <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3526. class="E">E</span>X</span></span>&#x00A0;templates is &#x003C;?lsmb pagebreak num1 num2 num3 ?&#x003E;
  3527. </p>
  3528. <ul class="itemize1">
  3529. <li class="itemize">num1 represents characters per line
  3530. </li>
  3531. <li class="itemize">num2 represents lines on first page
  3532. </li>
  3533. <li class="itemize">num3 represents lines on second page.</li></ul>
  3534. <!--l. 3086--><p class="noindent">The pagebreak block is terminated by &#x003C;?lsmb end pagebreak ?&#x003E;. Any text within the pagebreak block is ignored
  3535. by the template.
  3536. </p><!--l. 3090--><p class="noindent">
  3537. </p>
  3538. <h5 class="subsubsectionHead"><span class="titlemark">20.2.2 </span> <a
  3539. id="x1-20500020.2.2"></a>Conditionals</h5>
  3540. <ul class="itemize1">
  3541. <li class="itemize">&#x003C;?lsmb if not varname ?&#x003E;tells the parser to include the next block only if varname was posted
  3542. by the submitting form (or set via the form hash elsewhere in the scripts). The block ends with
  3543. &#x003C;?lsmb end varname ?&#x003E;
  3544. </li>
  3545. <li class="itemize">&#x003C;?lsmb if varname ?&#x003E;tells the parser to include the block if varname was posted in the
  3546. submitting form (or set via the form hash elsewhere in the scripts). The block ends with &#x003C;?lsmb
  3547. end varname ?&#x003E;
  3548. </li>
  3549. <li class="itemize">Lines conditionals are otherwise ignored by the parser.
  3550. </li>
  3551. <li class="itemize">Conditionals cannot be nested, but IF&#8217;s can be nested inside loops.</li></ul>
  3552. <!--l. 3105--><p class="noindent">
  3553. </p>
  3554. <h5 class="subsubsectionHead"><span class="titlemark">20.2.3 </span> <a
  3555. id="x1-20600020.2.3"></a>Loops</h5>
  3556. <!--l. 3107--><p class="noindent">&#x003C;?lsmb foreach varname ?&#x003E;is used to iterate through a list of vars set by the user interface system (usually
  3557. one of the files under bin/mozilla (or otherwise). The block is repeated for each varname in a list. Block ends
  3558. with &#x003C;?lsmb end varname ?&#x003E;
  3559. </p><!--l. 3113--><p class="noindent">
  3560. </p>
  3561. <h5 class="subsubsectionHead"><span class="titlemark">20.2.4 </span> <a
  3562. id="x1-20700020.2.4"></a>File Inclusion</h5>
  3563. <ul class="itemize1">
  3564. <li class="itemize">Files may be included with the syntax &#x003C;?lsmb
  3565. include template_name ?&#x003E;where templatename is the name of the template within the current
  3566. template directory (usually templates/$username/). Note that for <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3567. class="E">E</span>X</span></span>&#x00A0;templates, the input
  3568. or include functionalities might be better suited for many many things.
  3569. </li>
  3570. <li class="itemize">Cannot be used with conditionals
  3571. </li>
  3572. <li class="itemize">Filenames cannot use slashes (/) or .. due to directory transversal considerations.
  3573. </li>
  3574. <li class="itemize">Files can force other files to be included, but the same file cannot be included more than once.</li></ul>
  3575. <!--l. 3129--><p class="noindent">
  3576. </p>
  3577. <h5 class="subsubsectionHead"><span class="titlemark">20.2.5 </span> <a
  3578. id="x1-20800020.2.5"></a>Cross-referencing and multiple passes of <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3579. class="E">E</span>X</span></span></h5>
  3580. <!--l. 3131--><p class="noindent">In <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3581. class="E">E</span>X</span></span>&#x00A0;cross-references require two passes with latex to resolve. This is because the type is set page by
  3582. page and the program really doesn&#8217;t know on which page a given reference will fall. This becomes an
  3583. even larger issue where floats are concerned as they can move between pages for formatting
  3584. reasons.
  3585. </p><!--l. 3137--><p class="indent"> In rare cases, cross-references may point at incorrect pages even with two passes (if the inclusion of the
  3586. cross-reference data moves the object to another page). In this case you will need to use three passes of
  3587. <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3588. class="E">E</span>X</span></span>&#x00A0;in order to have accurate references.
  3589. </p><!--l. 3142--><p class="indent"> LedgerSMB as of the time of this writing (2.6.8) only makes one pass at the <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span
  3590. class="E">E</span>X</span></span>&#x00A0;file. To
  3591. force it to make more than one pass, open Form.pm with your favorite text editor. Look for the
  3592. line:
  3593. </p><!--l. 3146--><p class="indent"> system("latex &#8211;interaction=nonstopmode $self-&#x003E;<span
  3594. class="cmsy-10">{ </span>tmpfile<span
  3595. class="cmsy-10">}</span>&#x00A0;&#x003E;&#x00A0;$ self-&#x003E;<span
  3596. class="cmsy-10">{ </span>tmpfile<span
  3597. class="cmsy-10">} </span>.err");
  3598. </p><!--l. 3151--><p class="indent"> Duplicate this line for two passes, or add two copies if you need three passes.
  3599. </p><!--l. 3155--><p class="noindent">
  3600. </p>
  3601. <h5 class="subsubsectionHead"><span class="titlemark">20.2.6 </span> <a
  3602. id="x1-20900020.2.6"></a>Variable Substitution</h5>
  3603. <!--l. 3157--><p class="noindent">The following format is used for variable substitution:
  3604. </p>
  3605. <ul class="itemize1">
  3606. <li class="itemize">&#x003C;?lsmb varname options ?&#x003E;Options are one or more (whitespace separated) of:
  3607. <ul class="itemize2">
  3608. <li class="itemize">align=left/right/center
  3609. </li>
  3610. <li class="itemize">width=chars where chars is the width in characters before wrapping
  3611. </li>
  3612. <li class="itemize">offset=chars where chars is the number of spaces to (depending on alignment).</li></ul>
  3613. </li></ul>
  3614. <!--l. 3171--><p class="noindent">
  3615. </p>
  3616. <h4 class="subsectionHead"><span class="titlemark">20.3 </span> <a
  3617. id="x1-21000020.3"></a>Customizing Forms</h4>
  3618. <!--l. 3173--><p class="noindent">Data entry forms and other user interface pieces are in the bin directory. In LedgerSMB 1.0.0 and later,
  3619. symlinks are not generally used.
  3620. </p><!--l. 3176--><p class="indent"> Each module is identified with a two letter combination: ar, ap, cp, etc. These combinations are generally
  3621. explained in the comment headers on each file.
  3622. </p><!--l. 3180--><p class="indent"> Execution in these files begins with the function designated by the form-&#x003E;<span
  3623. class="cmsy-10">{</span>action<span
  3624. class="cmsy-10">} </span>variable. This variable
  3625. is usually derived from configuration parameters in the menu.ini or the name of the button that was clicked
  3626. on to submit the previous page. Due to localization requirements, the following process is used to determine
  3627. the appropriate action taken:
  3628. </p><!--l. 3187--><p class="indent"> The $locale-&#x003E;getsub routine is called. This routine checks the locale package to determine if the value
  3629. needs to be translated back into an appropriate LSMB function. If not, the variable is lower-cased, and all
  3630. spaces are converted into underscores.
  3631. </p><!--l. 3192--><p class="indent"> In general there is no substitute for reading the code to understand how this can be customized and how
  3632. one might go about doing this.
  3633. </p><!--l. 3196--><p class="noindent">
  3634. </p>
  3635. <h4 class="subsectionHead"><span class="titlemark">20.4 </span> <a
  3636. id="x1-21100020.4"></a>Customizing Modules</h4>
  3637. <!--l. 3198--><p class="noindent">The Perl Modules (.pm files) in the LedgerSMB directory contain the main business logic of the application
  3638. including all database access. Most of the modules are relatively easy to follow, but the code quality leaves
  3639. something to be desired. The API calls themselves are likely to be replaced in the future, so work on
  3640. documenting API calls is now focused solely on those calls that are considered to be stable. At the
  3641. moment, the best place to request information on the API&#8217;s is on the Developmers&#8217; Email List
  3642. (<a
  3643. href="mailto:ledger-smb-devel@lists.sourceforge.net" >ledger-smb-devel@lists.sourceforge.net</a>).
  3644. </p><!--l. 3207--><p class="indent"> Many of these modules have a fair bit of dormant code in them which was written for forthcoming
  3645. features, such as payroll and bills of materials.
  3646. </p><!--l. 3211--><p class="indent"> One can add a new module through the normal means and connect it to other existing modules.
  3647. </p><!--l. 3215--><p class="noindent">
  3648. </p>
  3649. <h5 class="subsubsectionHead"><span class="titlemark">20.4.1 </span> <a
  3650. id="x1-21200020.4.1"></a>Database Access</h5>
  3651. <!--l. 3217--><p class="noindent">The $form object provides two methods for accessing the database. The $form-&#x003E;dbconnect(%myconfig) method
  3652. commits each individual statement as its own transaction. The $form-&#x003E;dbconnect_noauto(%myconfig)
  3653. method requires a manual commit. Both these functions are thin wrappers around the standard Perl DBI
  3654. operations.
  3655. </p><!--l. 3224--><p class="noindent">
  3656. </p>
  3657. <h4 class="subsectionHead"><span class="titlemark">20.5 </span> <a
  3658. id="x1-21300020.5"></a>CLI Examples</h4>
  3659. <!--l. 3225--><p class="noindent">Louis Moore contributed some SQL-Ledger CLI examples that still work for LedgerSMB. You can find his page at
  3660. <span class="obeylines-h"><a
  3661. href="http://www.sql-ledger.org/cgi-bin/nav.pl?page=contrib/moore.html&title=Louis%20B.%20Moore" class="url" >http://www.sql-ledger.org/cgi-bin/nav.pl?page=contrib/moore.html&amp;title=Louis%20B.%20Moore</a></span>.
  3662. </p>
  3663. <h1 class="partHead"><span class="titlemark">Part&#x00A0;III<br /></span><a
  3664. id="x1-214000III"></a>Appendix</h1>
  3665. <h3 class="sectionHead"><span class="titlemark">A </span> <a
  3666. id="x1-215000A"></a>Where to Go for More Information</h3>
  3667. <!--l. 3240--><p class="noindent">There are a couple of relevant sources of information on LedgerSMB in particular.
  3668. </p><!--l. 3243--><p class="indent"> The most important resources are the LedgerSMB web site (<span class="obeylines-h"><a
  3669. href="http://www.ledgersmb.org" class="url" >http://www.ledgersmb.org</a></span>) and the email
  3670. lists found at our Sourceforge site.
  3671. </p><!--l. 3247--><p class="indent"> In addition, it is generally recommended that the main bookkeeper of a company using LedgerSMB
  3672. work through at least one accounting textbook. Which textbook is not as important as the fact that a textbook
  3673. is used.
  3674. </p><!--l. 3253--><p class="noindent">
  3675. </p>
  3676. <h3 class="sectionHead"><span class="titlemark">B </span> <a
  3677. id="x1-216000B"></a>Quick Tips</h3>
  3678. <!--l. 3256--><p class="noindent">
  3679. </p>
  3680. <h4 class="subsectionHead"><span class="titlemark">B.1 </span> <a
  3681. id="x1-217000B.1"></a>Understanding Shipping Addresses and Carriers</h4>
  3682. <!--l. 3258--><p class="noindent">Each customer can have a default shipping address. This address is displayed prominantly in the add new
  3683. customer screen. To change the shipping address for a single order, one can use the ship to button at the
  3684. bottom of the quote, order, or invoice screen.
  3685. </p><!--l. 3263--><p class="indent"> The carrier can be noted in the Ship Via field. However, this is a freeform field and is largely used as
  3686. commentary (or instructions for the shipping crew).
  3687. </p><!--l. 3268--><p class="noindent">
  3688. </p>
  3689. <h4 class="subsectionHead"><span class="titlemark">B.2 </span> <a
  3690. id="x1-218000B.2"></a>Handling bad debts</h4>
  3691. <!--l. 3270--><p class="noindent">In the event that a customer&#8217;s check bounces or a collection requirement is made, one can flag the customer&#8217;s
  3692. account by setting the credit limit to a negative number.
  3693. </p><!--l. 3274--><p class="indent"> If a debt needs to be written off, one can either use the allowance method (by writing it against the contra
  3694. asset account of "Allowance for Bad Debts" or using the direct writeoff method where it is posted as an
  3695. expense.
  3696. </p><!--l. 3280--><p class="noindent">
  3697. </p>
  3698. <h3 class="sectionHead"><span class="titlemark">C </span> <a
  3699. id="x1-219000C"></a>Step by Steps for Vertical Markets</h3>
  3700. <!--l. 3283--><p class="noindent">
  3701. </p>
  3702. <h4 class="subsectionHead"><span class="titlemark">C.1 </span> <a
  3703. id="x1-220000C.1"></a>Common Installation Errors</h4>
  3704. <ul class="itemize1">
  3705. <li class="itemize">LedgerSMB is generally best installed in its own directory outside of the wwwroot directory.
  3706. While it is possible to install it inside the wwwroot directory, the instructions and the faq don&#8217;t
  3707. cover the common problems here.
  3708. </li>
  3709. <li class="itemize">When the chart of accounts (COA) is altered such that it is no longer set up with appropriate
  3710. items, you can make it impossible to define goods and services properly. In general, until you
  3711. are familiar with the software, it is best to rename and add accounts rather than deleting them.</li></ul>
  3712. <!--l. 3297--><p class="noindent">
  3713. </p>
  3714. <h4 class="subsectionHead"><span class="titlemark">C.2 </span> <a
  3715. id="x1-221000C.2"></a>Retail With Light Manufacturing</h4>
  3716. <!--l. 3299--><p class="noindent">For purposes of this example we will use a business that assembles computers and sells them on a retail
  3717. store.
  3718. </p><!--l. 3302--><p class="indent">
  3719. </p><ol class="enumerate1" >
  3720. <li class="enumerate"><a
  3721. id="x1-221002x1"></a>Install LedgerSMB.
  3722. </li>
  3723. <li class="enumerate"><a
  3724. id="x1-221004x2"></a>Set preferences, and customize chart of accounts.
  3725. <!--l. 3306--><p class="noindent">
  3726. </p><ol class="enumerate2" >
  3727. <li class="enumerate"><a
  3728. id="x1-221006x1"></a>Before customizing the COA it is suggested that you consult an accountant.</li></ol>
  3729. </li>
  3730. <li class="enumerate"><a
  3731. id="x1-221008x3"></a>Define Goods, Labor, and Services as raw parts ordered from the vendors.
  3732. <ul class="itemize1">
  3733. <li class="itemize">These are located under the goods and services menu node.</li></ul>
  3734. </li>
  3735. <li class="enumerate"><a
  3736. id="x1-221010x4"></a>Define assemblies.
  3737. <ul class="itemize1">
  3738. <li class="itemize">These are also located under goods and services.
  3739. </li>
  3740. <li class="itemize">Component goods and services must be defined prior to creating assembly.</li></ul>
  3741. </li>
  3742. <li class="enumerate"><a
  3743. id="x1-221012x5"></a>Enter an AP Invoice to populate inventory with proper raw materials.
  3744. <ul class="itemize1">
  3745. <li class="itemize">One must generally add a generic vendor first. The vendor is added under
  3746. AP-&#x003E;Vendors-&#x003E;Add Vendor.</li></ul>
  3747. </li>
  3748. <li class="enumerate"><a
  3749. id="x1-221014x6"></a>To pay an AP invoice like a check, go to cash-<span
  3750. class="cmmi-10">&#x003E;</span>payment. Fill out approrpiate fields and click
  3751. print.
  3752. <ul class="itemize1">
  3753. <li class="itemize">Note that one should select an invoice and enter in the payment amount in the appropriate
  3754. line of the invoice list. If you add amounts to the master amount list, you will find that
  3755. they are added to the amount paid on the invoice as a prepayment.
  3756. </li>
  3757. <li class="itemize">The source field is the check number.</li></ul>
  3758. </li>
  3759. <li class="enumerate"><a
  3760. id="x1-221016x7"></a>Stock assemblies
  3761. </li>
  3762. <li class="enumerate"><a
  3763. id="x1-221018x8"></a>One can use AR Invoices or the POS interface to sell goods and services.
  3764. <ul class="itemize1">
  3765. <li class="itemize">Sales Invoice
  3766. <ul class="itemize2">
  3767. <li class="itemize">Can be generated from orders or quotations
  3768. </li>
  3769. <li class="itemize">Cannot include labor/overhead except as part of an assembly
  3770. </li>
  3771. <li class="itemize">One can make the mistake of printing the invoice and forgetting to post it. In this event,
  3772. the invoice does not officially exist in the accounting system.
  3773. </li>
  3774. <li class="itemize">For new customers, you must add the customer first (under AR-&#x003E;Customers-&#x003E;Add
  3775. Customer.</li></ul>
  3776. </li>
  3777. <li class="itemize">POS Interface
  3778. <ul class="itemize2">
  3779. <li class="itemize">Cannot include labor/overhead except as part of an assembly
  3780. </li>
  3781. <li class="itemize">Printing without posting is often even easier in the POS because of the rapid workflow.
  3782. Yet it is just as severe a problem.</li></ul>
  3783. </li>
  3784. <li class="itemize">Ecommerce and Mail Order Operations
  3785. <ul class="itemize2">
  3786. <li class="itemize">See the shipping workflow documentation above.</li></ul>
  3787. </li>
  3788. <li class="itemize">Customers are set up by going to AR-&#x003E;Customers-&#x003E;Add Customer (or the equivalent localized
  3789. translation). The appropriate fields are filled out and the buttons are used at the bottom to save the
  3790. record and optionally use it to create an invoice, etc.
  3791. <ul class="itemize2">
  3792. <li class="itemize">Saving a customer returns to the customer screen. After the appropriate invoice,
  3793. transaction, etc. is entered and posted, LedgerSMB will return to the add customer
  3794. screen.</li></ul>
  3795. </li></ul>
  3796. </li>
  3797. <li class="enumerate"><a
  3798. id="x1-221020x9"></a>One can use the requirements report to help determine what parts need to be ordered though one
  3799. cannot generate PO&#8217;s directly from this report.</li></ol>
  3800. <!--l. 3377--><p class="noindent">Note, the needs of LedgerSMB are mostly useful for light manufacturing operations (assembling
  3801. computers, for example). More manufacturing capabilities are expected to be released in the next
  3802. version.
  3803. </p><!--l. 3381--><p class="indent"> A custom assembly is a bit difficult to make. One must add the assembly prior to invoice (this is not true
  3804. of goods and services). If the assembly is based on a different assembly but may cost more (due to
  3805. non-standard parts) you can load the old assembly using Goods and Services-&#x003E;Reports-&#x003E;Assemblies and
  3806. then make necessary changes (including to the SKU/Partnumber) and save it as new.
  3807. </p><!--l. 3389--><p class="indent"> Then one can add it to the invoice.
  3808. </p><!--l. 3392--><p class="noindent">
  3809. </p>
  3810. <h3 class="sectionHead"><span class="titlemark">D </span> <a
  3811. id="x1-222000D"></a>Glossary</h3>
  3812. <!--l. 3394--><p class="noindent">
  3813. </p><dl class="description"><dt class="description">
  3814. <span
  3815. class="pplb8t-">BIC</span> </dt><dd
  3816. class="description">Bank Identifier Code is often the same as the S.W.I.F.T. code. This is a code for the bank a
  3817. customer uses for automated money transfers.
  3818. </dd><dt class="description">
  3819. <span
  3820. class="pplb8t-">COGS</span> </dt><dd
  3821. class="description">is Cost of Goods Sold. When an item is sold, then the expense of its purchase is accrued as
  3822. attached to the income of the sale. It is tracked as COGS.
  3823. </dd><dt class="description">
  3824. <span
  3825. class="pplb8t-">Credit</span> </dt><dd
  3826. class="description">: A logical transactional unit in double entry accounting. It is the opposite of a debit. Credits
  3827. affect different account types as follows:
  3828. <!--l. 3405--><p class="noindent">
  3829. </p><dl class="description"><dt class="description">
  3830. <span
  3831. class="pplb8t-">Equity</span> </dt><dd
  3832. class="description">: Credits are added to the account when money is invested in the business.
  3833. </dd><dt class="description">
  3834. <span
  3835. class="pplb8t-">Asset</span> </dt><dd
  3836. class="description">: Credits are added when money is deducted from an asset account.
  3837. </dd><dt class="description">
  3838. <span
  3839. class="pplb8t-">Liability</span> </dt><dd
  3840. class="description">: Credits are added when money is owed to the business account.
  3841. </dd><dt class="description">
  3842. <span
  3843. class="pplb8t-">Income</span> </dt><dd
  3844. class="description">: Credits are added when income is earned.
  3845. </dd><dt class="description">
  3846. <span
  3847. class="pplb8t-">Expense</span> </dt><dd
  3848. class="description">: Credits are used to apply adjustments at the end of accounting periods to indicate
  3849. that not all the expense for an AP transaction has been fully accrued.</dd></dl>
  3850. </dd><dt class="description">
  3851. <span
  3852. class="pplb8t-">Debit</span> </dt><dd
  3853. class="description">: A logical transactional unit in double entry accounting systems. It is the opposite of a credit. Debits
  3854. affect different account types as follows:
  3855. <!--l. 3421--><p class="noindent">
  3856. </p><dl class="description"><dt class="description">
  3857. <span
  3858. class="pplb8t-">Equity</span> </dt><dd
  3859. class="description">: Debits are added when money is paid to business owners.
  3860. </dd><dt class="description">
  3861. <span
  3862. class="pplb8t-">Asset</span> </dt><dd
  3863. class="description">: Debits are added when money is added to an account.
  3864. </dd><dt class="description">
  3865. <span
  3866. class="pplb8t-">Liability</span> </dt><dd
  3867. class="description">: Debits are added when money that is owed is paid off.
  3868. </dd><dt class="description">
  3869. <span
  3870. class="pplb8t-">Income</span> </dt><dd
  3871. class="description">: Debits are used to temporarily adjust income to defer unearned income to the next
  3872. accounting period.
  3873. </dd><dt class="description">
  3874. <span
  3875. class="pplb8t-">Expense</span> </dt><dd
  3876. class="description">: Debits are added as expenses are incurred.</dd></dl>
  3877. </dd><dt class="description">
  3878. <span
  3879. class="pplb8t-">IBAN</span> </dt><dd
  3880. class="description">International Bank Account Number is related to the BIC and is used for cross-border automated
  3881. money transfers.
  3882. </dd><dt class="description">
  3883. <span
  3884. class="pplb8t-">List</span> </dt><dd
  3885. class="description">Price is the recommended retail price.
  3886. </dd><dt class="description">
  3887. <span
  3888. class="pplb8t-">Markup</span> </dt><dd
  3889. class="description">is the percentage increase that is applied to the last cost to get the sell price.
  3890. </dd><dt class="description">
  3891. <span
  3892. class="pplb8t-">ROP</span> </dt><dd
  3893. class="description">Re-order point. Items with fewer in stock than this will show up on short reports.
  3894. </dd><dt class="description">
  3895. <span
  3896. class="pplb8t-">Sell</span> </dt><dd
  3897. class="description">Price is the price at which the item is sold.
  3898. </dd><dt class="description">
  3899. <span
  3900. class="pplb8t-">SKU</span> </dt><dd
  3901. class="description">Stock Keeping Unit: a number designating a specific product.
  3902. </dd><dt class="description">
  3903. <span
  3904. class="pplb8t-">Source</span> </dt><dd
  3905. class="description">Document : a paper document that can be used as evidence that a transaction occurred.
  3906. Source documents can include canceled checks, receipts, credit card statements and the
  3907. like.
  3908. </dd><dt class="description">
  3909. <span
  3910. class="pplb8t-">Terms</span> </dt><dd
  3911. class="description">is the number of days one has to pay the invoice. Most businesses abbreviate the terms as Net n
  3912. where n is the number of days. For example, Net 30 means the customer has 30 days to pay the net
  3913. due on an invoice before it is late and incurs late fees. Sometimes you will see 2 10 net 30
  3914. or similar. This means 2% discount if paid within 10 days but due within 30 days in any
  3915. case.</dd></dl>
  3916. <!--l. 1--><p class="noindent">
  3917. </p>
  3918. <h3 class="sectionHead"><span class="titlemark">E </span> <a
  3919. id="x1-223000E"></a>GNU Free Documentation License</h3>
  3920. <div class="center"
  3921. >
  3922. <!--l. 5--><p class="noindent">
  3923. </p><!--l. 7--><p class="noindent">Version 1.2, November 2002
  3924. </p><!--l. 10--><p class="noindent">Copyright <span
  3925. class="cmsy-10">&#169;</span>2000,2001,2002 Free Software Foundation, Inc.
  3926. </p><!--l. 14--><p class="noindent">51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  3927. </p><!--l. 18--><p class="noindent">Everyone is permitted to copy and distribute verbatim copies of this license document, but changing
  3928. it is not allowed.</p></div>
  3929. <div class="center"
  3930. >
  3931. <!--l. 23--><p class="noindent">
  3932. </p><!--l. 24--><p class="noindent"><span
  3933. class="pplb8t-x-x-120">Preamble</span></p></div>
  3934. <!--l. 27--><p class="noindent">The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in
  3935. the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without
  3936. modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and
  3937. publisher a way to get credit for their work, while not being considered responsible for modifications made
  3938. by others.
  3939. </p><!--l. 35--><p class="indent"> This License is a kind of "copyleft", which means that derivative works of the document must themselves
  3940. be free in the same sense. It complements the GNU General Public License, which is a copyleft license
  3941. designed for free software.
  3942. </p><!--l. 40--><p class="indent"> We have designed this License in order to use it for manuals for free software, because free
  3943. software needs free documentation: a free program should come with manuals providing the
  3944. same freedoms that the software does. But this License is not limited to software manuals; it
  3945. can be used for any textual work, regardless of subject matter or whether it is published as a
  3946. printed book. We recommend this License principally for works whose purpose is instruction or
  3947. reference.
  3948. </p>
  3949. <div class="center"
  3950. >
  3951. <!--l. 49--><p class="noindent">
  3952. </p><!--l. 50--><p class="noindent"><span
  3953. class="pplb8t-x-x-144">1. APPLICABILITY AND DEFINITIONS</span> <a
  3954. id="Q1-1-232"></a></p></div>
  3955. <!--l. 54--><p class="indent"> This License applies to any manual or other work, in any medium, that contains a notice placed by the
  3956. copyright holder saying it can be distributed under the terms of this License. Such a notice grants a
  3957. world-wide, royalty-free license, unlimited in duration, to use that work under the conditions stated herein.
  3958. The <span
  3959. class="pplb8t-">"Document"</span>, below, refers to any such manual or work. Any member of the public is a licensee, and is
  3960. addressed as <span
  3961. class="pplb8t-">"you"</span>. You accept the license if you copy, modify or distribute the work in a way requiring
  3962. permission under copyright law.
  3963. </p><!--l. 64--><p class="indent"> A <span
  3964. class="pplb8t-">"Modified Version" </span>of the Document means any work containing the Document or a portion of it,
  3965. either copied verbatim, or with modifications and/or translated into another language.
  3966. </p><!--l. 68--><p class="indent"> A <span
  3967. class="pplb8t-">"Secondary Section" </span>is a named appendix or a front-matter section of the Document that deals
  3968. exclusively with the relationship of the publishers or authors of the Document to the Document&#8217;s overall
  3969. subject (or to related matters) and contains nothing that could fall directly within that overall subject. (Thus,
  3970. if the Document is in part a textbook of mathematics, a Secondary Section may not explain any
  3971. mathematics.) The relationship could be a matter of historical connection with the subject or with
  3972. related matters, or of legal, commercial, philosophical, ethical or political position regarding
  3973. them.
  3974. </p><!--l. 79--><p class="indent"> The <span
  3975. class="pplb8t-">"Invariant Sections" </span>are certain Secondary Sections whose titles are designated, as being those of
  3976. Invariant Sections, in the notice that says that the Document is released under this License. If a section does
  3977. not fit the above definition of Secondary then it is not allowed to be designated as Invariant. The Document
  3978. may contain zero Invariant Sections. If the Document does not identify any Invariant Sections then there are
  3979. none.
  3980. </p><!--l. 87--><p class="indent"> The <span
  3981. class="pplb8t-">"Cover Texts" </span>are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover
  3982. Texts, in the notice that says that the Document is released under this License. A Front-Cover Text may be at
  3983. most 5 words, and a Back-Cover Text may be at most 25 words.
  3984. </p><!--l. 92--><p class="indent"> A <span
  3985. class="pplb8t-">"Transparent" </span>copy of the Document means a machine-readable copy, represented in a format whose
  3986. specification is available to the general public, that is suitable for revising the document straightforwardly
  3987. with generic text editors or (for images composed of pixels) generic paint programs or (for drawings)
  3988. some widely available drawing editor, and that is suitable for input to text formatters or for
  3989. automatic translation to a variety of formats suitable for input to text formatters. A copy made in an
  3990. otherwise Transparent file format whose markup, or absence of markup, has been arranged to thwart
  3991. or discourage subsequent modification by readers is not Transparent. An image format is not
  3992. Transparent if used for any substantial amount of text. A copy that is not "Transparent" is called
  3993. <span
  3994. class="pplb8t-">"Opaque"</span>.
  3995. </p><!--l. 105--><p class="indent"> Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input
  3996. format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple
  3997. HTML, PostScript or PDF designed for human modification. Examples of transparent image formats include
  3998. PNG, XCF and JPG. Opaque formats include proprietary formats that can be read and edited only by
  3999. proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally
  4000. available, and the machine-generated HTML, PostScript or PDF produced by some word processors for
  4001. output purposes only.
  4002. </p><!--l. 116--><p class="indent"> The <span
  4003. class="pplb8t-">"Title Page" </span>means, for a printed book, the title page itself, plus such following pages as
  4004. are needed to hold, legibly, the material this License requires to appear in the title page. For
  4005. works in formats which do not have any title page as such, "Title Page" means the text near
  4006. the most prominent appearance of the work&#8217;s title, preceding the beginning of the body of the
  4007. text.
  4008. </p><!--l. 123--><p class="indent"> A section <span
  4009. class="pplb8t-">"Entitled XYZ" </span>means a named subunit of the Document whose title either is precisely XYZ or
  4010. contains XYZ in parentheses following text that translates XYZ in another language. (Here XYZ stands for a
  4011. specific section name mentioned below, such as <span
  4012. class="pplb8t-">"Acknowledgements"</span>, <span
  4013. class="pplb8t-">"Dedications"</span>, <span
  4014. class="pplb8t-">"Endorsements"</span>, or
  4015. <span
  4016. class="pplb8t-">"History"</span>.) To <span
  4017. class="pplb8t-">"Preserve the Title" </span>of such a section when you modify the Document means that it remains a
  4018. section "Entitled XYZ" according to this definition.
  4019. </p><!--l. 132--><p class="indent"> The Document may include Warranty Disclaimers next to the notice which states that this License applies
  4020. to the Document. These Warranty Disclaimers are considered to be included by reference in this License, but
  4021. only as regards disclaiming warranties: any other implication that these Warranty Disclaimers may have is
  4022. void and has no effect on the meaning of this License.
  4023. </p>
  4024. <div class="center"
  4025. >
  4026. <!--l. 140--><p class="noindent">
  4027. </p><!--l. 141--><p class="noindent"><span
  4028. class="pplb8t-x-x-144">2. VERBATIM COPYING</span> <a
  4029. id="Q1-1-233"></a></p></div>
  4030. <!--l. 145--><p class="indent"> You may copy and distribute the Document in any medium, either commercially or noncommercially,
  4031. provided that this License, the copyright notices, and the license notice saying this License applies to the
  4032. Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this
  4033. License. You may not use technical measures to obstruct or control the reading or further copying of the
  4034. copies you make or distribute. However, you may accept compensation in exchange for copies. If
  4035. you distribute a large enough number of copies you must also follow the conditions in section
  4036. 3.
  4037. </p><!--l. 155--><p class="indent"> You may also lend copies, under the same conditions stated above, and you may publicly display
  4038. copies.
  4039. </p>
  4040. <div class="center"
  4041. >
  4042. <!--l. 159--><p class="noindent">
  4043. </p><!--l. 160--><p class="noindent"><span
  4044. class="pplb8t-x-x-144">3. COPYING IN QUANTITY</span> <a
  4045. id="Q1-1-234"></a></p></div>
  4046. <!--l. 165--><p class="indent"> If you publish printed copies (or copies in media that commonly have printed covers) of the Document,
  4047. numbering more than 100, and the Document&#8217;s license notice requires Cover Texts, you must
  4048. enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts
  4049. on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and
  4050. legibly identify you as the publisher of these copies. The front cover must present the full title
  4051. with all words of the title equally prominent and visible. You may add other material on the
  4052. covers in addition. Copying with changes limited to the covers, as long as they preserve the
  4053. title of the Document and satisfy these conditions, can be treated as verbatim copying in other
  4054. respects.
  4055. </p><!--l. 178--><p class="indent"> If the required texts for either cover are too voluminous to fit legibly, you should put the first
  4056. ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent
  4057. pages.
  4058. </p><!--l. 183--><p class="indent"> If you publish or distribute Opaque copies of the Document numbering more than 100, you must either
  4059. include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque
  4060. copy a computer-network location from which the general network-using public has access to
  4061. download using public-standard network protocols a complete Transparent copy of the Document,
  4062. free of added material. If you use the latter option, you must take reasonably prudent steps,
  4063. when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy
  4064. will remain thus accessible at the stated location until at least one year after the last time you
  4065. distribute an Opaque copy (directly or through your agents or retailers) of that edition to the
  4066. public.
  4067. </p><!--l. 196--><p class="indent"> It is requested, but not required, that you contact the authors of the Document well before redistributing
  4068. any large number of copies, to give them a chance to provide you with an updated version of the
  4069. Document.
  4070. </p>
  4071. <div class="center"
  4072. >
  4073. <!--l. 201--><p class="noindent">
  4074. </p><!--l. 202--><p class="noindent"><span
  4075. class="pplb8t-x-x-144">4. MODIFICATIONS</span> <a
  4076. id="Q1-1-235"></a></p></div>
  4077. <!--l. 206--><p class="indent"> You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and
  4078. 3 above, provided that you release the Modified Version under precisely this License, with the Modified
  4079. Version filling the role of the Document, thus licensing distribution and modification of the Modified
  4080. Version to whoever possesses a copy of it. In addition, you must do these things in the Modified
  4081. Version:
  4082. </p>
  4083. <ul class="itemize1">
  4084. <li class="itemize">Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and
  4085. from those of previous versions (which should, if there were any, be listed in the History section
  4086. of the Document). You may use the same title as a previous version if the original publisher of
  4087. that version gives permission.
  4088. </li>
  4089. <li class="itemize">List on the Title Page, as authors, one or more persons or entities responsible for authorship of
  4090. the modifications in the Modified Version, together with at least five of the principal authors of
  4091. the Document (all of its principal authors, if it has fewer than five), unless they release you from
  4092. this requirement.
  4093. </li>
  4094. <li class="itemize">State on the Title page the name of the publisher of the Modified Version, as the publisher.
  4095. </li>
  4096. <li class="itemize">Preserve all the copyright notices of the Document.
  4097. </li>
  4098. <li class="itemize">Add an appropriate copyright notice for your modifications adjacent to the other copyright
  4099. notices.
  4100. </li>
  4101. <li class="itemize">Include, immediately after the copyright notices, a license notice giving the public permission to
  4102. use the Modified Version under the terms of this License, in the form shown in the Addendum
  4103. below.
  4104. </li>
  4105. <li class="itemize">Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given
  4106. in the Document&#8217;s license notice.
  4107. </li>
  4108. <li class="itemize">Include an unaltered copy of this License.
  4109. </li>
  4110. <li class="itemize">Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the
  4111. title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there
  4112. is no section Entitled "History" in the Document, create one stating the title, year, authors, and
  4113. publisher of the Document as given on its Title Page, then add an item describing the Modified
  4114. Version as stated in the previous sentence.
  4115. </li>
  4116. <li class="itemize">Preserve the network location, if any, given in the Document for public access to a Transparent
  4117. copy of the Document, and likewise the network locations given in the Document for previous
  4118. versions it was based on. These may be placed in the "History" section. You may omit a network
  4119. location for a work that was published at least four years before the Document itself, or if the
  4120. original publisher of the version it refers to gives permission.
  4121. </li>
  4122. <li class="itemize">For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the
  4123. section, and preserve in the section all the substance and tone of each of the contributor
  4124. acknowledgements and/or dedications given therein.
  4125. </li>
  4126. <li class="itemize">Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles.
  4127. Section numbers or the equivalent are not considered part of the section titles.
  4128. </li>
  4129. <li class="itemize">Delete any section Entitled "Endorsements". Such a section may not be included in the Modified
  4130. Version.
  4131. </li>
  4132. <li class="itemize">Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any
  4133. Invariant Section.
  4134. </li>
  4135. <li class="itemize">Preserve any Warranty Disclaimers.</li></ul>
  4136. <!--l. 292--><p class="indent"> If the Modified Version includes new front-matter sections or appendices that qualify as Secondary
  4137. Sections and contain no material copied from the Document, you may at your option designate some
  4138. or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections
  4139. in the Modified Version&#8217;s license notice. These titles must be distinct from any other section
  4140. titles.
  4141. </p><!--l. 299--><p class="indent"> You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your
  4142. Modified Version by various parties&#8211;for example, statements of peer review or that the text has been
  4143. approved by an organization as the authoritative definition of a standard.
  4144. </p><!--l. 305--><p class="indent"> You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a
  4145. Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of
  4146. Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one
  4147. entity. If the Document already includes a cover text for the same cover, previously added by you or by
  4148. arrangement made by the same entity you are acting on behalf of, you may not add another; but you
  4149. may replace the old one, on explicit permission from the previous publisher that added the old
  4150. one.
  4151. </p><!--l. 315--><p class="indent"> The author(s) and publisher(s) of the Document do not by this License give permission to use their names
  4152. for publicity for or to assert or imply endorsement of any Modified Version.
  4153. </p>
  4154. <div class="center"
  4155. >
  4156. <!--l. 320--><p class="noindent">
  4157. </p><!--l. 321--><p class="noindent"><span
  4158. class="pplb8t-x-x-144">5. COMBINING DOCUMENTS</span> <a
  4159. id="Q1-1-236"></a></p></div>
  4160. <!--l. 326--><p class="indent"> You may combine the Document with other documents released under this License, under the terms
  4161. defined in section 4 above for modified versions, provided that you include in the combination all of the
  4162. Invariant Sections of all of the original documents, unmodified, and list them all as Invariant
  4163. Sections of your combined work in its license notice, and that you preserve all their Warranty
  4164. Disclaimers.
  4165. </p><!--l. 333--><p class="indent"> The combined work need only contain one copy of this License, and multiple identical Invariant Sections
  4166. may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different
  4167. contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the
  4168. original author or publisher of that section if known, or else a unique number. Make the same
  4169. adjustment to the section titles in the list of Invariant Sections in the license notice of the combined
  4170. work.
  4171. </p><!--l. 342--><p class="indent"> In the combination, you must combine any sections Entitled "History" in the various original documents,
  4172. forming one section Entitled "History"; likewise combine any sections Entitled "Acknowledgements", and
  4173. any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements".
  4174. </p>
  4175. <div class="center"
  4176. >
  4177. <!--l. 348--><p class="noindent">
  4178. </p><!--l. 349--><p class="noindent"><span
  4179. class="pplb8t-x-x-144">6. COLLECTIONS OF DOCUMENTS</span> <a
  4180. id="Q1-1-237"></a></p></div>
  4181. <!--l. 353--><p class="indent"> You may make a collection consisting of the Document and other documents released under this License,
  4182. and replace the individual copies of this License in the various documents with a single copy that is included
  4183. in the collection, provided that you follow the rules of this License for verbatim copying of each of the
  4184. documents in all other respects.
  4185. </p><!--l. 359--><p class="indent"> You may extract a single document from such a collection, and distribute it individually under this
  4186. License, provided you insert a copy of this License into the extracted document, and follow this License in all
  4187. other respects regarding verbatim copying of that document.
  4188. </p>
  4189. <div class="center"
  4190. >
  4191. <!--l. 365--><p class="noindent">
  4192. </p><!--l. 366--><p class="noindent"><span
  4193. class="pplb8t-x-x-144">7. AGGREGATION WITH INDEPENDENT WORKS</span> <a
  4194. id="Q1-1-238"></a></p></div>
  4195. <!--l. 371--><p class="indent"> A compilation of the Document or its derivatives with other separate and independent documents or
  4196. works, in or on a volume of a storage or distribution medium, is called an "aggregate" if the copyright
  4197. resulting from the compilation is not used to limit the legal rights of the compilation&#8217;s users beyond what the
  4198. individual works permit. When the Document is included in an aggregate, this License does not
  4199. apply to the other works in the aggregate which are not themselves derivative works of the
  4200. Document.
  4201. </p><!--l. 380--><p class="indent"> If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the
  4202. Document is less than one half of the entire aggregate, the Document&#8217;s Cover Texts may be placed on covers
  4203. that bracket the Document within the aggregate, or the electronic equivalent of covers if the
  4204. Document is in electronic form. Otherwise they must appear on printed covers that bracket the whole
  4205. aggregate.
  4206. </p>
  4207. <div class="center"
  4208. >
  4209. <!--l. 389--><p class="noindent">
  4210. </p><!--l. 390--><p class="noindent"><span
  4211. class="pplb8t-x-x-144">8. TRANSLATION</span> <a
  4212. id="Q1-1-239"></a></p></div>
  4213. <!--l. 395--><p class="indent"> Translation is considered a kind of modification, so you may distribute translations of the
  4214. Document under the terms of section 4. Replacing Invariant Sections with translations requires
  4215. special permission from their copyright holders, but you may include translations of some or
  4216. all Invariant Sections in addition to the original versions of these Invariant Sections. You may
  4217. include a translation of this License, and all the license notices in the Document, and any Warranty
  4218. Disclaimers, provided that you also include the original English version of this License and
  4219. the original versions of those notices and disclaimers. In case of a disagreement between the
  4220. translation and the original version of this License or a notice or disclaimer, the original version will
  4221. prevail.
  4222. </p><!--l. 408--><p class="indent"> If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the
  4223. requirement (section 4) to Preserve its Title (section 1) will typically require changing the actual
  4224. title.
  4225. </p>
  4226. <div class="center"
  4227. >
  4228. <!--l. 414--><p class="noindent">
  4229. </p><!--l. 415--><p class="noindent"><span
  4230. class="pplb8t-x-x-144">9. TERMINATION</span> <a
  4231. id="Q1-1-240"></a></p></div>
  4232. <!--l. 420--><p class="indent"> You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under
  4233. this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will
  4234. automatically terminate your rights under this License. However, parties who have received copies, or rights,
  4235. from you under this License will not have their licenses terminated so long as such parties remain in full
  4236. compliance.
  4237. </p>
  4238. <div class="center"
  4239. >
  4240. <!--l. 429--><p class="noindent">
  4241. </p><!--l. 430--><p class="noindent"><span
  4242. class="pplb8t-x-x-144">10. FUTURE REVISIONS OF THIS LICENSE</span> <a
  4243. id="Q1-1-241"></a></p></div>
  4244. <!--l. 435--><p class="indent"> The Free Software Foundation may publish new, revised versions of the GNU Free Documentation
  4245. License from time to time. Such new versions will be similar in spirit to the present version, but may differ in
  4246. detail to address new problems or concerns. See http://www.gnu.org/copyleft/.
  4247. </p><!--l. 441--><p class="indent"> Each version of the License is given a distinguishing version number. If the Document specifies that a
  4248. particular numbered version of this License "or any later version" applies to it, you have the option of
  4249. following the terms and conditions either of that specified version or of any later version that has been
  4250. published (not as a draft) by the Free Software Foundation. If the Document does not specify a version
  4251. number of this License, you may choose any version ever published (not as a draft) by the Free Software
  4252. Foundation.
  4253. </p>
  4254. <div class="center"
  4255. >
  4256. <!--l. 451--><p class="noindent">
  4257. </p><!--l. 452--><p class="noindent"><span
  4258. class="pplb8t-x-x-144">ADDENDUM: How to use this License for your documents</span> <a
  4259. id="Q1-1-242"></a></p></div>
  4260. <!--l. 456--><p class="indent"> To use this License in a document you have written, include a copy of the License in the document and
  4261. put the following copyright and license notices just after the title page:
  4262. </p><!--l. 461--><p class="indent">
  4263. </p><div class="quote">
  4264. <!--l. 462--><p class="noindent">Copyright <span
  4265. class="cmsy-10">&#169;</span>YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify
  4266. this document under the terms of the GNU Free Documentation License, Version 1.2 or
  4267. any later version published by the Free Software Foundation; with no Invariant Sections,
  4268. no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the
  4269. section entitled "GNU Free Documentation License".</p></div>
  4270. <!--l. 472--><p class="indent"> If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the "with...Texts." line
  4271. with this:
  4272. </p><!--l. 476--><p class="indent">
  4273. </p><div class="quote">
  4274. <!--l. 477--><p class="noindent">with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being
  4275. LIST, and with the Back-Cover Texts being LIST.</p></div>
  4276. <!--l. 482--><p class="indent"> If you have Invariant Sections without Cover Texts, or some other combination of the three, merge those
  4277. two alternatives to suit the situation.
  4278. </p><!--l. 486--><p class="indent"> If your document contains nontrivial examples of program code, we recommend releasing these
  4279. examples in parallel under your choice of free software license, such as the GNU General Public License, to
  4280. permit their use in free software.
  4281. </p>
  4282. </body></html>