1) On "Estimates & Contracts" list page, the Action->Detail button will show error 'Estimate xxx is not a Contract.'
It happens when Estimate status is one of Draft/Canceled/In Review/Void.
This exception is thrown from Estimate model's get_contract_summary() method if the object is not a contract.
To avoid this I add contract status checking before get_contract_summary() is called.
2) Add missing '()' in the PurchaseOrderModel's object manager statement.
1) On "Estimates & Contracts" list page, the Action->Detail button will show error 'Estimate xxx is not a Contract.' It happens when Estimate status is one of Draft/Canceled/In Review/Void. This exception is thrown from Estimate model's get_contract_summary() method if the object is not a contract. To avoid this I add contract status checking before get_contract_summary() is called.
2) Add missing '()' in the PurchaseOrderModel's object manager statement.