public function createInvoice($debtorcode, $wefact_id)
 {
     // Wanneer de gebruiker pakket nr 1 'basis' heeft gekocht
     $newinvoice = new \Hyperized\Wefact\Invoice();
     $invoiceParameters = array('DebtorCode' => $debtorcode, 'InvoiceLines' => array(array('Number' => 1, 'ProductCode' => $wefact_id)));
     // dd($invoiceParameters);
     $newinvoice->add($invoiceParameters);
     $this->showAllInvoices($debtorcode);
     // return $factuur;
 }
 public function createInvoice($debtorcode)
 {
     // dd($debtorcode);
     $newinvoice = new \Hyperized\Wefact\Invoice();
     $invoiceParameters = array('DebtorCode' => $debtorcode, 'InvoiceLines' => array(array('Number' => 1, 'ProductCode' => 'P0001', 'DiscountPercentage' => 10)));
     // dd($invoiceParameters);
     $newinvoice->add($invoiceParameters);
     $this->showAllInvoices($debtorcode);
     // return $factuur;
 }