[Bug]: Cannot add sales line item to sales order, on an on-prem installation with basic license

オープン 初心者向け
#14,569 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
領域
backend

調査の方向性

87 行目の app/Page/99000833/Check Prod. Order Status.dal を読み、issue に記載された Sales Line の検証からの呼び出し経路をたどってください。製造が利用できない場合に MfgSetup.Get() がどのように動作するかを確認し、基本ライセンスで販売注文の再現手順を実行してください。Manufacturing Setup がないというエラーが発生せずに品目を追加できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Team: SCM
Describe the issue

The issue:
Sales Line No. validation result in a manufacturing setup Get() even when manufacturing is not part of the license.
The application then cannot add an item to a sales order with error saying Manufacturing Setup does not exist.

Cause:
SalesLineShowWarning (\app\Page\99000833\Check Prod. Order Status.dal:87)
SalesLineCheck (\app\Codeunit\99000777\Check Prod. Order Status.dal:31)
CheckReceiptOrderStatus (\app\Codeunit\99000777\Check Prod. Order Status.dal:68)
OnCheckReceiptOrderStatus (\app\Codeunit\99000777\Check Prod. Order Status.dal:44)
OnCheckReceiptOrderStatus (\app\Table\37\Sales Line.dal:15750)
CheckReceiptOrderStatus (\app\Table\37\Sales Line.dal:11305)
Shipment Date - OnValidate (\app\Table\37\Sales Line.dal:509)
CheckItemAvailable (\app\Table\37\Sales Line.dal:6218)
No. - OnValidate (\app\Table\37\Sales Line.dal:244)

Inside SalesLineShowWarning we have MfgSetup.Get(); without an if clause.
A system with basic license excluding manufacturing will not have a Manufacturing setup created.
Adding item to a sales order will error when this statement is run.

Fix:
Change the MfgSetup.Get to:
if not MfgSetup.Get() then
exit(false);

Expected behavior

Item is added to the sales order

Steps to reproduce
  1. Use an on-prem installation with only basic license, without manufacturing
  2. Create sales order and add a customer
  3. Try adding an item to the sales order
Additional context

Use an on-prem installation with only basic license, without manufacturing

I will provide a fix for a bug
  • I will provide a fix for a bug
主要言語
AL
スター
730
フォーク
514
平均マージ
2日 23時間
マージ済み PR(30日)
601

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/BCApps のほかの issue

microsoft/BCApps の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。