每种材料/产品的有效率 [英] Effective rate per Material/Product

查看:57
本文介绍了每种材料/产品的有效率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我想维持一个费率表对产品表。我的费率表可以针对一种产品提供许多数据,具体取决于生效日期范围(一对多)。我想一次只有一个产品在费率表中应该是活跃的。如果有任何先前的条目,那么对于相同的产品应该是非活动的。

我应该如何继续。

Pl。指南。

谢谢

问候

Sagar

Dear All,
I want maintain a "Rate" table against Product Table. My Rate table can have many data against one product, depending on effective date range (One to Many). I want at a time there should be only one product in rate table which should be active. If there are any previous entries, then those should be inactive for same product.
How should I proceed.
Pl. guide.
Thanks
regards
Sagar

推荐答案

你有已经解决了你的问题。听起来您的费率有开始日期和结束日期字段。目前的费率是没有结束日期的费率。
You''ve already solved your problem. It sounds like you have a start date and end date field for your rates. The current rate is whichever rate doesn''t have an end date.




感谢您的回复。

我理解你的我希望,当我保留任何材料的新记录时,系统应检查相同材料的任​​何先前条目,然后将结束日期设置为该前一记录的当前日期。

谢谢

问候

Sagar
Hi
Thanks for reply.
I understand your point, but my wish is, when I''ll maintain new record for any material, then system should check any previous entry for same material, and then set the ''end date'' as the current date for that previous record.
Thanks
regards
Sagar


您可以使用之前插入的形式在表单中执行此操作event将更新现有记录而没有结束日期到当前日期。
You can do that in the form, using the before insert event to update the existing records without an end date to the current date.


这篇关于每种材料/产品的有效率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆