341: 2020202020202020202020202020202024706172616d735b27626964275d203d20246272616e636849643b0a | $params['bid'] = $branchId; 342: 2020202020202020202020207d0a | } 343: 0a | 344: 2020202020202020202020202473716c202e3d2022204f5244455220425920732e637265617465645f61742044455343223b0a | $sql .= " ORDER BY s.created_at DESC"; 345: 0a | 346: 2020202020202020202020202473746d74203d202464622d3e70726570617265282473716c293b0a | $stmt = $db->prepare($sql); 347: 2020202020202020202020202473746d742d3e657865637574652824706172616d73293b0a | $stmt->execute($params); 348: 202020202020202020202020247472616e73616374696f6e73203d202473746d742d3e6665746368416c6c28293b0a | $transactions = $stmt->fetchAll(); 349: 0a | 350: 202020202020202020202020246374782d3e73656e64526573706f6e736528747275652c20247472616e73616374696f6e73293b0a | $ctx->sendResponse(true, $transactions); 351: 20202020202020207d0a | } 352: 0a | 353: 202020207d20656c7365207b0a | } else { 354: 2020202020202020246374782d3e73656e64526573706f6e73652866616c73652c206e756c6c2c20274d6574686f64206e6f7420616c6c6f776564272c20343035293b0a | $ctx->sendResponse(false, null, 'Method not allowed', 405); 355: 202020207d0a | } 356: 7d293b0a | }); 357: 3f3e | ?>