Changeset 741 for trunk/Modules/Finance/Finance.php
- Timestamp:
- Jul 5, 2015, 6:24:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r740 r741 17 17 define('INVOICE_GROUP_OUT', 2); 18 18 define('VAT_TYPE_BASE', 2); 19 19 define('FINANCE_DIRECTION_OUT', 0); 20 define('FINANCE_DIRECTION_IN', 1); 20 21 21 22 class Finance extends Model … … 219 220 'Cash' => array('Type' => 'Boolean', 'Caption' => 'Hotově', 'Default' => ''), 220 221 'Taxable' => array('Type' => 'Boolean', 'Caption' => 'Zdanitelné', 'Default' => ''), 221 'ValueSign' => array('Type' => 'TFinanceOperationValueSign', 'Caption' => 'Znaménko', 'Default' => '1'), 222 'Direction' => array('Type' => 'TFinanceDirection', 'Caption' => 'Směr', 'Default' => '0'), 223 'ValueSign' => array('Type' => 'TFinanceValueSign', 'Caption' => 'Znaménko', 'Default' => '1'), 222 224 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 223 225 'File' => array('Type' => 'TFile', 'Caption' => 'Doklad', 'Default' => '', 'Null' => true), … … 278 280 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => '0'), 279 281 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => '0'), 280 'ValueSign' => array('Type' => 'TFinanceInvoiceValueSign', 'Caption' => 'Znaménko hodnoty', 'Default' => '0'), 282 'ValueSign' => array('Type' => 'TFinanceValueSign', 'Caption' => 'Znaménko hodnoty', 'Default' => '0'), 283 'Direction' => array('Type' => 'TFinanceDirection', 'Caption' => 'Směr', 'Default' => '0'), 281 284 ), 282 285 )); … … 288 291 'Filter' => '1', 289 292 )); 290 $this->System->FormManager->RegisterFormType('TFinance OperationValueSign', array(293 $this->System->FormManager->RegisterFormType('TFinanceValueSign', array( 291 294 'Type' => 'Enumeration', 292 295 'States' => array(-1 => 'Mínus', 1 => 'Plus'), 296 )); 297 $this->System->FormManager->RegisterFormType('TFinanceDirection', array( 298 'Type' => 'Enumeration', 299 'States' => array(0 => 'Příjem', 1 => 'Výdej'), 293 300 )); 294 301 $this->System->FormManager->RegisterClass('FinanceInvoice', array( … … 304 311 'TimeDue' => array('Type' => 'Date', 'Caption' => 'Čas splatnosti', 'Default' => ''), 305 312 'TimePayment' => array('Type' => 'Date', 'Caption' => 'Čas zaplacení', 'Default' => '', 'Null' => true), 306 'ValueSign' => array('Type' => 'TFinanceInvoiceValueSign', 'Caption' => 'Znaménko', 'Default' => '1'), 313 'Direction' => array('Type' => 'TFinanceDirection', 'Caption' => 'Směr', 'Default' => '0'), 314 'ValueSign' => array('Type' => 'TFinanceValueSign', 'Caption' => 'Znaménko', 'Default' => '1'), 307 315 'Value' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 308 316 'File' => array('Type' => 'TFile', 'Caption' => 'Doklad', 'Default' => '', 'Null' => true), … … 331 339 $this->System->FormManager->Classes['FinanceInvoiceOut']['Items']['Group']['Filter'] = true; 332 340 333 $this->System->FormManager->RegisterFormType('TFinanceInvoiceValueSign', array(334 'Type' => 'Enumeration',335 'States' => array(-1 => 'Mínus', 1 => 'Plus'),336 ));337 338 341 $this->System->FormManager->RegisterClass('FinanceInvoiceGroup', array( 339 342 'Title' => 'Skupina faktur', … … 342 345 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => '0'), 343 346 'DocumentLine' => array('Type' => 'TDocumentLine', 'Caption' => 'Dokladová řada', 'Default' => '0'), 344 'ValueSign' => array('Type' => 'TFinanceInvoiceValueSign', 'Caption' => 'Znaménko hodnoty', 'Default' => '0'), 347 'ValueSign' => array('Type' => 'TFinanceValueSign', 'Caption' => 'Znaménko hodnoty', 'Default' => '0'), 348 'Direction' => array('Type' => 'TFinanceDirection', 'Caption' => 'Směr', 'Default' => '0'), 345 349 ), 346 350 ));
Note:
See TracChangeset
for help on using the changeset viewer.