我是新手,对某种事物感到挣扎。到目前为止,我已经做到了:
if {tblcustomer.vat_reseller} = 0
then VAT: {tblinvoices.vat_multiplier}*100 %
else
if {tblcustomer.vat_reseller} = 1
then Reverse charge: Customer to pay the VAT to HMRC
找不到错误,但显示:
“增值税:{tblinvoices.vat_multiplier} * 100%”,而不是“增值税:20%”或“反向费用:客户向HMRC支付增值税”
抱歉,这可能是一个简单的修复(希望如此!),但是当我尝试调整语法时,它开始给我其他错误,例如a number is required
,等等。
用引号引起来的值被视为文字字符串。
要获得{tblinvoices.vat_multiplier}
字符串中乘以100的值,您需要将其转换为字符串,然后将其连接在字符串的其余部分内-像这样:
if {tblcustomer.vat_reseller} = 0
then "VAT: " & CStr({tblinvoices.vat_multiplier}*100) & " %"
else if {tblcustomer.vat_reseller} = 1
then "Reverse charge: Customer to pay the VAT to HMRC"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句