web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

Inventory - Default Receipt Date to previous line's date instead of today

(0) ShareShare
ReportReport
Posted on by 95

When entering Receipts(10.010.00) the Receipt date defaults to the current date on each line, instead of the previous line's date.  On other data entry screens (i.e. Issues) the date seems to default to the last entered line's date.  I did find one difference that I applied to the date field, but did not fix the issue.  Is there a way to customize the field to default to the previous entry?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ram Peru Profile Picture
    2,830 on at

    Good morning JCoppedge,

    By default, Business date is populated on the date field of Receipt detail line. To achieve your goal, you need to customize the Receipts(10.010.00) screen to populate the previous line date on the new line.

    Follow the below steps to achieve your goal,

    1. Declare one global date variable(Sdate)

       Eg: Dim GlobalDate As Sdate

    2. Get the value from the ctrandate field using getbuffervalue API on the spread line check event.

        Eg: Call GetBufferValue("bintran.trandate", GlobalDate.val)

    3. Write the code in grid LineGotFocus event to populate the global date value into the ctrandate of new line item using the Setobjectvalue API

        Eg:   Call SetObjectValue("ctrandate", DateToStrSep(GlobalDate))

                Call DispFields("Form1", "ctrandate")

    you can use the above sample code for your requirement. Hope that helps.

    Thanks,

    Perumalsamy R.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics SL (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans