ปรับยอดเงินในใบเสร็จรับเงินที่เป็นภาษาไทยให้ออก สตางค์ไม่มีคำว่าบาทลงท้าย
if getsqlintegerdata(‘select if(name3 like “%ʵҧ¤ì%”,”03″,null) ‘+
‘as cc from tempreport where name3 like “%ʵҧ¤ì%” and id=”‘+DBPipeline[‘id’]+'” ‘)=03 then
Value := thaimoney(DBPipeline[‘mon3’])
else
Value := ‘ ‘+ thaimoney(DBPipeline[‘mon3′])+’¶éǹ’ ;
เครดิต http://61.19.251.235/smf2/index.php?topic=21443.0
—————————————————————-
“Variable6”
Value := GetSQLStringData(‘select sum(sum_price)as bb from opitemrece where vn=”‘+ DBPipeline[‘an’] +'”‘);
—————————————————————-
“Variable10”
if getsqlintegerdata(‘select if( sum(sum_price) like “%.25%” ‘+
‘ or sum(sum_price) like “%.50%” ‘+
‘ or sum(sum_price) like “%.75%” ,1,0) as dd from opitemrece ‘+
‘ where an=”‘+DBPipeline[‘an’] +'” ‘)=1 then
Value := ‘ตัวอักษร (‘+ thaimoney(variable6.value)+’)’
else
Value := ‘ตัวอักษร (‘+ thaimoney(Variable6.value)+’ถ้วน)’ ;
—————————————————————–
ความเห็นล่าสุด