This project is not covered by Drupal’s security advisory policy.

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.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: E-commerce
  • Ecosystem: Webform
  • Created by ty10086 on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases