- Description :
+ Description:
|
[[ o.name ]]
@@ -173,24 +173,24 @@
|
- Report Date :
+ Report Date:
|
- [[ time.strftime("%d.%m.%Y", time.localtime()) ]]
+ [[ formatLang(time.strftime(date_format), date=True) ]]
|
- Invoice Date :
+ Invoice Date:
|
- [[ o.date_invoice and format_date(o.date_invoice) or '' ]]
+ [[ o.date_invoice and formatLang(o.date_invoice, date=True) or '' ]]
|
- Amount bought : [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]
- Quantity of hours bought : [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]
+ Amount bought: [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]
+ Quantity of hours bought: [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]
|
[[ o.amount_hours_block ]]
@@ -198,9 +198,8 @@
|
-
- Amount used : [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]
- Quantity of hours used : [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]
+ Amount used: [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]
+ Quantity of hours used: [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]
|
[[ round(o.amount_hours_block_done, 2) ]]
@@ -208,10 +207,9 @@
|
-
- Remaining amount : [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]
- Remaining hours : [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]
-
+ Remaining amount: [[ (o.type == 'amount' or removeParentNode('para')) and '' ]]
+ Remaining hours: [[ (o.type == 'hours' or removeParentNode('para')) and '' ]]
+
|
[[ o.amount_hours_block and round(o.amount_hours_block_delta, 2) or '' ]]
@@ -239,23 +237,23 @@
Deduced
|
-
+
- [[ repeatIn(analytic_lines(o),'l') ]]
+ [[ repeatIn(analytic_lines(o), 'l') ]]
- [[ l.date and format_date(l.date) or '' ]]
+ [[ l.date if formatLang(l.date, date=True) else '' ]]
|
[[ l.name or '' ]]
|
- [[ round(l.unit_amount or '0.0', 2) ]]
+ [[ round(l.unit_amount, 2) or '0.0' ]]
|
[[ l.to_invoice.customer_name ]]
|
- [[ round((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or '0.0', 2) ]]
+ [[ round((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ), 2) or '0.0' ]]
|
diff --git a/analytic_hours_block/security/hours_block_security.xml b/analytic_hours_block/security/hours_block_security.xml
index 3f9ff31e..81c50c4d 100644
--- a/analytic_hours_block/security/hours_block_security.xml
+++ b/analytic_hours_block/security/hours_block_security.xml
@@ -7,5 +7,5 @@