|
@@ -1732,6 +1732,7 @@ SELECT claim.uid AS uid,
|
|
claim.status,
|
|
claim.status,
|
|
client.uid AS client_uid,
|
|
client.uid AS client_uid,
|
|
client.cell_number AS client_phone,
|
|
client.cell_number AS client_phone,
|
|
|
|
+ client.phone_home AS client_phone_home,
|
|
(client.name_last || ' ' || client.name_first) AS client ,
|
|
(client.name_last || ' ' || client.name_first) AS client ,
|
|
client.chart_number AS client_chart_number,
|
|
client.chart_number AS client_chart_number,
|
|
cp.id AS claim_pro_id,
|
|
cp.id AS claim_pro_id,
|
|
@@ -2165,7 +2166,7 @@ ORDER BY claim.created_at DESC
|
|
|
|
|
|
public function currentMbClaim(Request $request, $claimUid) {
|
|
public function currentMbClaim(Request $request, $claimUid) {
|
|
$claim = Claim::where('uid', $claimUid)->first();
|
|
$claim = Claim::where('uid', $claimUid)->first();
|
|
- return json_encode(MBClaim::where('claim_version_id', $claim->currentVersion->id)->first());
|
|
|
|
|
|
+ return json_encode(MBClaim::where('claim_version_id', $claim->currentVersion->id)->where('status', '!=', 'CANCELLED')->first());
|
|
}
|
|
}
|
|
|
|
|
|
public function currentClaimLines(Request $request, $claimUid) {
|
|
public function currentClaimLines(Request $request, $claimUid) {
|