Changeset 719 for trunk/Modules/Finance/Bill.php
- Timestamp:
- Jan 2, 2015, 11:16:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Bill.php
r680 r719 166 166 //} 167 167 $BooleanText = array('Ne', 'Ano'); 168 if($Operation[' Value'] < 0)168 if($Operation['Direction'] == -1) 169 169 $Desc = array( 170 170 'Type' => 'VÝDAJOVÝ', 171 171 'Signature' => 'Vydal', 172 'Sign' => -1,173 172 'Target' => 'Vydáno komu', 174 173 ); 175 else $Desc = array( 174 else if($Operation['Direction'] == 1) 175 $Desc = array( 176 176 'Type' => 'PŘÍJMOVÝ', 177 177 'Signature' => 'Přijal', 178 'Sign' => 1,179 178 'Target' => 'Přijato od', 180 179 ); 180 else throw new Exception('Wrong finance direction'); 181 181 182 182 $Output = '<table width="100%" border="1" cellspacing="0" cellpadding="3"><tr><td width="50%">'. … … 201 201 if($Subject['DIC'] != '') $Output .= 'DIČ: '.$Subject['DIC'].'<br>'; 202 202 $Description = $Operation['Text']; 203 $Total = $Operation['Value'] * $Desc['Sign'];204 203 $Output .= '</td></tr>'. 205 '<tr><td colspan="2"><strong>Částka:</strong> '.$ Total.' Kč<br><br>'.204 '<tr><td colspan="2"><strong>Částka:</strong> '.$Operation['Value'].' Kč<br><br>'. 206 205 '</td></tr>'. 207 206 '<tr><td colspan="2"><strong>Účel platby:</strong><br>'.$Description.'</td></tr>'.
Note:
See TracChangeset
for help on using the changeset viewer.