Commit a0a26041 authored by hangjun83's avatar hangjun83

财务开票模块更新

parent 39996a5c
......@@ -203,7 +203,7 @@ class InvoiceService
$applyInvoiceItems = [];
$applyInvoiceItems['fphxz'] = 0;
$applyInvoiceItems['hsbz'] = 1; //默认含税
$applyInvoiceItems['spmc'] = $this->charsetToGBK($item['item_name']);
$applyInvoiceItems['spmc'] = $item['item_name'];//$this->charsetToGBK($item['item_name']);
$applyInvoiceItems['spbm'] = '1070214010000000000';//$item['p_code'];
$applyInvoiceItems['ggxh'] = $item['item_spec'];
$applyInvoiceItems['dw'] = $item['item_unit'];
......@@ -767,11 +767,11 @@ class InvoiceService
$this->apiService->setInvoicePlatform($invoice['invoice_platform']);
$values = $this->apiService->getPlatformDataEntries('invoice_apply_'.$invoiceNumber,'data_values');
if($values){
/*if($values){
foreach($values['detailParam'] as &$detail){
$detail['spmc'] = $this->charsetToGBK($detail['spmc']);
}
}
}*/
$this->apiService->applyElecInvoice($values);
return true;
}catch(\Throwable $exception){
......
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