Exemplo n.º 1
0
function invoice_body()
{
    global $invoice, $pdf, $CONFIG;
    if (isset($invoice['invoice'])) {
        $template = $CONFIG['invoices']['cnote_template_file'];
    } else {
        $template = $CONFIG['invoices']['template_file'];
    }
    switch ($template) {
        case "standard":
            invoice_body_standard();
            break;
        case "FT-0100":
            invoice_body_ft0100();
            break;
        default:
            if (file_exists($template)) {
                require $template;
            } else {
                //go to LMS modules directory
                require MODULES_DIR . '/' . $template;
            }
    }
    if (!isset($invoice['last'])) {
        $pdf->ezNewPage();
    }
}
Exemplo n.º 2
0
function invoice_body()
{
    global $invoice, $pdf;
    if (isset($invoice['invoice'])) {
        $template = ConfigHelper::getConfig('invoices.cnote_template_file');
    } else {
        $template = ConfigHelper::getConfig('invoices.template_file');
    }
    switch ($template) {
        case "standard":
            invoice_body_standard();
            break;
        case "FT-0100":
            invoice_body_ft0100();
            break;
        default:
            if (file_exists($template)) {
                require $template;
            } else {
                //go to LMS modules directory
                require MODULES_DIR . '/' . $template;
            }
    }
    if (!isset($invoice['last'])) {
        new_page();
    }
}
Exemplo n.º 3
0
function invoice_body() {
	global $invoice, $pdf, $CONFIG;

	if (isset($invoice['invoice']))
		$template = $CONFIG['invoices']['cnote_template_file'];
	else
		$template = $CONFIG['invoices']['template_file'];

	switch ($template) {
		case "standard":
			invoice_body_standard();
			break;
		case "FT-0100":
			invoice_body_ft0100();
			break;
		default:
			require($template);
	}

	if (!isset($invoice['last'])) $pdf->AddPage();
}
Exemplo n.º 4
0
function invoice_body()
{
    global $invoice, $pdf, $CONFIG;
    if (isset($invoice['invoice'])) {
        $template = $CONFIG['invoices']['cnote_template_file'];
    } else {
        $template = $CONFIG['invoices']['template_file'];
    }
    switch (strtoupper($template)) {
        case "STANDARD":
            invoice_body_standard();
            break;
        case "FT-0100":
            invoice_body_ft0100();
            break;
        default:
            require $template;
    }
    if (!isset($invoice['last'])) {
        $pdf->AddPage();
    }
}
Exemplo n.º 5
0
function invoice_body()
{
    global $invoice, $pdf;
    if (isset($invoice['invoice'])) {
        $template = ConfigHelper::getConfig('invoices.cnote_template_file');
    } else {
        $template = ConfigHelper::getConfig('invoices.template_file');
    }
    switch ($template) {
        case "standard":
            invoice_body_standard();
            break;
        case "FT-0100":
            invoice_body_ft0100();
            break;
        default:
            require $template;
    }
    if (!isset($invoice['last'])) {
        new_page();
    }
}