Skip to content

Commit

Permalink
refactor(stock): Add Call a pprocedure to compute movement
Browse files Browse the repository at this point in the history
  • Loading branch information
DedrickEnc committed Sep 21, 2017
1 parent 3745220 commit bf1181e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/controllers/stock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ function createIntegration(req, res, next) {

// writting all records relative to the movement in the posting journal table
transaction.addQuery('CALL PostIntegration(?)', [commonInfos]);

// transaction - movement reference
transaction.addQuery('CALL ComputeMovementReference(?);', [db.bid(documentUuid)]);
});

// execute all operations as one transaction
Expand Down

0 comments on commit bf1181e

Please sign in to comment.