Skip to content

ESR Sales Invoices

lasalesi edited this page Aug 16, 2018 · 1 revision

As the release date for the QR Code Sales Invoices has again been delayed, we now also support ESR creation.

Concept

ERPNextSwiss contains fixtures that add ESR fields to the sales invoice. You have to add the following snippet to your local sales invoice custom script:

frappe.ui.form.on("Sales Invoice", {
  before_save: function(frm) {
    if (!frm.doc.__islocal) {
      esr_sales_invoice(frm, "01-234-56");
    }
  }
});

Print format

You will find the background for the ESR under /assets/erpnextswiss/public/images/esr.png

Clone this wiki locally