Compare commits
No commits in common. "main" and "migrate_final" have entirely different histories.
main
...
migrate_fi
2 changed files with 0 additions and 17 deletions
|
|
@ -248,9 +248,3 @@ website_route_rules = [
|
|||
]
|
||||
|
||||
export_python_type_annotations = True
|
||||
|
||||
jinja = {
|
||||
"methods": [
|
||||
"suppliers_portal.overrides.print.amount_in_words_with_asterisks",
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
import frappe
|
||||
from frappe.utils import flt, money_in_words
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def amount_in_words_with_asterisks(amount):
|
||||
amount = flt(amount)
|
||||
amount_in_words = money_in_words(amount)[4:-6]
|
||||
if amount % 1 == 0:
|
||||
return f"{amount_in_words + ' and Zero Cents ':*<70}"
|
||||
return f"{amount_in_words + 's ':*<84}"
|
||||
Loading…
Add table
Reference in a new issue