Commit d86b3538 by 孙亚楠

dd

parent f3c7ee83
......@@ -360,12 +360,15 @@ class IInvoiceService extends ServiceBase {
return system.getResult(null, `发票不存在`);
}
this.handleDate(_invoice, ['invoice_time', 'apply_time', 'updated_at', 'created_at'], 'YYYY-MM-DD HH:mm:ss');
_invoice.invoice_amount = system.f2y(_invoice.invoice_amount);
_invoice.personal_invoice_tax = system.f2y(_invoice.personal_invoice_tax);
_invoice.additional_tax = system.f2y(_invoice.additional_tax);
_invoice.value_added_tax = system.f2y(_invoice.value_added_tax);
let _invoiceinforeg = await this.iinvoiceinforegDao.getById(this.trim(params.id)) || {};
this.handleDate(_invoiceinforeg, ['updated_at', 'created_at'], 'YYYY-MM-DD HH:mm:ss');
let _invoicedeliver = await this.iinvoicedeliverDao.getById(_invoice.invoice_deliver_id) || {};
this.handleDate(_invoicedeliver, ['updated_at', 'created_at'], 'YYYY-MM-DD HH:mm:ss');
_invoicedeliver.deliver_delive = system.f2y(_invoicedeliver.deliver_delive);
let _invoicesummaryinfo = await this.iinvoicesummaryinfoDao.getById(this.trim(params.id));
_invoicesummaryinfo.summary = JSON.parse(_invoicesummaryinfo.summary);
this.handleDate(_invoicesummaryinfo, ['invoice_time', 'updated_at', 'created_at'], 'YYYY-MM-DD HH:mm:ss');
......
......@@ -207,7 +207,9 @@ class SaasinvoiceapplyService extends ServiceBase {
saasInvoiceApply.invoice_type_name = "普通发票";
}
this.handleDate(saasInvoiceApply, ['updated_at', 'created_at'], 'YYYY-MM-DD HH:mm:ss');
saasInvoiceApply.invoice_amount = system.f2y(saasInvoiceApply.invoice_amount);
let saasInvoice = await this.saasinvoiceDao.getById(params.id) || {};
saasInvoice.invoice_amount = system.f2y(saasInvoice.invoice_amount);
saasInvoiceApply.saasInvoice = saasInvoice;
return system.getResult(saasInvoiceApply);
} catch (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment