| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- require_once("util.php");
- require_once("../DataBase/Bill.php");
- require_once("../DataBase/Assistant.php");
- require_once("../DataBase/Customer.php");
- require_once("../DataBase/Product.php");
- require_once("../DataBase/Bill_Product.php");
- require_once("../DataBase/Price.php");
- require_once("../DataBase/Priceset.php");
- require_once("../DataBase/Tax.php");
- $bill_id = var_get_post("bill_id", "");
- $bill = new Bill();
- $tmp = $bill->get($bill_id);
- $bill_data = $tmp[0];
- $customer = new Customer();
- $tmp = $customer->get($bill_data[1]);
- $customer_data = $tmp[0];
- $assistant = new Assistant();
- $tmp = $assistant->get($bill_data[4]);
- $assistant_data = $tmp[0];
- $priceset = new Priceset();
- $tmp = $priceset->get($customer_data[11]);
- $priceset_data = $tmp[0];
- $bill_product = new Bill_Product();
- $bill_product_data = $bill_product->getByBillId($bill_id);
- $product = new Product();
- $price = new Price();
- $tax = new Tax();
- include("Druckvorlagen/zeilen.php");
- include("Druckvorlagen/rechnung.php");
- ?>
|