diff --git a/Application/Admin/Controller/AggregateRelationController.class.php b/Application/Admin/Controller/AggregateRelationController.class.php index fab41b192..590c0641d 100644 --- a/Application/Admin/Controller/AggregateRelationController.class.php +++ b/Application/Admin/Controller/AggregateRelationController.class.php @@ -543,7 +543,7 @@ class AggregateRelationController extends AdminController $p['second_company_info']['type'] = 'second_party_info'; $p['second_company_info'] = json_encode($p['second_company_info']); - if ($y['collection'] == 1) { + if ($p['collection'] == 1) { $company_info = json_decode($p['first_company_info'],true); $company_info['invoice_item'] = $p['invoice_content']; @@ -556,7 +556,7 @@ class AggregateRelationController extends AdminController $p['first_company_info'] = json_encode($company_info); - }else if ($y['collection'] == 2) { + }else if ($p['collection'] == 2) { $company_info = json_decode($p['second_company_info'],true); $company_info['invoice_item'] = $p['invoice_content'];