diff --git a/Admin/Install/Media.install.json b/Admin/Install/Media.install.json index 7f7c084..ba0d3f7 100644 --- a/Admin/Install/Media.install.json +++ b/Admin/Install/Media.install.json @@ -1,15 +1,18 @@ [ { + "type": "collection", "name": "ItemManagement", "virtualPath": "/Modules", "user": 1 }, { + "type": "collection", "name": "Articles", "virtualPath": "/Modules/ItemManagement", "user": 1 }, { + "type": "collection", "name": "Images", "virtualPath": "/Modules/ItemManagement/Articles", "user": 1 diff --git a/Admin/Install/Media/bill.pdf.php b/Admin/Install/Media/bill.pdf.php deleted file mode 100644 index b4994de..0000000 --- a/Admin/Install/Media/bill.pdf.php +++ /dev/null @@ -1,287 +0,0 @@ -getData('bill'); - -$mpdf = new Mpdf([ - 'mode' => 'utf-8', - 'format' => 'A4-L', - 'orientation' => 'L', - 'margin_left' => 0, - 'margin_right' => 0, - 'margin_top' => 0, - 'margin_bottom' => 0, - 'margin_header' => 0, - 'margin_footer' => 0, -]); - -$mpdf->SetDisplayMode('fullpage'); -$mpdf->SetTitle($bill->getNumber()); -$mpdf->SetAuthor('Orange Management'); - -$mpdf->AddPage(); - -$mpdf->SetHTMLHeader(' -'); - -$mpdf->SetHTMLFooter(' -'); - -$mpdf->WriteHTML(' - - - - - - -
Date: 13th November 2008
- - - - -
SOLD TO:

345 Anotherstreet
Little Village
Their City
CB22 6SO
 SHIP TO:

345 Anotherstreet
Little Village
Their City
CB22 6SO
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ref. No.QuantityDescriptionUnit PriceAmount
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
MF123456710Large pack Hoover bags£2.56£25.60
MX378019821Womans waterproof jacket
Options - Red and charcoal.
£102.11£102.11
MR700929825Steel nails; oval head; 30mm x 3mm. Packs of 1000.£12.26£325.60
Subtotal:£1825.60
Tax:£18.25
Shipping:£42.56
TOTAL:£1882.56
Deposit:£100.00
Balance due:£1782.56
-
Payment terms: payment due in 30 days
- - -'); - -$mpdf->Output(); diff --git a/Admin/Install/Media/logo.png b/Admin/Install/Media/logo.png deleted file mode 100755 index 27d7f3c..0000000 Binary files a/Admin/Install/Media/logo.png and /dev/null differ diff --git a/Controller/ApiController.php b/Controller/ApiController.php index d283fff..2eaa368 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -590,7 +590,7 @@ final class ApiController extends Controller $request->getData('name') ?? '', $uploadedFiles, $request->header->account, - 'Modules/Media/Files/Modules/ItemManagement/' . ($request->getData('item') ?? '0'), + __DIR__ . '/../../../Modules/Media/Files/Modules/ItemManagement/' . ($request->getData('item') ?? '0'), '/Modules/ItemManagement/' . ($request->getData('item') ?? '0'), $request->getData('type') ?? '', '',