|
@@ -301,8 +301,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$companyCity = V::get('A_miejscowosc', '', $item);
|
|
$companyCity = V::get('A_miejscowosc', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$companyName) throw new Exception("Nie podano nazwy");
|
|
|
|
- if (!$companyNip) throw new Exception("Nie podano nip");
|
|
|
|
|
|
+ //if (!$companyName) throw new Exception("Nie podano nazwy");
|
|
|
|
+ //if (!$companyNip) throw new Exception("Nie podano nip");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
'imiona' => $companyName,
|
|
'imiona' => $companyName,
|
|
@@ -335,8 +335,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$companyCity = V::get('A_miejscowosc', '', $item);
|
|
$companyCity = V::get('A_miejscowosc', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$companyName) throw new Exception("Nie podano nazwy");
|
|
|
|
- if (!$companyNip) throw new Exception("Nie podano nip");
|
|
|
|
|
|
+ //if (!$companyName) throw new Exception("Nie podano nazwy");
|
|
|
|
+ //if (!$companyNip) throw new Exception("Nie podano nip");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
'imiona' => $companyName,
|
|
'imiona' => $companyName,
|
|
@@ -363,8 +363,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personPesel = V::get('pesel', '', $item);
|
|
$personPesel = V::get('pesel', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
'imiona' => $personName,
|
|
'imiona' => $personName,
|
|
@@ -385,8 +385,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personPesel = V::get('pesel', '', $item);
|
|
$personPesel = V::get('pesel', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
'imiona' => $personName,
|
|
'imiona' => $personName,
|
|
@@ -418,8 +418,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personEnterprise.=$personSurname;
|
|
$personEnterprise.=$personSurname;
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
'imie' => $personName,
|
|
'imie' => $personName,
|
|
@@ -447,8 +447,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personRegon = V::get('regon', '', $item);
|
|
$personRegon = V::get('regon', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_PRACOWNICY', [
|
|
'imie' => $personName,
|
|
'imie' => $personName,
|
|
@@ -639,8 +639,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
|
|
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personFirstName) throw new Exception("Nie podano nazwy");
|
|
|
|
- if (!$personNip) throw new Exception("Nie podano nip");
|
|
|
|
|
|
+ //if (!$personFirstName) throw new Exception("Nie podano nazwy");
|
|
|
|
+ //if (!$personNip) throw new Exception("Nie podano nip");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
'Pelna_nazwa_kontrahenta' => $personEnterprise,
|
|
'Pelna_nazwa_kontrahenta' => $personEnterprise,
|
|
@@ -668,8 +668,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personPesel = V::get('pesel', '', $item);
|
|
$personPesel = V::get('pesel', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
//'Skrocona_Nazwa_Kontrahenta' => $personName,
|
|
//'Skrocona_Nazwa_Kontrahenta' => $personName,
|
|
@@ -690,8 +690,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personPesel = V::get('pesel', '', $item);
|
|
$personPesel = V::get('pesel', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
//'Skrocona_Nazwa_Kontrahenta' => $personName,
|
|
//'Skrocona_Nazwa_Kontrahenta' => $personName,
|
|
@@ -712,8 +712,8 @@ TODO: dodać możliwość wysyłania maila używajac mail()
|
|
$personPesel = V::get('pesel', '', $item);
|
|
$personPesel = V::get('pesel', '', $item);
|
|
|
|
|
|
// validate
|
|
// validate
|
|
- if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
- if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
+ //if (!$personName) throw new Exception("Nie podano imienia");
|
|
|
|
+ //if (!$personSurname) throw new Exception("Nie podano nazwiska");
|
|
|
|
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
$idOd = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI', [
|
|
//'Skrocona_Nazwa_Kontrahenta' => $personName,
|
|
//'Skrocona_Nazwa_Kontrahenta' => $personName,
|