mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-24 02:46:56 -05:00
Set precision to 5 decimals (constants.php)
Show item description if serialized (invoice.php)
This commit is contained in:
@@ -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 */
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user