|
|
@@ -719,7 +719,7 @@ SQL_FUN;
|
|
|
$add_price = 0;
|
|
|
$add_quantity = 0;
|
|
|
$add__sth = $pdo->prepare("
|
|
|
- insert into CRM_LISTA_ZASOBOW_OFFERS__TEST (
|
|
|
+ insert into CRM_LISTA_ZASOBOW_OFFERS (
|
|
|
CRM_LISTA_ZASOBOW_ID
|
|
|
, COMPANIES_ID
|
|
|
, ID_PROJECT
|
|
|
@@ -757,7 +757,7 @@ SQL_FUN;
|
|
|
$edit_author = 0;
|
|
|
$edit_quantity = 0;
|
|
|
$edit__sth = $pdo->prepare("
|
|
|
- update CRM_LISTA_ZASOBOW_OFFERS__TEST
|
|
|
+ update CRM_LISTA_ZASOBOW_OFFERS
|
|
|
set CRM_LISTA_ZASOBOW_ID = :id_zasob
|
|
|
, COMPANIES_ID = :id_company
|
|
|
, ID_PROJECT = :id_project
|
|
|
@@ -820,7 +820,7 @@ SQL_FUN;
|
|
|
$add_price = 0;
|
|
|
$add_quantity = 0;
|
|
|
$add__sth = $pdo->prepare("
|
|
|
- insert into CRM_LISTA_ZASOBOW_OFFERS__TEST (
|
|
|
+ insert into CRM_LISTA_ZASOBOW_OFFERS (
|
|
|
CRM_LISTA_ZASOBOW_ID
|
|
|
, COMPANIES_ID
|
|
|
, ID_PROJECT
|
|
|
@@ -857,7 +857,7 @@ SQL_FUN;
|
|
|
$edit_author = 0;
|
|
|
$edit_quantity = 0;
|
|
|
$edit__sth = $pdo->prepare("
|
|
|
- update CRM_LISTA_ZASOBOW_OFFERS__TEST
|
|
|
+ update CRM_LISTA_ZASOBOW_OFFERS
|
|
|
set CRM_LISTA_ZASOBOW_ID = :id_zasob
|
|
|
, COMPANIES_ID = :id_company
|
|
|
, ID_PROJECT = :id_project
|
|
|
@@ -921,7 +921,7 @@ SQL_FUN;
|
|
|
, o.RESOURCE_UNIT_TYPE as unit
|
|
|
-- , o.OFFER_UNIT_TYPE as unit
|
|
|
, o.REQUIRED_RESOURCE_UNITS as quantity
|
|
|
- from CRM_LISTA_ZASOBOW_OFFERS__TEST o
|
|
|
+ from CRM_LISTA_ZASOBOW_OFFERS o
|
|
|
where o.CRM_LISTA_ZASOBOW_ID in({$sqlTypeIdList})
|
|
|
-- and o.A_STATUS not in ('DELETED')
|
|
|
and o.ID_PROJECT = 0
|
|
|
@@ -956,7 +956,7 @@ SQL_FUN;
|
|
|
, o.RESOURCE_UNIT_TYPE as unit
|
|
|
-- , o.OFFER_UNIT_TYPE as unit
|
|
|
, o.REQUIRED_RESOURCE_UNITS as quantity
|
|
|
- from CRM_LISTA_ZASOBOW_OFFERS__TEST o
|
|
|
+ from CRM_LISTA_ZASOBOW_OFFERS o
|
|
|
where o.CRM_LISTA_ZASOBOW_ID in({$sqlTypeIdList})
|
|
|
-- and o.A_STATUS not in ('DELETED')
|
|
|
and o.ID_PROJECT = :id_project
|