print_bill.php 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. require_once("util.php");
  3. require_once("DataBase/Bill.php");
  4. require_once("DataBase/Assistant.php");
  5. require_once("DataBase/Customer.php");
  6. require_once("DataBase/Product.php");
  7. require_once("DataBase/Bill_Product.php");
  8. require_once("DataBase/Price.php");
  9. require_once("DataBase/Priceset.php");
  10. require_once("DataBase/Tax.php");
  11. $bill_id = var_get_post("bill_id", "");
  12. $bill = new Bill();
  13. $tmp = $bill->get($bill_id);
  14. $bill_data = $tmp[0];
  15. $customer = new Customer();
  16. $tmp = $customer->get($bill_data[1]);
  17. $customer_data = $tmp[0];
  18. $assistant = new Assistant();
  19. $tmp = $assistant->get($bill_data[4]);
  20. $assistant_data = $tmp[0];
  21. $priceset = new Priceset();
  22. $tmp = $priceset->get($customer_data[11]);
  23. $priceset_data = $tmp[0];
  24. $bill_product = new Bill_Product();
  25. $bill_product_data = $bill_product->getByBillId($bill_id);
  26. $product = new Product();
  27. $price = new Price();
  28. $tax = new Tax();
  29. include("Druckvorlagen/zeilen.php");
  30. include("Druckvorlagen/rechnung.php");
  31. ?>