added some feature for accounting and price 4
This commit is contained in:
@@ -99,9 +99,9 @@ class TahesabController extends Controller
|
|||||||
// }
|
// }
|
||||||
// return ($data);
|
// return ($data);
|
||||||
|
|
||||||
if (!isset($data['customer_id']) || !isset($data['product']['amount'])) {
|
if (!isset($data['customer_id']) || !isset($data['amount'])) {
|
||||||
return request()->expectsJson()
|
return request()->expectsJson()
|
||||||
? response()->json(['error' => 'Data missing: customer_id or value'], 422)
|
? response()->json(['error' => 'Data missing: customer_id or amount'], 422)
|
||||||
: false;
|
: false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user