ソースを参照

auto stock in "%FA%" and stock record page fix

reset-do-picking-order
CANCERYS\kw093 2週間前
コミット
1ee123ddb5
2個のファイルの変更8行の追加4行の削除
  1. +4
    -2
      src/components/Qc/QcStockInModal.tsx
  2. +4
    -2
      src/components/StockRecord/SearchPage.tsx

+ 4
- 2
src/components/Qc/QcStockInModal.tsx ファイルの表示

@@ -438,8 +438,10 @@ const QcStockInModal: React.FC<Props> = ({
// confirmButtonText: t("confirm putaway"), html: ""});
// onOpenPutaway();
const isJobOrderBom = (stockInLineInfo?.jobOrderId != null || printSource === "productionProcess")
&& stockInLineInfo?.bomDescription === "WIP";
if (isJobOrderBom) {
&& stockInLineInfo?.bomDescription === "WIP";
const isFaItem = (stockInLineInfo?.itemNo ?? "").toUpperCase().includes("FA");
const shouldAutoPutaway = isJobOrderBom || isFaItem;
if (shouldAutoPutaway) {
// Auto putaway to default warehouse
const defaultWarehouseId = stockInLineInfo?.defaultWarehouseId ?? 489;


+ 4
- 2
src/components/StockRecord/SearchPage.tsx ファイルの表示

@@ -166,7 +166,9 @@ const SearchPage: React.FC<Props> = ({ dataList: initialDataList }) => {
const params: SearchStockTransactionRequest = {
itemCode: itemCode,
itemName: itemName,
type: filterArgs.type?.trim() || null,
type: (filterArgs.type?.trim() && filterArgs.type?.trim() !== "All")
? filterArgs.type.trim()
: null, // type="All" 時傳 null,不套用 type 篩選
startDate: filterArgs.startDate || null,
endDate: filterArgs.endDate || null,
pageNum: pagingController.pageNum - 1 || 0,
@@ -379,7 +381,7 @@ const SearchPage: React.FC<Props> = ({ dataList: initialDataList }) => {
setFilterArgs({
itemCode: itemCode || undefined,
itemName: itemName || undefined,
type: type || undefined,
type: (type && type !== "All") ? type : undefined, // "All" 不放入 filterArgs
startDate: startDate || undefined,
endDate: endDate || undefined,
});


読み込み中…
キャンセル
保存