Bläddra i källkod

fixed missing cennik in oferta admin in Kosztorysy

Piotr Labudda 10 år sedan
förälder
incheckning
befb555591
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      SE/se-lib/Route/UrlAction/ProjektyKosztyWstepnychRobot.php

+ 4 - 0
SE/se-lib/Route/UrlAction/ProjektyKosztyWstepnychRobot.php

@@ -796,6 +796,7 @@ SQL_FUN;
 						$edit_id_zasob = $idType;
 						$edit_unit = $layData['jednostka'];
 						// TODO: check if anything change
+						DBG::_('DBG', '>1', "EDIT price for idZasob({$idType}) {price:{$edit_price}, id_offer:{$edit_id}}", $typeLabel, __CLASS__, __FUNCTION__, __LINE__);
 						$edit__sth->execute();
 						// TODO: add to hist
 					}
@@ -805,6 +806,7 @@ SQL_FUN;
 					if ($add_price > 0) {
 						$add_id_zasob = $idType;
 						$add_unit = $layData['jednostka'];
+						DBG::_('DBG', '>1', "ADD price for idZasob({$idType}) {price:{$add_price}}", $typeLabel, __CLASS__, __FUNCTION__, __LINE__);
 						$add__sth->execute();
 					}
 				}
@@ -1087,6 +1089,8 @@ SQL_FUN;
 		if ($admin && '1' == V::get('save_offer', '', $_POST)) {
 			$this->saveOffer($idProject, $idCompany, $_POST, $admin);
 		}
+		$defCennik = $this->getDefaultCennik($idCompany);
+		$cennik = $this->getCennik($idProject, $idCompany);
 		?>
 <div class="container">
 	<?php if ($admin) : ?>