Amount to Chinese capital letters
Features
Webform中将罗马数字金额转为中文大写金额
In Webform or any template based TWIG,you can use it Convert Roman_numerals amount in Chinese capital letters.
e.g: Price in "38038.00"--------->"叁万捌仟零叁拾捌元整"
Post-Installation
1.Install it,any you can use it one any twig fields/twig template.
2.In webform,to add a compute twig element,then in settings,Computed value/markup like this:
Full version
{% set amount = webform_submission.data.tel %}
{% if amount is not empty %}
{{ amount | number_to_chinese_uppercase }}
{% else %} NO Data!
{% endif %}
Note:"webform_submission.data.tel" is your Roman numerals field that will be converted.Such as 29909.
Or just fill it like this:
Simple version
{{ amount | number_to_chinese_uppercase }}
Note:"amount" is your Roman numerals field that will be converted.Such as 29909.
After it saved,view your submited webform,you can see it.
3.In twig template,you can use it also.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 8.x-1.x-dev | Dev | Supports the conversion of Roman numeral amounts into Chinese capital amounts | Nov 20, 2024 |