Authored by 周少峰

show invoice

... ... @@ -227,7 +227,7 @@ class OrderModel
$detail['orderBalance'][] = array('promotion' => '实际应支付', 'account' => $orderDetail['amount']);
}
//发票
if (isset($orderDetail['invoice']) && $orderDetail['invoice']) {
if (isset($orderDetail['invoice']) && isset($detail['showInvoice']) && $orderDetail['invoice'] && $detail['showInvoice']) {
$detail['invoiceMode'] = true;
$detail['invoiceType'] = $orderDetail['invoice']['type'];
$detail['pdfUrl'] = $orderDetail['invoice']['pdfUrl'];
... ...