Resource: accountingedit.nv

HTTP-method: POST

Accounting material edit can be used to edit existing vouchers, voucher lines, line cost objects, and voucher attachments in Netvisor. The voucher request must be directed to the accountingedit.nv resource without parameters. One request can include only one voucher. Accounting material edit can be used to edit the voucher's main information and voucher lines, but no edit history is saved for the main information. The main information does not need to be provided if only voucher lines are being edited. Accounting material edit invalidates the existing voucher lines and imports the lines provided in the edit message as new voucher lines to the voucher. If no voucher line information is provided in the edit message, they are not handled at all. 

The data to be imported must be included in the request as an XML with the following structure:

LevelElement nameType and lengthOccursDescriptionExample
RootrootAggr.1  
1voucherAggr.1  
2netvisorkeyNumeric1Netvisor key of the voucher being edited. Netvisor key can be retrieved with the resource accountingledger.nv.
2calculationmodeString0...1Calculation mode for the voucher. Handle voucher lines with net (net) or gross (gross) handling. In net handling, the system does not automatically calculate vat and rounding error lines.net
2voucherdateDate0...1Date of the voucher2009-1-1
Attr.formatString0...1Date format, always ansiansi
2numberNumeric, max. 90...1Voucher number. If not given, the system automatically picks next number from the chosen voucher type1
2descriptionString, max. 2550...1Voucher description.
Description
2voucherclassString1Voucher type. See possible voucher types above (It is also possible to create own voucher types).Sales invoice
2checkedString0...1Defines whether imported voucher rises to unchecked postings view. True or false, false by default.
false
2commentString, max 2550...1A comment that can be seen in the voucher's processing history
Comment to processing history
2voucherlineAggr.0...n  
3linesumNumeric1Row sum. Negative value is recorded to credit side and positive value on debet side. Two decimal maximum.-100.00
Attr.typeString0...1Sum type, net (tax-free) or gross (tax-included)net
3descriptionString, max. 2551Voucher line description. Description text
3accountnumberNumeric1Accounting account number, must be found or an error is returned.1701
3vatpercentNumeric1VAT percent. Must not be in conflict with vatcode attribute.24
Attr.vatcodeString0...1VAT code. If not given, value behind account number is used. Valid values are listed here.KOMY
3accountdimensionString0...1Voucher line's follow-up objectFollow-up object 1
Attr.typeString1Follow-up object type, netvisorkey or name
If "netvisorkey" is given, the element must provide the follow-up object's ID. The ID cannot be retrieved via the interface, but is visible in Netvisor.

If "name" is given, the element must provide the follow-up object's name. The follow-up object is identified based on the name from all follow-up object names.
name
3dimensionAggr.0...n  
4dimensionnameString, max. 501Cost object header
If the header is not found in the system, the interface creates it
Project 1
4dimensionitemString, max. 2001Cost object
If the object is not found in the system, the interface creates it
Payroll
2voucherattachmentsAggr.0...1  
3voucherattachmentAggr.1...n  
4mimetypeString1MIME-type of the attachmentApplication/pdf
4attachmentdescriptionString1Description 
4filenameString1File name of the attachmentDescription.pdf
4documentdataString1Data of the attachment as base64 encoded string 


This article has been translated using an AI-based translation tool. The contents or wording of these instructions may differ from those in other instructions or in the software.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.