1 ESR Sales Invoices
lasalesi edited this page 2018-08-16 21:40:07 +02:00

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