Commit 1fa030f2 authored by Boxiang Sun's avatar Boxiang Sun

erp5_user_tutorial: Update user-Howto.Create.A.Payment

parent 61492e52
<section class="illustration">
<section class="illustration"> <h1>How to Create a Payment</h1>
<h1>How to Create a Payment</h1> <img alt="Payment Money" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Money?format=png" title="Payment Money" type="image/svg+xml" />
<img alt="Payment Money" title="Payment Money" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Money?format=png"> <footer>by <a href="http://www.osoe-project.org/contact">OSOE Project</a>.</footer>
<footer> <test>
by <a href="http://www.osoe-project.org/contact">OSOE Project</a>. <table class="test" style="display: none;">
</footer> <tbody>
<test> <tr>
<table style="display: none;" class="test"> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/init_test_environment&quot;&gt;init&lt;/span&gt;</td>
<tbody> </tr>
<tr> <tr style="opacity: 1; z-index: 0;">
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/init_test_environment"&gt;init&lt;/span&gt;</td> <td>openAndWait</td>
</tr> <td>${base_url}/Zuite_createFunctionalTestUser</td>
<tr style="opacity: 1; z-index: 0;" class=""> <td>&nbsp;</td>
<td>openAndWait</td> </tr>
<td>${base_url}/Zuite_createFunctionalTestUser</td> <tr style="opacity: 1; z-index: 0;">
<td></td> <td>verifyTextPresent</td>
</tr> <td>Done.</td>
<tr style="opacity: 1; z-index: 0;" class=""> <td>&nbsp;</td>
<td>verifyTextPresent</td> </tr>
<td>Done.</td> <tr style="opacity: 1; z-index: 0;">
<td></td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr> </tr>
<tr style="opacity: 1; z-index: 0;" class=""> <tr style="opacity: 1; z-index: 0;">
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td> <td>openAndWait</td>
</tr> <td>${base_url}/Zuite_setUpSaleOrderTest</td>
<tr style="opacity: 1; z-index: 0;" class=""> <td>&nbsp;</td>
<td>openAndWait</td> </tr>
<td>${base_url}/Zuite_setUpSaleOrderTest</td> <tr style="opacity: 1; z-index: 0;">
<td></td> <td>verifyTextPresent</td>
</tr> <td>Init Ok</td>
<tr style="opacity: 1; z-index: 0;" class=""> <td>&nbsp;</td>
<td>verifyTextPresent</td> </tr>
<td>Init Ok</td> <tr style="opacity: 1; z-index: 0;">
<td></td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr> </tr>
<tr style="opacity: 1; z-index: 0;" class=""> </tbody>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td> </table>
</tr> </test></section>
</tbody>
</table> <section>
</test> <h1>Agenda</h1>
</section><section class="">
<h1>Agenda</h1> <ul>
<ul> <li>How to create a bank account for your company</li>
<li>How to create a bank account for your company</li> <li>How to create a payment from a sale invoice</li>
<li>How to create a payment from a sale invoice</li> <li>How to confirm the payment transaction</li>
<li>How to confirm the payment transaction</li> </ul>
</ul>
<details open="open"> <details open="open">
<p>In this tutorial, you will learn how to create a payment using ERP5.</p><p> <p>In this tutorial, you will learn how to create a payment using ERP5.</p>
The appropriate way to <strong>create a payment</strong>
is to first locate the <p>The appropriate way to <strong>create a payment</strong> is to first locate the <strong>invoice</strong> which you want to create the payment transaction from, and then <strong>create the related payment</strong> directly from the invoice sheet.</p>
<strong>invoice</strong>
which you want to create the payment transaction from, and then <p>The payment action works the same way as invoices:<br />
<strong>create the related payment</strong> First you have to <strong>create one and edit</strong> the details.<br />
directly from the invoice sheet. Once this is done properly, you will have to <strong>start the accounting process</strong> for it.</p>
</p><p>
The payment action works the same way as invoices:<br> <p>If you have some accounting experience, you know that accounting of invoices and of payments have different meanings.<br />
First you have to Both of them are mandatory, but the accounting done for invoices is related to your <strong>merchandise and client accounts</strong> , payment accounting relates to the notion of treasury, and to your <strong>bank account</strong> .</p>
<strong>create one and edit</strong>
the details. <p>You should understand that <strong>ERP5 will not let you create a payment if it is not related to a bank account</strong> , which means that <strong>the first step of this tutorial will be to learn how to create a bank account for your company</strong> in order to be able to create treasury transactions such as payments, which are directly linked to your bank account.</p>
<br> </details>
Once this is done properly, you will have to <test>
<strong>start the accounting process</strong> <table class="test" style="display: none;">
for it. <tbody>
</p><p> <tr style="opacity: 1; z-index: 0;">
If you have some accounting experience, you know that accounting of invoices and of payments have different meanings.<br> <td>openAndWait</td>
Both of them are mandatory, but the accounting done for invoices is related to your <td>${base_url}/Zuite_setUpSalePackingListTest</td>
<strong>merchandise and client accounts</strong> <td>&nbsp;</td>
, payment accounting relates to the notion of treasury, and to your </tr>
<strong>bank account</strong> <tr>
. <td>verifyTextPresent</td>
</p><p> <td>Init Ok</td>
You should understand that <strong>ERP5 will not let you create a payment if it is not related to a bank account</strong> <td>&nbsp;</td>
, which means that </tr>
<strong>the first step of this tutorial will be to learn how to create a bank account for your company</strong> <tr style="opacity: 1; z-index: 0;">
in order to be able to create treasury transactions such as payments, which are directly linked to your bank account. <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/invoke_simulation_alarms&quot;&gt; Invoke simulation alarms &lt;/span&gt;</td>
</p> </tr>
</details> <tr style="opacity: 1; z-index: 0;">
<test> <td>openAndWait</td>
<table style="display: none;" class="test"> <td>${base_url}/Zuite_setUpSaleInvoiceTest</td>
<tbody> <td>&nbsp;</td>
<tr style="opacity: 1; z-index: 0;" class=""> </tr>
<td>openAndWait</td> <tr>
<td>${base_url}/Zuite_setUpSalePackingListTest</td> <td>verifyTextPresent</td>
<td></td> <td>Init Ok</td>
</tr> <td>&nbsp;</td>
<tr> </tr>
<td>verifyTextPresent</td> <tr style="opacity: 1; z-index: 0;">
<td>Init Ok</td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/invoke_simulation_alarms&quot;&gt; Invoke simulation alarms &lt;/span&gt;</td>
<td></td> </tr>
</tr> <tr style="opacity: 1; z-index: 0;">
<tr style="opacity: 1; z-index: 0;" class=""> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user&quot;&gt;Login As Functional Test User&lt;/span&gt;</td>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/invoke_simulation_alarms"&gt; Invoke simulation alarms &lt;/span&gt;</td> </tr>
</tr> <tr style="opacity: 1; z-index: 0;">
<tr style="opacity: 1; z-index: 0;" class=""> <td>openAndWait</td>
<td>openAndWait</td> <td>${base_url}/Zuite_setUpPaymentTest?start_only=True</td>
<td>${base_url}/Zuite_setUpSaleInvoiceTest</td> <td>&nbsp;</td>
<td></td> </tr>
</tr> <tr>
<tr> <td>verifyTextPresent</td>
<td>verifyTextPresent</td> <td>Init Ok</td>
<td>Init Ok</td> <td>&nbsp;</td>
<td></td> </tr>
</tr> <tr style="opacity: 1; z-index: 0;">
<tr style="opacity: 1; z-index: 0;" class=""> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/invoke_simulation_alarms"&gt; Invoke simulation alarms &lt;/span&gt;</td> </tr>
</tr> <tr style="opacity: 1; z-index: 0;">
<tr class="" style="opacity: 1; z-index: 0;"> <td>openAndWait</td>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/login_as_functional_test_user"&gt;Login As Functional Test User&lt;/span&gt;</td> <td>${base_url}/Zuite_setUpPaymentTest</td>
</tr> <td>&nbsp;</td>
<tr style="opacity: 1; z-index: 0;" class=""> </tr>
<td>openAndWait</td> <tr style="opacity: 1; z-index: 0;">
<td>${base_url}/Zuite_setUpPaymentTest?start_only=True</td> <td>verifyTextPresent</td>
<td></td> <td>Init Ok</td>
</tr> <td>&nbsp;</td>
<tr> </tr>
<td>verifyTextPresent</td> <tr style="opacity: 1; z-index: 0;">
<td>Init Ok</td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/invoke_simulation_alarms&quot;&gt; Invoke simulation alarms &lt;/span&gt;</td>
<td></td> </tr>
</tr> </tbody>
<tr style="opacity: 1; z-index: 0;" class=""> </table>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td> </test></section>
</tr>
<tr style="opacity: 1; z-index: 0;" class=""> <section class="screenshot">
<td>openAndWait</td> <h1>Create a Bank Account for your company</h1>
<td>${base_url}/Zuite_setUpPaymentTest</td> <img alt="Check Bank Account" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Create.Bank.Account?format=png" title="Check Bank Account" type="image/svg+xml" />
<td></td> <details open="open">
</tr> <p>From the previous tutorial <a href="user-Howto.Create.Bank.Account/view">&quot;How to create Bank Accounts&quot;</a> and the example &quot;Invoice Sender and Payee-Bank Account&quot; in the tutorial <a href="user-Howto.Create.Trade.Conditions/view">&quot;How to create Trade Conditions&quot;</a>, you have learned how to create a bank account for your company.</p>
<tr style="opacity: 1; z-index: 0;" class="">
<td>verifyTextPresent</td> <p>In our example, please follow these tutorials and <strong>create a bank account &quot;LCL Paris sud&quot; for your company Hongzhao</strong> . Do not forget to replace &quot;Hongzhao&quot; with the company you created. Then please <strong>click on the Financial Information tab of the organisation document</strong> . This tab provides you with financial information about your company, such as Bank Accounts, Accounting Periods, etc. As you can see from the screenshot, the bank account you created appears in this tab, which means that the creation and validation were successful. If you want to see the details of this account, simply click on the line. This will lead you to the detail sheet of the bank account.</p>
<td>Init Ok</td>
<td></td> <p>Now we can create transactions linked to this bank account.</p>
</tr> </details>
<tr style="opacity: 1; z-index: 0;" class=""> <test>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/invoke_simulation_alarms"&gt; Invoke simulation alarms &lt;/span&gt;</td> <table class="test" style="display: none;">
</tr> <tbody>
</tbody> <tr>
</table> <td>open</td>
</test> <td>${base_url}</td>
</section><section class="screenshot"> <td>&nbsp;</td>
<h1>Create a Bank Account for your company</h1> </tr>
<img alt="Check Bank Account" title="Check Bank Account" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Create.Bank.Account?format=png"> <tr>
<details open="open"> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_app_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<p> </tr>
From the previous tutorial <a href="user-Howto.Create.Bank.Account/view">"How to create Bank Accounts"</a> and the example "Invoice Sender and Payee-Bank Account" in the tutorial <a href="user-Howto.Create.Trade.Conditions/view">"How to create Trade Conditions"</a>, you have learned how to create a bank account for your company. <tr>
</p><p> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Modules&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot; /&gt; &lt;/tal:block&gt;</td>
In our example, please follow these tutorials and <strong>create a bank account "LCL Paris sud" for your company Hongzhao</strong> </tr>
. Do not forget to replace "Hongzhao" with the company you created. Then please <tr>
<strong>click on the Financial Information tab of the organisation document</strong> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
. This tab provides you with financial information about your company, such as Bank Accounts, Accounting Periods, etc. As you can see from the screenshot, the bank account you created appears in this tab, which means that the creation and validation were successful. If you want to see the details of this account, simply click on the line. This will lead you to the detail sheet of the bank account. </tr>
</p><p>Now we can create transactions linked to this bank account.</p> <tr>
</details> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Organisations&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<test> </tr>
<table style="display: none;" class="test"> <tr>
<tbody> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt;&lt;/tal:block&gt;</td>
<tr> </tr>
<td>openAndWait</td> <tr>
<td>${base_url}/view</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded&quot; /&gt;</td>
<td></td> </tr>
</tr> <tr>
<tr> <td>waitForElementPresent</td>
<td>selectAndWait</td> <td>//a[contains(text(), &quot;ZUITE-TEST-SALEORDER-ORGANISATION-001&quot;)]</td>
<td>//select[@name="select_module"]</td> <td>&nbsp;</td>
<td>Organisations</td> </tr>
</tr> <tr>
<tr style="opacity: 1;"> <td>click</td>
<td colspan="3">&lt;tal:block tal:content="structure python: here.Zuite_generateListboxBrowsing(listbox_selection=(['title', 'ZUITE-TEST-SALEORDER-ORGANISATION-001'],), enter_object=True)"/&gt;</td> <td>//a[contains(text(), &quot;ZUITE-TEST-SALEORDER-ORGANISATION-001&quot;)]</td>
</tr> <td>&nbsp;</td>
<tr> </tr>
<td>verifyText</td> <tr>
<td>//div[@id="breadcrumb"]/a[2]</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>Organisations</td> </tr>
</tr> <tr>
<tr> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Financial Information&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>verifyText</td> </tr>
<td>//div[@id="breadcrumb"]/a[3]</td> <tr>
<td>ZUITE-TEST-SALEORDER-ORGANISATION-001</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
<tr> <tr>
<td>clickAndWait</td> <td>waitForElementPresent</td>
<td>//span[text()="Financial Information"]/../</td> <td>//a[contains(text(), &quot;Main account&quot;)]</td>
<td></td> <td>&nbsp;</td>
</tr> </tr>
<tr> </tbody>
<td>verifyText</td> </table>
<td>//li[@class="selected"]/a/span</td> </test></section>
<td>Financial Information</td>
</tr> <section class="screenshot">
<tr> <h1>Reach the Invoice</h1>
<td>verifyTextPresent</td> <img alt="Reach the Invoice" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Related.Sale.Invoice?format=png" title="Reach the Invoice" type="image/svg+xml" />
<td>1 records</td> <details open="open">
<td></td> <p>Now we have to create the Payment from the Sale Invoice.</p>
</tr>
</tbody> <p>To reach the invoice we need, as you have learned in <a href="user-Howto.Manage.Invoices/view">&quot;How to manage Invoices&quot;</a>, to located the Sale Packing List &quot;Red LED&quot; and click on &quot;Related Sale Invoice Transaction&quot; in the &quot;Jump...&quot; menu. This will lead you to the related invoice, from which you will be able to create the related payment.</p>
</table> </details>
</test> <test>
</section><section class="screenshot"> <table class="test" style="display: none;">
<h1>Reach the Invoice</h1> <tbody>
<img alt="Reach the Invoice" title="Reach the Invoice" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Related.Sale.Invoice?format=png"> <tr>
<details open="open"> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Modules&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot; /&gt; &lt;/tal:block&gt;</td>
<p>Now we have to create the Payment from the Sale Invoice.</p><p> </tr>
To reach the invoice we need, as you have learned in <a href="user-Howto.Manage.Invoices/view">"How to manage Invoices"</a>, to located the Sale Packing List "Red LED" and click on "Related Sale Invoice Transaction" in the "Jump..." menu. This will lead you to the related invoice, from which you will be able to create the related payment. <tr>
</p> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</details> </tr>
<test> <tr>
<table style="display: none;" class="test"> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Sale Packing Lists&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_page_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<tbody> </tr>
<tr> <tr>
<td>selectAndWait</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt;&lt;/tal:block&gt;</td>
<td>//select[@name="select_module"]</td> </tr>
<td>Sale Packing Lists</td> <tr>
</tr> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_listbox_loaded&quot; /&gt;</td>
<tr> </tr>
<td>verifyText</td> <tr>
<td>//div[@id="breadcrumb"]/a[2]</td> <td>waitForElementPresent</td>
<td>Sale Packing Lists</td> <td>//a[contains(text(), &quot;ZUITE-TEST-SALEORDER-PRODUCT-001&quot;)]</td>
</tr> <td>&nbsp;</td>
<tr style="opacity: 1;"> </tr>
<td colspan="3">&lt;tal:block tal:content="structure python: here.Zuite_generateListboxBrowsing(listbox_selection=(['title', 'ZUITE-TEST-SALEORDER-PRODUCT-001'],), enter_object=True)"/&gt;</td> <tr>
</tr> <td>click</td>
<tr> <td>//a[contains(text(), &quot;ZUITE-TEST-SALEORDER-PRODUCT-001&quot;)]</td>
<td>verifyText</td> <td>&nbsp;</td>
<td>//div[@id="breadcrumb"]/a[2]</td> </tr>
<td>Sale Packing Lists</td> <tr>
</tr> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<tr> </tr>
<td>verifyText</td> <tr>
<td>//div[@id="breadcrumb"]/a[3]</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Related Sale Invoice Transaction&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<td>ZUITE-TEST-SALEORDER-PRODUCT-001</td> </tr>
</tr> <tr>
<tr> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt;&lt;/tal:block&gt;</td>
<td>selectAndWait</td> </tr>
<td>//select[@name="select_jump"]</td> <tr>
<td>Related Sale Invoice Transaction</td> <td>click</td>
</tr> <td>//input[@name=&quot;editable&quot;]</td>
<tr> <td>&nbsp;</td>
<td>verifyTextPresent</td> </tr>
<td>Sale Invoice Transaction related to Sale Packing List : ZUITE-TEST-SALEORDER-PRODUCT-001.</td> <tr>
<td></td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
</tbody> <tr>
</table> <td>waitForElementPresent</td>
</test> <td>//select[@name=&quot;field_my_source_section&quot;]</td>
</section><section class="screenshot"> <td>&nbsp;</td>
<h1>Create Related Payment</h1> </tr>
<img alt="Create Related Payment" title="Create Related Payment" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Create.Related.Payment?format=png"> </tbody>
<details open="open"> </table>
<p> </test></section>
Now it is time to <strong>create the related payment</strong>
. To do so, click on the Action item list and choose <section class="screenshot">
<strong>Create Related Payment</strong> <h1>Create Related Payment</h1>
. <img alt="Create Related Payment" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Create.Related.Payment?format=png" title="Create Related Payment" type="image/svg+xml" />
</p><p>This will create the payment and open its related sheet.</p><p> <details open="open">
Note: you can <strong>create the related payment from an invoice after it is "Journalised"</strong> <p>Now it is time to <strong>create the related payment</strong> . To do so, click on the Action item list and choose <strong>Create Related Payment</strong> .</p>
, not necessarily after you have "Definitively Close Transaction" and the invoice is "Closed".
</p> <p>This will create the payment and open its related sheet.</p>
</details>
<test> <p>Note: you can <strong>create the related payment from an invoice after it is &quot;Journalised&quot;</strong> , not necessarily after you have &quot;Definitively Close Transaction&quot; and the invoice is &quot;Closed&quot;.</p>
<table style="display: none;" class="test"> </details>
<tbody> <test>
<tr> <table class="test" style="display: none;">
<td>selectAndWait</td> <tbody>
<td>//select[@name="select_action"]</td> <tr>
<td>Create Related Payment</td> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Create Related Payment&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
<tr style="opacity: 1; z-index: 0;" class=""> <tr>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/select_cash_account"&gt;Select Cash Account&lt;/span&gt;</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</tr> </tr>
<tr> <tr>
<td>select</td> <td>waitForElementPresent</td>
<td>//select[@name="field_your_payment_mode"]</td> <td>//select[@name=&quot;field_your_payment_mode&quot;]</td>
<td>Credit Card</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr style="opacity: 1; z-index: 0;">
<td>select</td> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/select_cash_account&quot;&gt;Select Cash Account&lt;/span&gt;</td>
<td>//select[@name="field_your_node"]</td> </tr>
<td>Bank</td> <tr>
</tr> <td>select</td>
<tr> <td>//select[@name=&quot;field_your_payment_mode&quot;]</td>
<td>select</td> <td>Credit Card</td>
<td>//select[@name="field_your_payment"]</td> </tr>
<td>0123456789 0123456789 - Main account</td> <tr>
</tr> <td>select</td>
<tr> <td>//select[@name=&quot;field_your_payment&quot;]</td>
<td>clickAndWait</td> <td>0123456789 0123456789 - Main account</td>
<td>//button[@id="dialog_submit_button"]</td> </tr>
<td></td> <tr>
</tr> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog&quot;&gt; &lt;/tal:block&gt;</td>
<tr> </tr>
<td>type</td> <tr>
<td>//input[@name="field_my_title"]</td> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
<td>ZUITE-TEST-SALEORDER-PAYMENT-TRANSACTION-001</td> </tr>
</tr> <tr>
<tr> <td>waitForElementPresent</td>
<td>clickAndWait</td> <td>//input[@name=&quot;field_my_title&quot;]</td>
<td>//button[@name="Base_edit:method"]</td> <td>&nbsp;</td>
<td></td> </tr>
</tr> <tr>
</tbody> <td>type</td>
</table> <td>//input[@name=&quot;field_my_title&quot;]</td>
</test> <td>ZUITE-TEST-SALEORDER-PAYMENT-TRANSACTION-001</td>
</section><section class="screenshot"> </tr>
<h1>Choose basic payment information</h1> <tr>
<img alt="Choose basic payment information" title="Choose basic payment information" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Choose.Payment.Information?format=png"> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/save&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
<details open="open"> </tr>
<p> </tbody>
Before creating the payment, ERP5 will ask you to <strong>fill out some basic payment information which is indispensable for the payment creation</strong> </table>
. As shown in the screenshot, choose the Account for Bank Line, Payment Mode and Bank Account to which you want the payment to be related (in our case, the bank account of our company Hongzhao), and also the Accounting Operation Date. </test></section>
</p><p>After you have finished, click on "Create Related Payment".</p>
</details> <section class="screenshot">
</section><section class="screenshot"> <h1>Choose basic payment information</h1>
<h1>Edit Payment document</h1> <img alt="Choose basic payment information" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Choose.Payment.Information?format=png" title="Choose basic payment information" type="image/svg+xml" />
<img alt="Edit Payment document" title="Edit Payment document" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Edit.Payment.Document?format=png"> <details open="open">
<details open="open"> <p>Before creating the payment, ERP5 will ask you to <strong>fill out some basic payment information which is indispensable for the payment creation</strong> . As shown in the screenshot, choose the Account for Bank Line, Payment Mode and Bank Account to which you want the payment to be related (in our case, the bank account of our company Hongzhao), and also the Accounting Operation Date.</p>
<p>Now the new payment is created and you are led to its related document, and it is time to edit it.</p><p>As you can see in the screenshot, there is not much information missing. The main information needed (circled in blue) has been updated automatically according to the related invoice where the payment is created from, and the basic payment information you filled out in the previous step. The only thing you need to edit is the Title. But you can still modify the details if you need.</p><p>Fill in the missing details, and when you are done, save your data by clicking on the save button, and jump to the next page.</p>
</details> <p>After you have finished, click on &quot;Create Related Payment&quot;.</p>
</section><section class="screenshot"> </details>
<h1>Confirm Transaction</h1> </section>
<img alt="Confirm Payment Transaction" title="Confirm Payment Transaction" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Confirm.Transaction?format=png">
<details open="open"> <section class="screenshot">
<p>You are now used to workflows, so you should know that the workflows are available for each object without exceptions and can be found in the Action item list.</p><p> <h1>Edit Payment document</h1>
After the creation, the next step will be to <strong>confirm the payment, if you want it to be taken into account, or if you want to be able to create the related accounting operation</strong> <img alt="Edit Payment document" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Edit.Payment.Document?format=png" title="Edit Payment document" type="image/svg+xml" />
. <details open="open">
</p><p> <p>Now the new payment is created and you are led to its related document, and it is time to edit it.</p>
Please browse the Action item list and choose <strong>Confirm Transaction</strong>
. <p>As you can see in the screenshot, there is not much information missing. The main information needed (circled in blue) has been updated automatically according to the related invoice where the payment is created from, and the basic payment information you filled out in the previous step. The only thing you need to edit is the Title. But you can still modify the details if you need.</p>
</p><p>This action means that you have received the payment, for example, a payment related to an invoice you had sent to a customer some weeks ago. You know this because you can check the operations on your bank account on the internet, for example.</p><p>
But <strong>confirming the payment doesn't automatically create the related accounting transaction operation</strong> <p>Fill in the missing details, and when you are done, save your data by clicking on the save button, and jump to the next page.</p>
. As you have learned from the previous tutorial </details>
<a href="user-Howto.Manage.Invoices/view">"How to manage Invoices"</a>, the accounting transaction operation includes "Journalise Transaction", "Post Transaction To General Ledger" and "Definitively Close Accounting Transaction". For more information, please see the next page. </section>
</p>
</details> <section class="screenshot">
<test> <h1>Confirm Transaction</h1>
<table style="display: none;" class="test"> <img alt="Confirm Payment Transaction" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Confirm.Transaction?format=png" title="Confirm Payment Transaction" type="image/svg+xml" />
<tbody> <details open="open">
<tr> <p>You are now used to workflows, so you should know that the workflows are available for each object without exceptions and can be found in the Action item list.</p>
<td>selectAndWait</td>
<td>//select[@name="select_action"]</td> <p>After the creation, the next step will be to <strong>confirm the payment, if you want it to be taken into account, or if you want to be able to create the related accounting operation</strong> .</p>
<td>Confirm Transaction</td>
</tr> <p>Please browse the Action item list and choose <strong>Confirm Transaction</strong> .</p>
<tr>
<td>clickAndWait</td> <p>This action means that you have received the payment, for example, a payment related to an invoice you had sent to a customer some weeks ago. You know this because you can check the operations on your bank account on the internet, for example.</p>
<td>//button[@id="dialog_submit_button"]</td>
<td></td> <p>But <strong>confirming the payment doesn&#39;t automatically create the related accounting transaction operation</strong> . As you have learned from the previous tutorial <a href="user-Howto.Manage.Invoices/view">&quot;How to manage Invoices&quot;</a>, the accounting transaction operation includes &quot;Journalise Transaction&quot;, &quot;Post Transaction To General Ledger&quot; and &quot;Definitively Close Accounting Transaction&quot;. For more information, please see the next page.</p>
</tr> </details>
<tr> <test>
<td>verifyText</td> <table class="test" style="display: none;">
<td>//label[normalize-space(text())='State']/../div</td> <tbody>
<td>Confirmed</td> <tr>
</tr> <td colspan="3">&lt;tal:block tal:define=&quot;click_configuration python: {&#39;text&#39;: &#39;Confirm Transaction&#39;}&quot;&gt; &lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/click_on_panel_link&quot;&gt; &lt;/tal:block&gt; &lt;/tal:block&gt;</td>
</tbody> </tr>
</table> <tr>
</test> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
</section><section class="illustration"> </tr>
<h1>Accounting transaction part</h1> <tr>
<img alt="Accounting transaction part" title="Accounting transaction part" type="image/svg+xml" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Accounting?format=png"> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/submit_dialog&quot;&gt; &lt;/tal:block&gt;</td>
<details open="open"> </tr>
<p>You might want to journalise this payment, because it is mandatory in most countries. This is an operation involving treasury, during which your bank account will be credited.</p><p> <tr>
To learn more about <strong>Accounting</strong> <td colspan="3">&lt;tal:block metal:use-macro=&quot;here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_content_loaded&quot;&gt; &lt;/tal:block&gt;</td>
, we would recommend you to read the dedicated tutorial, that you can find in the knowledge base of ERP5 ( </tr>
<a href="user-Accounting.Guide/view">"La Comptabilité sous ERP5"</a>). <tr>
</p> <td>waitForElementPresent</td>
</details> <td>//p[@id=&quot;field_my_translated_simulation_state_title&quot;]</td>
<test> <td>&nbsp;</td>
<table style="display: none;" class="test"> </tr>
<tbody> <tr>
<tr class="" style="opacity: 1;"> <td>verifyText</td>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td> <td>//p[@id=&quot;field_my_translated_simulation_state_title&quot;]</td>
</tr> <td>Confirmed</td>
<tr class="" style="opacity: 1;"> </tr>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/login_as_manager"&gt;Login As Manager&lt;/span&gt;</td> </tbody>
</tr> </table>
<tr> </test></section>
<td>open</td>
<td>${base_url}/Zuite_tearDownSaleOrderTest</td> <section class="illustration">
<td></td> <h1>Accounting transaction part</h1>
</tr> <img alt="Accounting transaction part" src="http://img.erp5.cn/user-Howto.Create.A.Payment.Accounting?format=png" title="Accounting transaction part" type="image/svg+xml" />
<tr> <details open="open">
<td>verifyTextPresent</td> <p>You might want to journalise this payment, because it is mandatory in most countries. This is an operation involving treasury, during which your bank account will be credited.</p>
<td>Clean Ok</td>
<td></td> <p>To learn more about <strong>Accounting</strong> , we would recommend you to read the dedicated tutorial, that you can find in the knowledge base of ERP5 ( <a href="user-Accounting.Guide/view">&quot;La Comptabilit&eacute; sous ERP5&quot;</a>).</p>
</tr> </details>
<tr class="" style="opacity: 1; z-index: 0;"> <test>
<td colspan="3">&lt;span metal:use-macro="container/Zuite_viewTestMacroLibrary/macros/wait_for_activities"&gt; Wait for activities &lt;/span&gt;</td> <table class="test" style="display: none;">
</tr> <tbody>
</tbody> <tr style="opacity: 1;">
</table> <td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</test> </tr>
</section> <tr style="opacity: 1;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/login_as_manager&quot;&gt;Login As Manager&lt;/span&gt;</td>
\ No newline at end of file </tr>
<tr>
<td>open</td>
<td>${base_url}/Zuite_tearDownSaleOrderTest</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>verifyTextPresent</td>
<td>Clean Ok</td>
<td>&nbsp;</td>
</tr>
<tr style="opacity: 1; z-index: 0;">
<td colspan="3">&lt;span metal:use-macro=&quot;container/Zuite_viewTestMacroLibrary/macros/wait_for_activities&quot;&gt; Wait for activities &lt;/span&gt;</td>
</tr>
</tbody>
</table>
</test></section>
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment