...
|
...
|
@@ -368,7 +368,11 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
newOrder.payType = _.get(order, 'payment_type');
|
|
|
newOrder.title = _.get(order, 'order_title');
|
|
|
newOrder.invoiceType = '';
|
|
|
newOrder.issueType = _.get(order, 'invoice.issueType', 0) === 1;
|
|
|
|
|
|
let issueType = +_.get(order, 'invoice.issueType');
|
|
|
|
|
|
newOrder.issueType = issueType === 2;
|
|
|
newOrder.invoiceSupplying = issueType === 1;
|
|
|
|
|
|
if (newOrder.issueType) {
|
|
|
newOrder.invoiceType = _.get(order, 'invoice.type', 0) === 2 ? '电子发票' : '纸质发票';
|
...
|
...
|
|