fix(ECX-8150): pass individual title when submitting personal invoice

Use individual_title for company_title param when invoice_type is not enterprise
instead of empty string so backend receives the correct personal invoice title.

Made-with: Cursor
This commit is contained in:
zhangjing1
2026-03-23 13:59:51 +08:00
parent d375946b5f
commit a764c6c50f

View File

@@ -163,7 +163,7 @@ function Invoice(props) {
invoice_type_code: info?.invoice_type_code,
invoice_type: info?.invoice_type,
company_title:
info?.invoice_type == 'enterprise' ? info?.company_title : '',
info?.invoice_type == 'enterprise' ? info?.company_title : info?.individual_title,
email: info?.email
}
if (params.invoice_type === 'enterprise') {