Commit 0f353c14 by 孙亚楠

dd

parent d86b3538
...@@ -52,6 +52,10 @@ module.exports = (db, DataTypes) => { ...@@ -52,6 +52,10 @@ module.exports = (db, DataTypes) => {
bookkeeping: {type: DataTypes.STRING, field: 'bookkeeping', allowNull: true, defaultValue:0, comment:'是否记账 0未记账 1已记账' }, bookkeeping: {type: DataTypes.STRING, field: 'bookkeeping', allowNull: true, defaultValue:0, comment:'是否记账 0未记账 1已记账' },
saas_deliver_api: {type: DataTypes.STRING, field: 'saas_deliver_api', allowNull: true, defaultValue:'', comment:'saas系统状态通知api' }, saas_deliver_api: {type: DataTypes.STRING, field: 'saas_deliver_api', allowNull: true, defaultValue:'', comment:'saas系统状态通知api' },
ali_deliver_api:{ type: DataTypes.STRING, allowNull: true, defaultValue: null ,comment:"发票状态更新回调api"}, ali_deliver_api:{ type: DataTypes.STRING, allowNull: true, defaultValue: null ,comment:"发票状态更新回调api"},
unit:{ type: DataTypes.STRING(10), allowNull: true, defaultValue: null ,comment:"单位"},
quantity:{ type: DataTypes.STRING(10), allowNull: true, defaultValue: null ,comment:"数量"},
price:{ type: DataTypes.STRING(20), allowNull: true, defaultValue: null ,comment:"单价"},
remark:{ type: DataTypes.STRING(200), allowNull: true, defaultValue: null ,comment:"备注"},
created_at: { type: DataTypes.DATE, field: 'created_at', allowNull: false, defaultValue: DataTypes.NOW }, created_at: { type: DataTypes.DATE, field: 'created_at', allowNull: false, defaultValue: DataTypes.NOW },
updated_at: { type: DataTypes.DATE, field: 'updated_at', allowNull: false, defaultValue: DataTypes.NOW }, updated_at: { type: DataTypes.DATE, field: 'updated_at', allowNull: false, defaultValue: DataTypes.NOW },
deleted_at: { type: DataTypes.DATE, allowNull: true }, deleted_at: { type: DataTypes.DATE, allowNull: true },
......
...@@ -129,6 +129,11 @@ class IInvoiceService extends ServiceBase { ...@@ -129,6 +129,11 @@ class IInvoiceService extends ServiceBase {
_invoice.mail_addr = this.trim(params.mail_addr) || ""; _invoice.mail_addr = this.trim(params.mail_addr) || "";
_invoice.saas_deliver_api = this.trim(params.saas_deliver_api) || ""; _invoice.saas_deliver_api = this.trim(params.saas_deliver_api) || "";
_invoice.unit = this.trim(params.unit) || 0;
_invoice.quantity = this.trim(params.quantity) || 0;
_invoice.price = this.trim(params.price) || 0;
_invoice.remark = this.trim(params.remark) || "";
try { try {
let processList = await this.buildProcess(_invoice.product_id) || []; let processList = await this.buildProcess(_invoice.product_id) || [];
......
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