Johannes Zellner 5 лет назад
Родитель
Сommit
26266be52a
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      website/app/Modules/Tour/db_action.php
  2. 1 1
      website/app/print_tour.php

+ 1 - 1
website/app/Modules/Tour/db_action.php

@@ -32,7 +32,7 @@ switch($db_action)
 
 		$bill = new Bill();
 
-		$new_bill_id = $bill->create('', array(var_post("customer_id", ""), var_post("tour_id", ""), var_post("date", ""), var_post("assistant_id", ""), -1, 0));
+		$new_bill_id = $bill->create(var_post("customer_id", ""), var_post("tour_id", ""), var_post("assistant_id", ""), -1, var_post("date", ""));
 
 		$bill_product = new Bill_Product();
 

+ 1 - 1
website/app/print_tour.php

@@ -11,7 +11,7 @@ $tour_id = var_get("tour_id", "");
 $date = var_get("date", "");
 
 $bill = new Bill();
-$bill_data = $bill->get("", array("bill_id"), "tour_id='".$tour_id."' AND date='".$date."'");
+$bill_data = $bill->get("", array("bill_id"), "bill.tour_id='".$tour_id."' AND date='".$date."'");
 
 $tour = new Tour();
 $tmp = $tour->get($tour_id);