Changeset 741 for trunk/Modules/Finance/Bill.php
- Timestamp:
- Jul 5, 2015, 6:24:33 PM (10 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/Modules/Finance/Bill.php (modified) (4 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/Modules/Finance/Bill.phpr740 r741 78 78 } 79 79 80 // If negative value => switch sides 81 if($Invoice['ValueSign'] == -1) 80 // If direction is in => switch sides 81 if($Invoice['Direction'] == FINANCE_DIRECTION_OUT) 82 { 83 } 84 else if($Invoice['Direction'] == FINANCE_DIRECTION_IN) 82 85 { 83 86 $Subject = $SubjectTo; … … 85 88 $SubjectFrom = $Subject; 86 89 } 90 else throw new Exception('Wrong finance direction'); 87 91 88 92 $PaymentType = array('převodem', 'hotově'); … … 162 166 163 167 $BooleanText = array('Ne', 'Ano'); 164 if($Operation[' ValueSign'] == -1)168 if($Operation['Direction'] == FINANCE_DIRECTION_OUT) 165 169 $Desc = array( 166 170 'Type' => 'VÝDAJOVÝ', … … 168 172 'Target' => 'Vydáno komu', 169 173 ); 170 else if($Operation[' ValueSign'] == 1)174 else if($Operation['Direction'] == FINANCE_DIRECTION_IN) 171 175 $Desc = array( 172 176 'Type' => 'PŘÍJMOVÝ', 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
