|
@@ -79,6 +79,7 @@ class InvoiceOrder extends \think\Model{
|
|
|
$hpinfo=[];
|
|
|
foreach ($InvoiceOrder as $item){
|
|
|
if(isset($hpinfo[$item->ItemInfo->invoiceCode]))continue;
|
|
|
+ $hpinfo[$item->ItemInfo->invoiceCode] = $item->ItemInfo->invoiceCode;
|
|
|
$hp = PayInvoice::with(["invoice"])->where(['hpNo'=>$item->ItemInfo->invoiceCode])->findOrEmpty();
|
|
|
$data[]=['type'=>'发票池关联采购单','username'=> $hp['apply_name'],'orderCode'=>$hp['hpNo'],'companyName'=>$hp['companyName']];
|
|
|
}
|