Set precision to 5 decimals (constants.php)

Show item description if serialized (invoice.php)
This commit is contained in:
jekkos committed 2015-06-28 14:20:39 +02:00
1 parent fc5f097820
commit 0788f4eef9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/*
| Precision for calculations performed on decimals
*/
define("PRECISION", 3);
define("PRECISION", 5);
/* End of file constants.php */
/* Location: ./application/config/constants.php */
+1 -1
View File
@@ -75,7 +75,7 @@ if (isset($error_message))
?>
<tr class="item-row">
<td><?php echo $item['item_number']; ?></td>
<td class="item-name"><textarea rows="5" cols="6" class='long_name'><?php echo $item['name']; ?></textarea></td>
<td class="item-name"><textarea rows="5" cols="6" class='long_name'><?php echo $item['is_serialized'] ? $item['description'] : $item['name']; ?></textarea></td>
<td style='text-align:center;'><textarea rows="5" cols="6"><?php echo $item['quantity']; ?></textarea></td>
<td><textarea rows="5" cols="6"><?php echo to_currency($item['price']); ?></textarea></td>
<td style='text-align:center;'><textarea rows="5" cols="6"><?php echo $item['discount'] .'%'; ?></textarea></td>