diff --git a/src/app/action/controllers/ShippingTrait.php b/src/app/action/controllers/ShippingTrait.php index 0198115a87dbbafba1106a582063b228f3a25b2d..2c15cedf405ff5717db6f4728b5c18b327c85eec 100644 --- a/src/app/action/controllers/ShippingTrait.php +++ b/src/app/action/controllers/ShippingTrait.php @@ -57,7 +57,7 @@ trait ShippingTrait $attachments = AttachmentModel::getOnView([ 'select' => ['res_id', 'res_id_version', 'title', 'dest_address_id', 'external_id'], 'where' => ['res_id_master = ?', 'in_send_attach = ?', 'status not in (?)', 'attachment_type not in (?)'], - 'data' => [$args['resId'], true, ['OBS', 'DEL', 'TMP'], ['converted_pdf', 'print_folder']] + 'data' => [$args['resId'], true, ['OBS', 'DEL', 'TMP', 'FRZ'], ['print_folder']] ]); if (empty($attachments)) { return true; diff --git a/src/app/attachment/models/AttachmentModelAbstract.php b/src/app/attachment/models/AttachmentModelAbstract.php index 01d3015c7f9bd3ea1058c2d8c5efaf462b89aff5..bca0ba91910a8ef9fcc6d71830872e156c8048fa 100755 --- a/src/app/attachment/models/AttachmentModelAbstract.php +++ b/src/app/attachment/models/AttachmentModelAbstract.php @@ -74,8 +74,8 @@ abstract class AttachmentModelAbstract $aAttachments = DatabaseModel::select([ 'select' => empty($aArgs['select']) ? ['max(relation) as relation', 'res_id_master', 'title', 'res_id', 'res_id_version', 'identifier', 'dest_address_id'] : $aArgs['select'], 'table' => ['res_view_attachments'], - 'where' => ['res_id_master in (?)', 'status not in (?)', 'attachment_type not in (?, ?)', 'in_send_attach = TRUE'], - 'data' => [$aArgs['ids'], ['OBS', 'DEL', 'TMP'], 'converted_pdf', 'print_folder'], + 'where' => ['res_id_master in (?)', 'status not in (?)', 'attachment_type not in (?)', 'in_send_attach = TRUE'], + 'data' => [$aArgs['ids'], ['OBS', 'DEL', 'TMP', 'FRZ'], 'print_folder'], 'groupBy' => ['res_id_master', 'title', 'res_id', 'res_id_version', 'identifier', 'dest_address_id'], 'order_by' => empty($aArgs['orderBy']) ? [] : $aArgs['orderBy'] ]);