Commit 869e80fc by 孙亚楠

dd

parent ce3cd143
......@@ -49,7 +49,7 @@ module.exports = (db, DataTypes) => {
product_id:{ type: DataTypes.STRING(32), allowNull: true ,delaultValue:'',comment:"商品ID"},
status: {type: DataTypes.INTEGER, field: 'status', allowNull: true,comment:'订单状态 业务进度' },
red_status: {type: DataTypes.STRING, field: 'red_status', allowNull: true,comment:'1 未红冲 2 已红冲 3 红冲中' },
account_creation: {type: DataTypes.STRING, field: 'account_creation', allowNull: true, defaultValue:0, comment:'是否建账 0未建账 1已建账' },
bookkeeping: {type: DataTypes.STRING, field: 'bookkeeping', allowNull: true, defaultValue:0, comment:'是否记账 0未记账 1已记账' },
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 },
deleted_at: { type: DataTypes.DATE, allowNull: true },
......
......@@ -356,7 +356,7 @@ class IInvoiceService extends ServiceBase {
if(!_invoice){
return system.getResult(null,`发票不存在`);
}
_invoice.account_creation=1;
_invoice.bookkeeping=1;
_invoice.save();
return system.getResultSuccess();
} 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