Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
5427: Fixed import stock issue r=jniles a=jmcameron

Fixes import stock problem in Refactor Stock Management branch.

Note that Issue Third-Culture-Software#5426 still remains but can be dealt with after merging back to master.

Co-authored-by: Jonathan Cameron <jmcameron@gmail.com>
  • Loading branch information
bors[bot] and jmcameron authored Feb 25, 2021
2 parents da8f839 + c511206 commit 07b5ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/stock/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function importStock(req, res, next) {
});

const isExit = 0;
const postingParams = [documentUuid, isExit, req.session.project.id, req.session.enterprise.currency_id];
const postingParams = [documentUuid, isExit, req.session.project.id];

if (req.session.stock_settings.enable_auto_stock_accounting) {
transaction.addQuery('CALL PostStockMovement(?)', [postingParams]);
Expand Down

0 comments on commit 07b5ce1

Please sign in to comment.