Banana.Document (Invoice)

Dokumentation •
In diesem Artikel

This API is available only for Estimates & Invoices Application.

calculateInvoice(string) 

It receives the Invoice JSON Object as a parameter and completes the fields by calculating their values, returning a string containing the complete structure of a Invoice. For example, it is possible to use this function together with the DocumentChange API to import invoices into the accounting.


var invoiceObj = (Invoice JSON Object)
invoiceObj  = JSON.parse(Banana.document.calculateInvoice(JSON.stringify(invoiceObj)));

 

printInvoice(string) 



// Before printing you can adapt the content through templates
var invoiceObj = (Invoice JSON Object)
// Updates Document title
invoiceObj.document_info.title = invoiceObj.document_info.description;

Banana.document.printInvoice(JSON.stringify(invoiceObj));

Helfen Sie uns, unsere Dokumentation zu verbessern

Ihre Anregungen, wie wir diese Seite verbessern könnten, sind uns jederzeit willkommen.

Sagen Sie uns bitte, welches Thema eine bessere Erklärung braucht oder wie wir ein Argument verständlicher erklären könnten.

Diesen Artikel teilen: Twitter | Facebook | LinkedIn | Email