Changeset 786 for trunk/Modules/Portal/Portal.php
- Timestamp:
- Jan 11, 2016, 12:06:08 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/Portal.php
r738 r786 40 40 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''), 41 41 'FamilyMemberCount' => array('Type' => 'Integer', 'Caption' => 'Počet osob v domácnosti', 'Default' => '', 'Suffix' => 'osob'), 42 'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Požadované fakturované období', 'Default' => ''),43 42 ), 44 43 )); … … 196 195 $CustomerUserRel = $DbResult->fetch_assoc(); 197 196 $DbResult = $this->Database->query('SELECT Member.Id, '. 198 'Member.FamilyMemberCount, Member.BillingPeriodNext,Subject.Name, Subject.AddressStreet, '.197 'Member.FamilyMemberCount, Subject.Name, Subject.AddressStreet, '. 199 198 'Subject.AddressTown, Subject.AddressPSC, Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject '. 200 199 'ON Subject.Id = Member.Subject WHERE Member.Id='.$CustomerUserRel['Customer']); … … 215 214 if($Form->Values['FamilyMemberCount'] < 0) 216 215 $Form->Values['FamilyMemberCount'] = 0; 217 if($Form->Values['BillingPeriodNext'] < 2)218 $Form->Values['BillingPeriodNext'] = 2;219 216 220 217 $DbResult = $this->Database->update('Member', 'Id='.$this->System->User->User['Member'], 221 array('FamilyMemberCount' => $Form->Values['FamilyMemberCount'], 222 'BillingPeriodNext' => $Form->Values['BillingPeriodNext'])); 218 array('FamilyMemberCount' => $Form->Values['FamilyMemberCount'])); 223 219 $DbResult = $this->Database->query('SELECT Subject FROM Member WHERE Id='.$this->System->User->User['Member']); 224 220 $Member = $DbResult->fetch_assoc(); … … 231 227 $this->System->ModuleManager->Modules['Log']->NewRecord('Member+Subject', 'Nastavení člena/subjektu změněno', 232 228 $Form->Values['Name']); 233 $DbResult = $this->Database->query('SELECT Member.Id, Member.FamilyMemberCount, Member.BillingPeriodNext,'.229 $DbResult = $this->Database->query('SELECT Member.Id, Member.FamilyMemberCount, '. 234 230 'Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, '. 235 231 'Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject '.
Note:
See TracChangeset
for help on using the changeset viewer.