Changeset 370 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Jan 19, 2012, 12:30:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r367 r370 2 2 3 3 include_once('FinanceOverview.php'); 4 include_once(' tarify.php');5 include_once(' zarizeni.php');6 include_once(' spotreba.php');7 include_once(' inventory.php');8 include_once(' clenove.php');9 include_once(' monthly_overall.php');10 include_once(' manage.php');11 include_once(' user_state.php');12 include_once(' import.php');13 include_once(' zivnost.php');4 include_once('Tarify.php'); 5 include_once('Zarizeni.php'); 6 include_once('Spotreba.php'); 7 include_once('Inventory.php'); 8 include_once('Clenove.php'); 9 include_once('MonthlyOverall.php'); 10 include_once('Manage.php'); 11 include_once('UserState.php'); 12 include_once('Import.php'); 13 include_once('Zivnost.php'); 14 14 15 15 class FinancePage extends Page … … 163 163 $this->AddPropertyFloat('Price'); 164 164 $this->AddPropertyFloat('Quantity'); 165 } 166 } 167 168 class FinanceOperationView extends View 169 { 170 function __construct() 171 { 172 $this->Name = 'FinanceOperation'; 173 $this->Title = 'Platba'; 174 $this->AddItemOneToMany('DocumentLine', 'Dokladová řada', 'DocumentLine', 3); 175 $this->AddItemTime('Time', 'Čas', 'Now'); 176 $this->AddItemOneToMany('Subject', 'Subjekt', 'Subject', 0); 177 $this->AddItemFloat('Value', 'Částka [Kč]', 0); 178 $this->AddItemString('Text', 'Popis', 'Vklad'); 179 $this->AddItemBoolean('Cash', 'Hotovost', 0); 180 $this->AddItemBoolean('Taxable', 'Ovlivňující daňový základ', 1); 181 $this->AddManyToOne('FinanceOperation', 'Položky'); 182 } 183 } 184 185 class FinanceClaimsLiabilitiesView extends View 186 { 187 function __construct() 188 { 189 $this->Name = 'FinanceClaimsLiabilities'; 190 $this->Title = 'Faktura'; 191 $this->AddItemOneToMany('DocumentLine', 'Dokladová řada', 'DocumentLine', 3); 192 $this->AddItemTime('TimeCreation', 'Čas vytvoření', 'Now'); 193 $this->AddItemTime('TimeDue', 'Čas splatnosti', 'Now'); 194 $this->AddItemOneToMany('Subject', 'Subjekt', 'Subject', 0); 195 $this->AddItemString('Text', 'Popis', 'Nákup zařízení'); 196 $this->AddItemFloat('Value', 'Částka [Kč]', 0); 197 $this->AddManyToOne('FinanceClaimsLiabilitiesItems', 'Položky'); 165 198 } 166 199 } … … 206 239 'FinanceTariff', 'FinanceOperation', 'FinanceClaimsLiabilities', 207 240 'FinanceBills', 'FinanceBillsItems'); 241 $this->Views = array('FinanceOperation', 'FinanceClaimsLiabilities'); 208 242 } 209 243
Note:
See TracChangeset
for help on using the changeset viewer.