Ignore:
Timestamp:
Sep 21, 2015, 12:12:26 AM (9 years ago)
Author:
chronos
Message:

This solves problem with inconsistency between invoice and invoice items values and inconsistency between selected document line and incorrect positive or negative values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Form/Form.php

    r738 r747  
    11<?php
    22
    3 include_once(dirname(__FILE__).'/../Database.php');
    43include_once(dirname(__FILE__).'/Types/Type.php');
    54
     
    232231    foreach($this->Definition['Items'] as $Index => $Item)
    233232    {
    234       if(!array_key_exists('ReadOnly', $Item)) $Item['ReadOnly'] = false;
    235       if($Item['ReadOnly'] == false)
     233      if(array_key_exists($Index, $this->Values))
    236234      if(!array_key_exists($Item['Type'], $this->FormManager->FormTypes) or
    237235      (array_key_exists($Item['Type'], $this->FormManager->FormTypes) and
Note: See TracChangeset for help on using the changeset viewer.