diff --git a/src/BillComApi/BillCom.php b/src/BillComApi/BillCom.php index 268d9c0..a536ea2 100644 --- a/src/BillComApi/BillCom.php +++ b/src/BillComApi/BillCom.php @@ -305,7 +305,7 @@ public function delete($obj_url, $obj_id) */ public function approve_object($data) { - if ($data['entity'] != "Bill" || $data['entity'] != "VendorCredit") { + if ($data['entity'] != "Bill" && $data['entity'] != "VendorCredit") { throw new BillcomException("Invalid entity type. Only Bill or VendorCredit is supported."); }