--- erp_accounting/erp_accounting.module-org	2011-07-05 21:39:12.000000000 +0200
+++ erp_accounting/erp_accounting.module	2011-07-05 21:41:27.000000000 +0200
@@ -576,3 +576,27 @@
   }
   return $format;
 }
+
+function erp_currency_new($amount) {
+  static $format, $format_sym;
+
+  // php - money-format
+  // http://www.php.net/manual/en/function.money-format.php
+  // strfmon needs to exists and correct locale must be set, could be a problem
+
+  // php - number-format
+  // http://php.net/manual/en/function.number-format.php
+  // not as many problems, as above and more flexible
+
+
+  if (!$format_sym) {
+    $format_sym = variable_get('erp_accounting_currency_symbol', '$ ');
+  }
+
+  if (!$format) {
+    $format = variable_get('erp_accounting_currency_format', '%-12.2f');
+  }
+
+  return $format_sym.trim(number_format(sprintf($format, $amount),2,'.',' '));
+}
+
--- erp.css-org	2011-07-05 21:39:12.000000000 +0200
+++ erp.css	2011-07-05 21:46:24.000000000 +0200
@@ -338,3 +338,39 @@
   font-size: 1.1em;
   font-family: Verdana,Arial,Helvetica,sans-serif;
 }
+
+/**
+ * currency alignment css
+ */
+div.qty .form-text {
+  text-align: right;
+}
+
+div.discount .form-text {
+  text-align: right;
+}
+
+div.price .form-text {
+  text-align: right;
+}
+
+div.line_total .form-text {
+  text-align: right;
+}
+
+div.total .form-text {
+  text-align: right;
+}
+
+/*
+input#edit-entries-newline-total {
+  text-align: right;
+}
+*/
+
+/*
+ Report alignment css
+ */
+.item-qty, .item-avail, .item-discount, .item-amount, .item-subtotal, .total-amount {
+  text-align: right;
+}
