Compare commits
14 Commits
2ceeba828e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e9e70e8c5 | |||
| c9edd5fcb0 | |||
| f4d6fe6206 | |||
| 57ff78b64a | |||
| fc5ed91475 | |||
| 00291d363e | |||
| 5cc43ac1c6 | |||
| 32f9e2b6c7 | |||
| f5f744c5df | |||
| 691b6a5569 | |||
| 2c2ebbd096 | |||
| 37ea99cf5e | |||
| 7fd2439b55 | |||
| 08791678ba |
@@ -3,13 +3,12 @@ name: Build startup image
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
schedule:
|
||||||
|
# Run every Sunday at midnight
|
||||||
|
- cron: '1 0 * * 0'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Use docker.io for Docker Hub if empty
|
IMAGE: /ri-st/startup
|
||||||
REGISTRY: cs-registry.ddnss.de
|
|
||||||
USER: chris
|
|
||||||
PASS: q',\H(Od:G3).Xv<#!5P
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-and-release-image:
|
Build-and-release-image:
|
||||||
@@ -22,24 +21,62 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
buildkitd-flags: '--allow-insecure-entitlement network.host'
|
||||||
|
driver-opts: network=host
|
||||||
|
|
||||||
- name: Log into registry
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: https://cs-git.ddnss.de
|
username: ${{ vars.DOCKERHUB_USER }}
|
||||||
username: ${{ env.USER }}
|
password: ${{ vars.DOCKERHUB_TOKEN }}
|
||||||
password: ${{ env.PASS }}
|
|
||||||
|
- name: Log into CS registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.CS_REGISTRY_URL }}
|
||||||
|
username: ${{ vars.CS_REGISTRY_USER }}
|
||||||
|
password: ${{ vars.CS_REGISTRY_PASS }}
|
||||||
|
|
||||||
|
- name: Log into local registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.LOCAL_REGISTRY_URL }}
|
||||||
|
username: ${{ vars.LOCAL_REGISTRY_USER }}
|
||||||
|
password: ${{ vars.LOCAL_REGISTRY_PASS }}
|
||||||
|
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: cs-git.ddnss.de/ri-st/startup
|
images: ${{ secrets.REGISTRY_URL }}${{ env.IMAGE }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v6
|
||||||
env:
|
env:
|
||||||
ACTIONS_RUNTIME_TOKEN: ''
|
ACTIONS_RUNTIME_TOKEN: ''
|
||||||
with:
|
with:
|
||||||
tags: cs-git.ddnss.de/ri-st/startup:latest
|
allow: network.host
|
||||||
|
network: host
|
||||||
|
tags: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
|
||||||
push: true
|
push: true
|
||||||
|
|
||||||
|
- name: Scan image
|
||||||
|
uses: anchore/scan-action@v6
|
||||||
|
id: scan
|
||||||
|
with:
|
||||||
|
image: ${{ vars.LOCAL_REGISTRY_URL }}${{ env.IMAGE }}:latest
|
||||||
|
fail-build: false
|
||||||
|
output-format: table
|
||||||
|
severity-cutoff: critical
|
||||||
|
registry-username: ${{ vars.LOCAL_REGISTRY_USER }}
|
||||||
|
registry-password: ${{ vars.LOCAL_REGISTRY_PASS }}
|
||||||
|
|
||||||
|
- name: Inspect file
|
||||||
|
run: cat ${{ steps.scan.outputs.table }}
|
||||||
|
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: scan-result
|
||||||
|
path: ${{ steps.scan.outputs.table }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ RUN composer install --no-dev --no-scripts --ignore-platform-reqs
|
|||||||
RUN composer dumpautoload --optimize
|
RUN composer dumpautoload --optimize
|
||||||
|
|
||||||
#Use prebuilt image
|
#Use prebuilt image
|
||||||
FROM cs-git.ddnss.de/docker/nginx-fpm-8-4:latest AS final
|
FROM gitea.fam-steinle.de/docker/nginx-fpm-8-4:latest AS final
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
USER root
|
USER root
|
||||||
COPY --from=composer-build /var/www/html /var/www/html
|
COPY --from=composer-build /var/www/html /var/www/html
|
||||||
@@ -15,5 +15,3 @@ COPY --from=composer-build /var/www/html /var/www/html
|
|||||||
RUN sed -ri -e 's!upload_max_filesize = 2M!upload_max_filesize = 8M!g' /etc/php84/conf.d/custom.ini
|
RUN sed -ri -e 's!upload_max_filesize = 2M!upload_max_filesize = 8M!g' /etc/php84/conf.d/custom.ini
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
|
|
||||||
VOLUME /var/www/html
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"phpmailer/phpmailer": "5.2.*",
|
"phpmailer/phpmailer": "v6.9.*",
|
||||||
"tecnickcom/tcpdf": "6.2.12"
|
"tecnickcom/tcpdf": "6.8.*",
|
||||||
}
|
"ext-mysqli": "*"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
107
composer.lock
generated
107
composer.lock
generated
@@ -4,64 +4,58 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "6a0769e85a903c4a0fd6971cebefccf7",
|
"content-hash": "d648791e6ab684ed771b80e8e2a1401b",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "phpmailer/phpmailer",
|
"name": "phpmailer/phpmailer",
|
||||||
"version": "v5.2.28",
|
"version": "v6.9.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/PHPMailer/PHPMailer.git",
|
"url": "https://github.com/PHPMailer/PHPMailer.git",
|
||||||
"reference": "acba50393dd03da69a50226c139722af8b153b11"
|
"reference": "2f5c94fe7493efc213f643c23b1b1c249d40f47e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/acba50393dd03da69a50226c139722af8b153b11",
|
"url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/2f5c94fe7493efc213f643c23b1b1c249d40f47e",
|
||||||
"reference": "acba50393dd03da69a50226c139722af8b153b11",
|
"reference": "2f5c94fe7493efc213f643c23b1b1c249d40f47e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"php": ">=5.0.0"
|
"ext-filter": "*",
|
||||||
|
"ext-hash": "*",
|
||||||
|
"php": ">=5.5.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"doctrine/annotations": "1.2.*",
|
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
|
||||||
"jms/serializer": "0.16.*",
|
"doctrine/annotations": "^1.2.6 || ^1.13.3",
|
||||||
"phpdocumentor/phpdocumentor": "2.*",
|
"php-parallel-lint/php-console-highlighter": "^1.0.0",
|
||||||
"phpunit/phpunit": "4.8.*",
|
"php-parallel-lint/php-parallel-lint": "^1.3.2",
|
||||||
"symfony/debug": "2.8.*",
|
"phpcompatibility/php-compatibility": "^9.3.5",
|
||||||
"symfony/filesystem": "2.8.*",
|
"roave/security-advisories": "dev-latest",
|
||||||
"symfony/translation": "2.8.*",
|
"squizlabs/php_codesniffer": "^3.7.2",
|
||||||
"symfony/yaml": "2.8.*",
|
"yoast/phpunit-polyfills": "^1.0.4"
|
||||||
"zendframework/zend-cache": "2.5.1",
|
|
||||||
"zendframework/zend-config": "2.5.1",
|
|
||||||
"zendframework/zend-eventmanager": "2.5.1",
|
|
||||||
"zendframework/zend-filter": "2.5.1",
|
|
||||||
"zendframework/zend-i18n": "2.5.1",
|
|
||||||
"zendframework/zend-json": "2.5.1",
|
|
||||||
"zendframework/zend-math": "2.5.1",
|
|
||||||
"zendframework/zend-serializer": "2.5.*",
|
|
||||||
"zendframework/zend-servicemanager": "2.5.*",
|
|
||||||
"zendframework/zend-stdlib": "2.5.1"
|
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"league/oauth2-google": "Needed for Google XOAUTH2 authentication"
|
"decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication",
|
||||||
|
"ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses",
|
||||||
|
"ext-openssl": "Needed for secure SMTP sending and DKIM signing",
|
||||||
|
"greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication",
|
||||||
|
"hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication",
|
||||||
|
"league/oauth2-google": "Needed for Google XOAUTH2 authentication",
|
||||||
|
"psr/log": "For optional PSR-3 debug logging",
|
||||||
|
"symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)",
|
||||||
|
"thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"psr-4": {
|
||||||
"class.phpmailer.php",
|
"PHPMailer\\PHPMailer\\": "src/"
|
||||||
"class.phpmaileroauth.php",
|
}
|
||||||
"class.phpmaileroauthgoogle.php",
|
|
||||||
"class.smtp.php",
|
|
||||||
"class.pop3.php",
|
|
||||||
"extras/EasyPeasyICS.php",
|
|
||||||
"extras/ntlm_sasl_client.php"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
"license": [
|
"license": [
|
||||||
"LGPL-2.1"
|
"LGPL-2.1-only"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
@@ -83,45 +77,37 @@
|
|||||||
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
|
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/PHPMailer/PHPMailer/issues",
|
"issues": "https://github.com/PHPMailer/PHPMailer/issues",
|
||||||
"source": "https://github.com/PHPMailer/PHPMailer/tree/v5.2.28"
|
"source": "https://github.com/PHPMailer/PHPMailer/tree/v6.9.3"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
|
||||||
"url": "https://marcus.bointon.com/donations/",
|
|
||||||
"type": "custom"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"url": "https://github.com/Synchro",
|
"url": "https://github.com/Synchro",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
|
||||||
{
|
|
||||||
"url": "https://www.patreon.com/marcusbointon",
|
|
||||||
"type": "patreon"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2020-03-19T14:29:37+00:00"
|
"time": "2024-11-24T18:04:13+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tecnickcom/tcpdf",
|
"name": "tecnickcom/tcpdf",
|
||||||
"version": "6.2.12",
|
"version": "6.8.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/tecnickcom/TCPDF.git",
|
"url": "https://github.com/tecnickcom/TCPDF.git",
|
||||||
"reference": "2f732eaa91b5665274689b1d40b285a7bacdc37f"
|
"reference": "f7a781073e1645062f163e058139e2f89355d420"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/tecnickcom/TCPDF/zipball/2f732eaa91b5665274689b1d40b285a7bacdc37f",
|
"url": "https://api.github.com/repos/tecnickcom/TCPDF/zipball/f7a781073e1645062f163e058139e2f89355d420",
|
||||||
"reference": "2f732eaa91b5665274689b1d40b285a7bacdc37f",
|
"reference": "f7a781073e1645062f163e058139e2f89355d420",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.3.0"
|
"ext-curl": "*",
|
||||||
|
"php": ">=7.1.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"fonts",
|
|
||||||
"config",
|
"config",
|
||||||
"include",
|
"include",
|
||||||
"tcpdf.php",
|
"tcpdf.php",
|
||||||
@@ -142,13 +128,13 @@
|
|||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
"license": [
|
"license": [
|
||||||
"LGPLv3"
|
"LGPL-3.0-or-later"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Nicola Asuni",
|
"name": "Nicola Asuni",
|
||||||
"email": "info@tecnick.com",
|
"email": "info@tecnick.com",
|
||||||
"homepage": "http://nicolaasuni.tecnick.com"
|
"role": "lead"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",
|
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",
|
||||||
@@ -163,9 +149,16 @@
|
|||||||
"qrcode"
|
"qrcode"
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/tecnickcom/TCPDF/tree/6.2.12"
|
"issues": "https://github.com/tecnickcom/TCPDF/issues",
|
||||||
|
"source": "https://github.com/tecnickcom/TCPDF/tree/6.8.2"
|
||||||
},
|
},
|
||||||
"time": "2015-09-12T10:08:34+00:00"
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://www.paypal.com/cgi-bin/webscr?cmd=_donations¤cy_code=GBP&business=paypal@tecnick.com&item_name=donation%20for%20tcpdf%20project",
|
||||||
|
"type": "custom"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2025-01-26T14:03:12+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [],
|
||||||
@@ -174,7 +167,9 @@
|
|||||||
"stability-flags": [],
|
"stability-flags": [],
|
||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": [],
|
"platform": {
|
||||||
|
"ext-mysqli": "*"
|
||||||
|
},
|
||||||
"platform-dev": [],
|
"platform-dev": [],
|
||||||
"plugin-api-version": "2.6.0"
|
"plugin-api-version": "2.6.0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
error_reporting(E_ERROR | E_WARNING);
|
error_reporting(E_ERROR);
|
||||||
session_start();
|
session_start();
|
||||||
if (isset($_SESSION['Firma']['ID']))
|
if (isset($_SESSION['Firma']['ID']))
|
||||||
{
|
{
|
||||||
@@ -7,6 +7,9 @@ if (isset($_SESSION['Firma']['ID']))
|
|||||||
define('GUELTIG', $_SESSION['Firma']['A_Bis']);
|
define('GUELTIG', $_SESSION['Firma']['A_Bis']);
|
||||||
define('ZAHLBAR', $_SESSION['Firma']['Z_Bis']);
|
define('ZAHLBAR', $_SESSION['Firma']['Z_Bis']);
|
||||||
}
|
}
|
||||||
|
include "inc/config.php"; // die Konfigurationsdateien lesen
|
||||||
|
require_once(__DIR__ . '/vendor/autoload.php');
|
||||||
|
|
||||||
if (!defined('PREFIX')) {
|
if (!defined('PREFIX')) {
|
||||||
define('PREFIX', '');
|
define('PREFIX', '');
|
||||||
}
|
}
|
||||||
@@ -14,8 +17,6 @@ if ('Test' == PREFIX)
|
|||||||
{
|
{
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
include "inc/config.php"; // die Konfigurationsdateien lesen
|
|
||||||
require_once(__DIR__ . '/vendor/autoload.php');
|
|
||||||
|
|
||||||
// Verbindung zu MySQL Aufbauen
|
// Verbindung zu MySQL Aufbauen
|
||||||
$db = @new MySQLi(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE);
|
$db = @new MySQLi(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ $result = $db->query($sql);
|
|||||||
$resultt = $db->query($sqlt);
|
$resultt = $db->query($sqlt);
|
||||||
$_19 = $_19_MwSt = 0;
|
$_19 = $_19_MwSt = 0;
|
||||||
$_7 = $_7_MwSt = 0;
|
$_7 = $_7_MwSt = 0;
|
||||||
$_0 = 0;
|
$_0 = $_0_MwSt = 0;
|
||||||
$Sonst_Preis = $Sonst_MwSt = 0;
|
$Sonst_Preis = $Sonst_MwSt = 0;
|
||||||
|
|
||||||
$pdf->SetTextColor(00);
|
$pdf->SetTextColor(00);
|
||||||
@@ -246,10 +246,4 @@ $pdf->Cell(25, 4, number_format(($_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',',
|
|||||||
$pdf->SetFont('Helvetica','', 10);
|
$pdf->SetFont('Helvetica','', 10);
|
||||||
$pdf->Cell(25, 4, number_format(($_19 + $_7 + $_0 + $Sonst_Preis + $_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',', '.')." €", 0, 0, 'R');
|
$pdf->Cell(25, 4, number_format(($_19 + $_7 + $_0 + $Sonst_Preis + $_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',', '.')." €", 0, 0, 'R');
|
||||||
|
|
||||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
$pdf->Output("A_" . date('Ymd') . ".pdf", "D");
|
||||||
{
|
|
||||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$file = __DIR__ . "/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf";
|
|
||||||
$pdf->Output($file, "F");
|
|
||||||
@@ -170,10 +170,4 @@ $pdf->Cell(25, 4, number_format(($_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',',
|
|||||||
$pdf->SetFont('Helvetica','', 10);
|
$pdf->SetFont('Helvetica','', 10);
|
||||||
$pdf->Cell(25, 4, number_format(($_19 + $_7 + $_0 + $Sonst_Preis + $_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',', '.')." €", 0, 0, 'R');
|
$pdf->Cell(25, 4, number_format(($_19 + $_7 + $_0 + $Sonst_Preis + $_19_MwSt + $_7_MwSt + $Sonst_MwSt), '2', ',', '.')." €", 0, 0, 'R');
|
||||||
|
|
||||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
$pdf->Output("A_" . date('Ymd') . ".pdf", "D");
|
||||||
{
|
|
||||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$file = __DIR__ . "/" . PREFIX . "/eur/A_" . date('Ymd') . ".pdf";
|
|
||||||
$pdf->Output($file, "F");
|
|
||||||
@@ -152,10 +152,5 @@ $pdf->Cell(25, 4, number_format($ntsum['MwSt'], '2', ',', '.') . " €", 0, 0, '
|
|||||||
$pdf->SetFont('Helvetica', '', 10);
|
$pdf->SetFont('Helvetica', '', 10);
|
||||||
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
||||||
|
|
||||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
|
||||||
{
|
|
||||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf";
|
$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf";
|
||||||
$pdf->Output($file, "F");
|
$pdf->Output("E_" . date('Ymd') . ".pdf", "D");
|
||||||
@@ -150,10 +150,4 @@ $pdf->Cell(25, 4, number_format($ntsum['MwSt'], '2', ',', '.') . " €", 0, 0, '
|
|||||||
$pdf->SetFont('Helvetica', '', 10);
|
$pdf->SetFont('Helvetica', '', 10);
|
||||||
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
$pdf->Cell(25, 4, number_format($ntsum['Gesamt'], '2', ',', '.') . " €", 0, 1, 'R');
|
||||||
|
|
||||||
if(!is_dir(__DIR__ . "/" . PREFIX . "/eur"))
|
$pdf->Output("E_" . date('Ymd') . ".pdf", "D");
|
||||||
{
|
|
||||||
mkdir(__DIR__ . "/" . PREFIX . "/eur", 0777, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$file = __DIR__ . "/" . PREFIX . "/eur/E_" . date('Ymd') . ".pdf";
|
|
||||||
$pdf->Output($file, "F");
|
|
||||||
Reference in New Issue
Block a user