25 lines
678 B
PHP
25 lines
678 B
PHP
#!/usr/bin/php
|
|
<?php
|
|
|
|
//require 'vendor/autoload.php';
|
|
require("../../config/config.php");
|
|
|
|
define('FRONKDB_SQLDEBUG',false);
|
|
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
|
|
|
|
require_once(LIBDIR."/mvcfronk/mfRouter/mfRouter.php");
|
|
require_once(LIBDIR."/mvcfronk/mfBase/mfBaseModel.php");
|
|
require_once(LIBDIR."/mvcfronk/mfBase/mfBaseController.php");
|
|
|
|
$me = new User(1);
|
|
|
|
define("INTERNAL_USER_ID", $me->id);
|
|
define("INTERNAL_USER_USERNAME", $me->username);
|
|
|
|
$invoice = InvoiceModel::getFirst(["invoice_number" => "RN2024-X026813"]);
|
|
var_dump($invoice);
|
|
$invoice->sendByEmail("jantscher@xinon.at");
|
|
exit;
|
|
|
|
$ic = new InvoiceController();
|
|
$ic->_sendEmailInvoices(); |