FHM29052601IBL - simplify stream_from_qr_printout tanpa get_order_header
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -563,11 +563,6 @@ class Ibl_merge_report_gateway
|
||||
|
||||
public function stream_from_qr_printout($orderHeaderId)
|
||||
{
|
||||
$order = $this->get_order_header($orderHeaderId);
|
||||
if (!$order) {
|
||||
return $this->error('ORDER_NOT_FOUND', 'Order tidak ditemukan.');
|
||||
}
|
||||
|
||||
$query = $this->db_onedev->query(
|
||||
"SELECT QR_PrintOutReportURLElectronic
|
||||
FROM qr_printout
|
||||
@@ -599,7 +594,7 @@ class Ibl_merge_report_gateway
|
||||
}
|
||||
|
||||
$payload = array(
|
||||
'name' => $this->build_merge_filename($order, ''),
|
||||
'name' => 'merge-' . (int) $orderHeaderId . '.pdf',
|
||||
'urls' => $urls,
|
||||
'mergeRequestID' => (int) $orderHeaderId,
|
||||
'T_OrderHeaderID' => (int) $orderHeaderId,
|
||||
|
||||
Reference in New Issue
Block a user