From d0e0d17b5d7753d8e5334b24592712fe7c54f24c Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 12 Oct 2023 12:30:33 +0800 Subject: [PATCH] fix --- constants/invoice_html.go | 450 +++++++++++++++++++------------------- 1 file changed, 228 insertions(+), 222 deletions(-) diff --git a/constants/invoice_html.go b/constants/invoice_html.go index b2eca035..d04d1f1b 100644 --- a/constants/invoice_html.go +++ b/constants/invoice_html.go @@ -1,7 +1,8 @@ package constants // 主体页面 -const MAIN_INVOICE_HTML = ` +const MAIN_INVOICE_HTML = ` + @@ -9,230 +10,235 @@ const MAIN_INVOICE_HTML = ` Invoice + - - - - - - - - - - - - - - - - - - - - - - - - - -
- logo - - Invoice -
- Invoice Number: -
- {{order_sn}} -
- Date: -
- {{order_expire_time}} -
- - - - - - - - - - - - - - - - - - - - - - - - - -
- Bill To: - - Bill From: -
- {{name}} - - Lemon - Squeezy LLC -
- {{street}} {{suite}} - - Lemon - Squeezy LLC -
- {{city}} {{state}} {{zip_code}} - - Lemon - Squeezy LLC -
- - - Lemon - Squeezy LLC -
- - - - - - - - -
- Product - Name - - Unit - Price - - Quantity - - Total -
- - - {{orderHTML}} - - - - - - - - - - - - - - - - - - - - - {{second_payment_html}} - - - - - - - - - - {{pay_html}} - - - - - - - - - -
- Subtotal - - ${{total_amount}} -
- Tax - - $0.00 -
- Invoice Total - - ${{total_amount}} -
- First Payment - - -${{first_payment}} -
- Amount Due - - ${{amount_due}} -
- Payment Method: -
- Notes: -
- Add a note... -
+ + + + + + + +
Invoice
+ + + + + + + + + + + + + + + + + + + + + + +
Bill To:Invoice No. {{invoice_number}}
{{buyer_name}}Date: {{buy_date}}
{{street}}
{{city}}
{{country}}
+ + + + {{product_loop_html}} + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Subtotal${{subtotal_price}}
Shipping FeeFree
Tax${{tax}}
Total${{total_price}}
Deposit Requested${{deposit_price}}
Deposit Due${{deposit_price}}
+ + + + + + + + + + + + + +
Payment Method:Notes:
{{payment_method}}{{notes}}
Account No. {{account_number}}
-` + -// 发票支付html模板 -const PAYMENT_HTML = ` - - - ${{pay_amount}} payment from {{brand}} - ····{{card_no}} - - ` +` -// 二次支付html -const SECOND_PAYMENY_HTML = ` - - Second Payment - - - -${{remain_amount}} - - - ` - -// order html -const ORDER_HTML = ` - - {{product_title}} - - - ${{amount}} - - - {{buy_num}}pcs - - - ${{sum_amount}} - - - ` +// 产品循环部分{{product_loop_html}} +const PRODUCT_LOOP_HTML_CONTENT = ` + {{product_name}} + ${{product_item_price}} + {{purchase_quantity}} + ${{product_total_price}} + `