Ignore:
Timestamp:
Dec 7, 2021, 11:08:42 PM (2 years ago)
Author:
chronos
Message:
  • Added: Allow to switch Mail class into test mode.
  • Modified: Type checking related changes.
  • Modified: Replace global $Config references with $this->System->Config is possible.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Stock/Stock.php

    r901 r916  
    2020  function DoStart(): void
    2121  {
    22     global $Config;
    23 
    2422    $this->System->FormManager->RegisterClass('Product', array(
    2523      'Title' => 'Produkty',
     
    114112        'Amount' => array('Type' => 'Integer', 'Caption' => 'Množství', 'Default' => '1'),
    115113        'Total' => array('Type' => 'Integer', 'Caption' => 'Celkem', 'Default' => '', 'Suffix' => 'Kč',
    116           'ReadOnly' => true, 'SQL' => 'ROUND(`UnitPrice` * `Amount`, '.$Config['Finance']['Rounding'].')'),
     114          'ReadOnly' => true, 'SQL' => 'ROUND(`UnitPrice` * `Amount`, '.$this->System->Config['Finance']['Rounding'].')'),
    117115        'Položky pohybů' => array('Type' => 'TStockMoveItemSerialListItem', 'Caption' => 'Vztahy sériových čísel', 'Default' => ''),
    118116        'Sériové čísla' => array('Type' => 'String', 'Caption' => 'Sériové čísla', 'ReadOnly' => true,
Note: See TracChangeset for help on using the changeset viewer.