Commit d403a0fc by 王昆

gsb

parent 073c3657
...@@ -145,7 +145,7 @@ class InvoiceCtl extends CtlBase { ...@@ -145,7 +145,7 @@ class InvoiceCtl extends CtlBase {
let data_ids = []; let data_ids = [];
for (let item of itemList) { for (let item of itemList) {
amount = amount + Number(item.amt || 0); amount = amount + Number(item.amt || 0);
data_ids.push(item.id); data_ids.push(item.id); // TODO 总统测试
} }
let service_tax = parseFloat((Number(amount) * Number(invoice_service_rate) / 100).toFixed(2)); let service_tax = parseFloat((Number(amount) * Number(invoice_service_rate) / 100).toFixed(2));
if (!businessmen.is_bank) { if (!businessmen.is_bank) {
...@@ -172,7 +172,7 @@ class InvoiceCtl extends CtlBase { ...@@ -172,7 +172,7 @@ class InvoiceCtl extends CtlBase {
"quantity": "", "quantity": "",
"price": "", "price": "",
"remark": "", "remark": "",
"data_ids": data_ids.join(",") "data_ids": data_ids.join(",") // TODO 总统测试
}); });
} }
...@@ -306,7 +306,7 @@ class InvoiceCtl extends CtlBase { ...@@ -306,7 +306,7 @@ class InvoiceCtl extends CtlBase {
mail_addr: this.trim(params.mail_addr), mail_addr: this.trim(params.mail_addr),
mail_mobile: this.trim(params.mail_mobile), mail_mobile: this.trim(params.mail_mobile),
mail_to: this.trim(params.mail_to), mail_to: this.trim(params.mail_to),
data_ids: this.trim(params.data_ids), data_ids: this.trim(params.data_ids), // TODO 总统测试
personal_invoice_tax: system.y2f(invoice.personal_invoice_tax), personal_invoice_tax: system.y2f(invoice.personal_invoice_tax),
additional_tax: system.y2f(invoice.additional_tax), additional_tax: system.y2f(invoice.additional_tax),
...@@ -329,6 +329,7 @@ class InvoiceCtl extends CtlBase { ...@@ -329,6 +329,7 @@ class InvoiceCtl extends CtlBase {
status: "1060", status: "1060",
} }
}); });
// TODO 总统测试 begin
if (rs && rs.data && rs.data.length > 0) { if (rs && rs.data && rs.data.length > 0) {
for (let d of rs.data) { for (let d of rs.data) {
console.log(d.id, d.data_ids); console.log(d.id, d.data_ids);
...@@ -339,6 +340,7 @@ class InvoiceCtl extends CtlBase { ...@@ -339,6 +340,7 @@ class InvoiceCtl extends CtlBase {
await this.tradeSve.updateInvoice({ids: tradeIds, saas_invoice_id: d.id}); await this.tradeSve.updateInvoice({ids: tradeIds, saas_invoice_id: d.id});
} }
} }
// TODO 总统测试 end
return system.getResultSuccess(rs); return system.getResultSuccess(rs);
} catch (error) { } catch (error) {
let msg = error.message; let msg = error.message;
......
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