fix: items accounts issue.

fix: write item id, transaction reference and number on journal entries.
This commit is contained in:
a.bouhuolia
2021-01-26 14:07:11 +02:00
parent d789228038
commit c8f817b16d
5 changed files with 21 additions and 36 deletions

View File

@@ -466,7 +466,7 @@ export default class ItemsController extends BaseController {
}
if (error.errorType === 'INVENTORY_ACCOUNT_NOT_INVENTORY') {
return res.status(400).send({
errors: [{ type: 'INVENTORY.ACCOUNT.NOT.CURRENT.ASSET', code: 300 }],
errors: [{ type: 'INVENTORY.ACCOUNT.NOT.INVENTORY.TYPE', code: 300 }],
});
}
if (error.errorType === 'ITEMS_HAVE_ASSOCIATED_TRANSACTIONS') {