|
@@ -45,6 +45,7 @@ module.exports = app => {
|
|
|
data.in_time = new Date();
|
|
|
data.add_user = this.ctx.session.sessionUser.accountId;
|
|
|
data.ccid = cid;
|
|
|
+ data.formc = 1;
|
|
|
}
|
|
|
|
|
|
async addPos(tid, cid, data) {
|
|
@@ -388,6 +389,7 @@ module.exports = app => {
|
|
|
data.in_time = new Date();
|
|
|
data.add_user = this.ctx.session.sessionUser.accountId;
|
|
|
data.ccid = cid;
|
|
|
+ data.formc = 1;
|
|
|
if (data.quantity) {
|
|
|
const bills = await this.ctx.service.changeLedger.getDataById(data.lid) || await this.ctx.service.ledger.getDataById(data.lid);
|
|
|
const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, bills.unit);
|