*
Showing
1 changed file
with
2 additions
and
4 deletions
... | @@ -36,7 +36,7 @@ class MusicianWithdrawService extends Service | ... | @@ -36,7 +36,7 @@ class MusicianWithdrawService extends Service |
36 | return $receipt; | 36 | return $receipt; |
37 | }); | 37 | }); |
38 | 38 | ||
39 | return Response::success($receipt); | 39 | return Response::success(array_values($receipt)); |
40 | } | 40 | } |
41 | 41 | ||
42 | /** | 42 | /** |
... | @@ -59,7 +59,7 @@ class MusicianWithdrawService extends Service | ... | @@ -59,7 +59,7 @@ class MusicianWithdrawService extends Service |
59 | break; | 59 | break; |
60 | } | 60 | } |
61 | 61 | ||
62 | if (StakeholderIncomeByPayer::query()->whereIn('serial_no', $this->request->input('serial_no'))->update([ | 62 | if (StakeholderIncomeByPayer::query()->where('sync_status', 1)->whereIn('serial_no', $this->request->input('serial_no'))->update([ |
63 | 'withdraw_status'=>$withdraw_status, | 63 | 'withdraw_status'=>$withdraw_status, |
64 | ])) { | 64 | ])) { |
65 | return Response::success(); | 65 | return Response::success(); |
... | @@ -68,6 +68,4 @@ class MusicianWithdrawService extends Service | ... | @@ -68,6 +68,4 @@ class MusicianWithdrawService extends Service |
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
71 | |||
72 | |||
73 | } | 71 | } | ... | ... |
-
Please register or sign in to post a comment