Section Data Set section data of invoice

Complete invoice is basically divided in 5 sections.

  1. Header
  2. Sender and Receiver Details
  3. Item Details
  4. Payment Details
  5. Footer
For each section, there are before and after section area is defined that allows you to add data before and after that section directly. For example, if you want to add a dotted line after header then you can do something like this
$xinvoice->setInvoiceSections("after_header", "---------------------------------------");
Similarly other section before and after area can be used to add data directly. Here is list of before and after section areas.
  1. Header (before_header and after_header)
  2. Sender and Receiver Details (before_sender_receiver and after_sender_receiver)
  3. Item Details (before_items and after_items)
  4. Payment Details (before_payment and after_payment)
  5. Footer (before_footer and after_footer)

                            $xinvoice = new Xinvoice();
                            $xinvoice->setInvoiceSections("before_header", "hello");
                            echo $xinvoice->render("HTML");