003 costs/ number clean

This commit is contained in:
msyu
2025-06-19 14:59:50 +03:00
parent a07522702c
commit 62de4c0de6
7 changed files with 29 additions and 7 deletions
+7 -1
View File
@@ -50,7 +50,7 @@
<d:param field="specification_item_version" type="varchar" size="1023" init="#qLastVersion.specification_item_version#" preprocessor=#cleanInput#/>
<d:param field="quantity" type="numeric" init=#qLastVersion.quantity#/>
<d:param field="price" type="numeric" init=#qLastVersion.price#/>
<d:param field="price" type="numeric" init=#qLastVersion.price# preprocessor=#request.stripWhiteSpace#/>
<d:param field="dt_from" type="timestamp" format="yyyy-MM-dd" forNull="" init="#dateFormat(Now(),'YYYY-MM-DD')#"/> <!--- !!! Important yyyy-MM-dd NOT YYYY-MM-DD --->
<d:param field="dt_to" type="timestamp" format="yyyy-MM-dd" forNull="" init=""/> <!--- !!! Important yyyy-MM-dd NOT YYYY-MM-DD --->
@@ -197,6 +197,12 @@
<layout:detail_line title="Цена">
<input type="text" name="price" id="price" value="#d.price#" size="7" class="r"/>
<cfif len(d.price)>
<cftry>
Стоимость: <b>#d.quantity*d.price#</b>
<cfcatch type="any"></cfcatch>
</cftry>
</cfif>
</layout:detail_line>
<layout:detail_line title="Создано">