Commit 807fa814 authored by hj's avatar hj

更新提交

parent 0c475b1b
......@@ -205,7 +205,13 @@ class InvoiceService
$applyInvoiceItems = [];
$applyInvoiceItems['fphxz'] = 0;
$applyInvoiceItems['hsbz'] = 1; //默认含税
$applyInvoiceItems['spmc'] = $item['item_name'];//$this->charsetToGBK($item['item_name']);
$replaceNameKeywords = ['镧','铈','镨','钕','钷','钐','铕','钆','铽','镝','钬','铒','铥','镱','镥'];
foreach($replaceNameKeywords as $keyword){
if(strpos($item['item_name'],$keyword)){
$item['item_name'] = str_replace($keyword, '试剂', $item['item_name']);
}
}
//$applyInvoiceItems['spmc'] = $item['item_name'];//$this->charsetToGBK($item['item_name']);
$applyInvoiceItems['spbm'] = $item['spbm'] ?? '1070214010000000000';//$item['p_code'];
$applyInvoiceItems['ggxh'] = $item['item_spec'];
$applyInvoiceItems['dw'] = $item['item_unit'];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment