简体   繁体   English

NetSuite历史搜索结果

[英]NetSuite Historical Search Results

I am trying to create a search that shows the number of cases that are open today (would be run on a Monday morning), the number that were open last Monday morning, and the number that were open the Monday morning before that. 我正在尝试创建一个搜索,以显示今天打开的案件数量(将在周一早上运行),上周一早上打开的案件数量以及之前星期一早上打开的案件数量。

Problem is, I can not find any way of telling the search to basically pretend it was last week for these results, and the week before for those results. 问题是,我找不到任何方法可以告诉搜索结果,这些结果基本上是假装是上周,而假装是上周。

I can't use any fields that exist on the forms, as they would never point to the date that we are viewing the search. 我不能使用表单上存在的任何字段,因为它们永远不会指向我们查看搜索的日期。

The logic seems easy: 逻辑似乎很简单:

count(cases open now)
count(cases open last Monday @ 08:00)
count(cases open two weeks ago Monday @ 08:00)

The NetSuite solution is just evading me. NetSuite解决方案让我无所适从。 Anyone else ever run into this? 还有其他人遇到吗? Seems like it would be pretty common. 似乎很普遍。

Can you use the fact that anything that was open last Monday is anything that was created before last Monday and not closed before last Monday. 您是否可以使用以下事实:上周一打开的任何内容都是在上周一之前创建的但在上周一之前没有关闭的任何内容。 Open Last Monday = date created < last monday AND (date closed is empty or date closed > last monday) 打开上周一=创建日期<上周一AND(关闭日期为空或关闭日期>上周一)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM