Showing
1 changed file
with
1 additions
and
1 deletions
@@ -227,7 +227,7 @@ class OrderModel | @@ -227,7 +227,7 @@ class OrderModel | ||
227 | $detail['orderBalance'][] = array('promotion' => '实际应支付', 'account' => $orderDetail['amount']); | 227 | $detail['orderBalance'][] = array('promotion' => '实际应支付', 'account' => $orderDetail['amount']); |
228 | } | 228 | } |
229 | //发票 | 229 | //发票 |
230 | - if (isset($orderDetail['invoice']) && $orderDetail['invoice']) { | 230 | + if (isset($orderDetail['invoice']) && isset($detail['showInvoice']) && $orderDetail['invoice'] && $detail['showInvoice']) { |
231 | $detail['invoiceMode'] = true; | 231 | $detail['invoiceMode'] = true; |
232 | $detail['invoiceType'] = $orderDetail['invoice']['type']; | 232 | $detail['invoiceType'] = $orderDetail['invoice']['type']; |
233 | $detail['pdfUrl'] = $orderDetail['invoice']['pdfUrl']; | 233 | $detail['pdfUrl'] = $orderDetail['invoice']['pdfUrl']; |
-
Please register or login to post a comment