File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Sales/Block/Adminhtml/Order/View/Tab Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ public function getFullHistory()
127
127
$ _invoice ->getId (),
128
128
__ ('Invoice #%1 created ' , $ _invoice ->getIncrementId ()),
129
129
$ _invoice ->getEmailSent (),
130
- $ this ->getOrderAdminDate ($ _invoice ->getCreatedAt ())
130
+ $ this ->getOrderAdminDate ($ _invoice ->getCreatedAt ()),
131
+ 'Invoice created '
131
132
);
132
133
133
134
foreach ($ _invoice ->getCommentsCollection () as $ _comment ) {
@@ -313,6 +314,9 @@ public static function sortHistoryByTimestamp($a, $b)
313
314
$ createdAtB = $ b ['created_at ' ];
314
315
315
316
if ( $ createdAtA ->getTimestamp () === $ createdAtB ->getTimestamp () ) {
317
+ if ( $ a ['comment ' ] == 'Invoice created ' || $ b ['comment ' ] == 'Invoice created ' ) {
318
+ return ( $ a ['comment ' ] == 'Invoice created ' ? 1 : -1 );
319
+ }
316
320
return $ a ['entity_id ' ] <=> $ b ['entity_id ' ];
317
321
}
318
322
You can’t perform that action at this time.
0 commit comments