You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
425 B
12 lines
425 B
var handleInvoice = function (invoiceData) {
|
|
if (!invoiceData || invoiceData.invoiceType == 0) {
|
|
return '暂不开发票';
|
|
}
|
|
var title = invoiceData.titleType == 2 ? '公司' : '个人';
|
|
var content = invoiceData.contentType == 2 ? '商品类别' : '商品明细';
|
|
return invoiceData.email
|
|
? '电子普通发票 (' + content + ' - ' + title + ')'
|
|
: '暂不开发票';
|
|
};
|
|
module.exports = handleInvoice;
|