| #year#-#numberFormat(month,"00")# |
@@ -164,7 +173,7 @@ S3 операции и трафик:
|
-
+ |
#svc# #service_code#
(#serviceCustomName#)
(не найдено в договоре)
@@ -179,7 +188,7 @@ S3 операции и трафик: |
#code# (#m_code#) |
#svc# |
- #component# |
+ #component# |
@@ -196,33 +205,43 @@ S3 операции и трафик:
|
#unit# |
- #gaussianRound(discounted_price,2)# |
+ #gaussianRoundSafe(discounted_price,2)# |
|
|
- |
+ |
+
+ #price# |
+ #discounted_price# |
+
+ #service_quantity# |
+ #service_discount# |
+ #component_quantity# |
+ #component_discount# |
-
+
+
|
Итого #code# (#m_code#): |
- #round(accum_metric_dimension_1,3)# |
+ #round(final_metric_dimension_1,3)# |
#free_tier# |
- #max(ceiling(accum_metric_dimension_1) - free_tier, 0)# |
+ #max(final_metric_dimension_1 - free_tier, 0)# |
#unit# |
- #gaussianRound(discounted_price,2)# |
+ #gaussianRoundSafe(discounted_price,2)# |
#cost_dimension_1# |
#svc# |
- #component# |
+ #component# |
+
|
@@ -241,6 +260,7 @@ S3 операции и трафик: | |
+ | Total: #accum_cost_total# |
@@ -268,7 +288,7 @@ S3 операции и трафик:
#contractOutsideId# |
#additionalAgreementName# |
- #serviceType# |
+ style="background:lightgreen">#serviceType# |
#serviceCustomName# |
#serviceQuantity# |
#serviceDiscount# |
@@ -276,11 +296,11 @@ S3 операции и трафик: #dateFormat(serviceEnd, "YYYY-MM-DD")#
#component# |
#componentCode# |
- #quantity# |
+ #componentQuantity# |
#measureShort# |
- #gaussianRound(priceWVat,2)# |
- #discount# |
- #gaussianRound((100-serviceDiscount)/100*(100-discount)/100*priceWVat,4)# |
+ #gaussianRoundSafe(priceWVat,2)# | #priceWVat# |
+ #componentDiscount# |
+ #gaussianRoundSafe((100-serviceDiscount)/100*(100-componentDiscount)/100*priceWVat,7)#/td>
@@ -293,6 +313,10 @@ S3 операции и трафик:
+string function gaussianRoundSafe(any num, numeric precision = 0, string default="") {
+ return (isNumeric(arguments.num)) ? gaussianRound(arguments.num, arguments.precision) : arguments.default;
+}
+
function gaussianRound(numeric number, numeric precision = 0) {
var factor = 10 ^ precision;
var scaledNumber = number * factor;
|