Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

128 righe
5.5 KiB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>Save-Submit-Cancel Pattern &mdash; Documentation</title>
  7. <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '',
  12. VERSION: '',
  13. COLLAPSE_MODINDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="_static/jquery.js"></script>
  19. <script type="text/javascript" src="_static/doctools.js"></script>
  20. <link rel="top" title="Documentation" href="index.html" />
  21. <link rel="up" title="2. Building an Application" href="build_app.html" />
  22. <link rel="next" title="Writing Scripts" href="writing_scripts.html" />
  23. <link rel="prev" title="Creating A Form (DocType)" href="creating_doctypes.html" />
  24. </head>
  25. <body>
  26. <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
  27. <div class="related">
  28. <h3>Navigation</h3>
  29. <ul>
  30. <li class="right" style="margin-right: 10px">
  31. <a href="genindex.html" title="General Index"
  32. accesskey="I">index</a></li>
  33. <li class="right" >
  34. <a href="modindex.html" title="Global Module Index"
  35. accesskey="M">modules</a> |</li>
  36. <li class="right" >
  37. <a href="writing_scripts.html" title="Writing Scripts"
  38. accesskey="N">next</a> |</li>
  39. <li class="right" >
  40. <a href="creating_doctypes.html" title="Creating A Form (DocType)"
  41. accesskey="P">previous</a> |</li>
  42. <li><a href="index.html">Documentation</a> &raquo;</li>
  43. <li><a href="build_app.html" accesskey="U">2. Building an Application</a> &raquo;</li>
  44. </ul>
  45. </div>
  46. <div class="sphinxsidebar">
  47. <div class="sphinxsidebarwrapper">
  48. <h4>Previous topic</h4>
  49. <p class="topless"><a href="creating_doctypes.html"
  50. title="previous chapter">Creating A Form (DocType)</a></p>
  51. <h4>Next topic</h4>
  52. <p class="topless"><a href="writing_scripts.html"
  53. title="next chapter">Writing Scripts</a></p>
  54. <h3>This Page</h3>
  55. <ul class="this-page-menu">
  56. <li><a href="_sources/save_submit.txt"
  57. rel="nofollow">Show Source</a></li>
  58. </ul>
  59. <div id="searchbox" style="display: none">
  60. <h3>Quick search</h3>
  61. <form class="search" action="search.html" method="get">
  62. <input type="text" name="q" size="18" />
  63. <input type="submit" value="Go" />
  64. <input type="hidden" name="check_keywords" value="yes" />
  65. <input type="hidden" name="area" value="default" />
  66. </form>
  67. <p class="searchtip" style="font-size: 90%">
  68. Enter search terms or a module, class or function name.
  69. </p>
  70. </div>
  71. <script type="text/javascript">$('#searchbox').show(0);</script>
  72. </div>
  73. </div>
  74. <div class="document">
  75. <div class="documentwrapper">
  76. <div class="bodywrapper">
  77. <div class="body">
  78. <div class="section" id="save-submit-cancel-pattern">
  79. <span id="save-submit"></span><h1>Save-Submit-Cancel Pattern<a class="headerlink" href="#save-submit-cancel-pattern" title="Permalink to this headline">¶</a></h1>
  80. <p>The framwork has an built-in pattern to &#8220;freeze&#8221; a record. This is typically useful in accounting type
  81. of applications where a transaction cannot be altered once a subsequent transaction has been made and a
  82. &#8220;posting&#8221; is completed.</p>
  83. <p>In the framework, a record has 3 stages as defined by the property &#8220;docstatus&#8221;</p>
  84. <ul class="simple">
  85. <li>0 - Saved</li>
  86. <li>1 - Submitted (frozen)</li>
  87. <li>2 - Cancelled (or deleted)</li>
  88. </ul>
  89. <p>After cancelling, you can also define an &#8220;Amend&#8221; permission. If the user is allowed to &#8220;Amend&#8221; a
  90. record, a new record is created against the cancelled record with a version number attached.
  91. For example: Invoice IN003 becaomes IN003-1</p>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="clearer"></div>
  97. </div>
  98. <div class="related">
  99. <h3>Navigation</h3>
  100. <ul>
  101. <li class="right" style="margin-right: 10px">
  102. <a href="genindex.html" title="General Index"
  103. >index</a></li>
  104. <li class="right" >
  105. <a href="modindex.html" title="Global Module Index"
  106. >modules</a> |</li>
  107. <li class="right" >
  108. <a href="writing_scripts.html" title="Writing Scripts"
  109. >next</a> |</li>
  110. <li class="right" >
  111. <a href="creating_doctypes.html" title="Creating A Form (DocType)"
  112. >previous</a> |</li>
  113. <li><a href="index.html">Documentation</a> &raquo;</li>
  114. <li><a href="build_app.html" >2. Building an Application</a> &raquo;</li>
  115. </ul>
  116. </div>
  117. <div class="footer">
  118. &copy; Copyright 2010, Rushabh Mehta.
  119. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
  120. </div>
  121. </body>
  122. </html>