| Reopen Method | |
| See Also |
Reopens a closed document.
The method is only relevant for China, Japan, Korea, India, Brazil and Singapore.
| Visual Basic |
|---|
Public Function Reopen() As Long |
You can only reopen a document if all of the following conditions are met:
- The document is an A/R, A/P, or reserve invoice.
- The document status is closed.
- The document total is 0.
- There are no target documents related to the invoice.
- There is no reconciliation related to the invoice.
- There is no related freight in the header or lines.
- For item invoices, there is a quantity greater than 0 for each line.
For all countries except Brazil, the following conditions for lines must also be met:
- For item invoices, the unit price and line total is 0 for all lines.
- For service invoices, the line total is 0 for all lines.
For Brazil, all lines must meet the above conditions or must meet all of the following conditions:
- The Tax Only checkbox is selected for all rows.
- The VAT Code is set to Included in Price for all rows.