Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

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

Tracked releases
1
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.x-dev Dev Nov 20, 2024