АРЧ АП11 - Добавить item-profitability intent для selected-object follow-up в inventory contour
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
import type { AddressModeDetection } from "../types/addressQuery";
|
||||
|
||||
import { hasInventoryPurchaseStem, hasInventorySaleCue, hasInventorySupplierCue } from "./inventoryLifecycleCueHelpers";
|
||||
import {
|
||||
hasInventoryProfitabilityCue,
|
||||
hasInventoryPurchaseStem,
|
||||
hasInventorySaleCue,
|
||||
hasInventorySupplierCue
|
||||
} from "./inventoryLifecycleCueHelpers";
|
||||
|
||||
const ADDRESS_ACTION_TOKENS = [
|
||||
"show",
|
||||
@@ -290,6 +295,7 @@ function hasSelectedObjectInventoryFollowupSignal(text: string): boolean {
|
||||
}
|
||||
return (
|
||||
hasInventorySupplierCue(text) ||
|
||||
hasInventoryProfitabilityCue(text) ||
|
||||
hasInventorySaleCue(text) ||
|
||||
/(?:кто\s+(?:поставил|продал)|по\s+каким\s+документам\s+.*купили)/iu.test(text) ||
|
||||
/(?:к[оа]му|куда)[\s\S]{0,80}(?:поставил|поставили|поставлен|поставлена|поставлено|отгрузил|отгрузили|отгружен|отгружена|отгружено)/iu.test(text) ||
|
||||
|
||||
Reference in New Issue
Block a user