How to change the shipment date on change of posting date

Markandey_Pandey
Member Posts: 178
Hi all
I want to change the shipment date as soon as i change the posting date on sakes order, so that i dont have to change the shipment date manualy.
can anybody help me
I want to change the shipment date as soon as i change the posting date on sakes order, so that i dont have to change the shipment date manualy.
can anybody help me
Markandey Pandey
0
Comments
-
Changing the Posting Date will also change the Document Date. Did you have a look at the code in the OnValidate-trigger of the field Posting Date how this is achieved?
PS: be sure that doing it in a similar way for the Shipment Date that calling the OnValidate-trigger of Shipment Date makes sense.0 -
lvanvugt wrote:Changing the Posting Date will also change the Document Date. Did you have a look at the code in the OnValidate-trigger of the field Posting Date how this is achieved?
PS: be sure that doing it in a similar way for the Shipment Date that calling the OnValidate-trigger of Shipment Date makes sense.
i am not able to find any code under onValidate trigger of Posting Date.
Can u guide me plzMarkandey Pandey0 -
Open table 36 in design mode and search for Posting Date field (field 20). Open C/Al editor (F9) and see the code of the OnValidate-trigger of Posting Date field:
Posting Date - OnValidate() TestNoSeriesDate( "Posting No.","Posting No. Series", FIELDCAPTION("Posting No."),FIELDCAPTION("Posting No. Series")); TestNoSeriesDate( "Prepayment No.","Prepayment No. Series", FIELDCAPTION("Prepayment No."),FIELDCAPTION("Prepayment No. Series")); TestNoSeriesDate( "Prepmt. Cr. Memo No.","Prepmt. Cr. Memo No. Series", FIELDCAPTION("Prepmt. Cr. Memo No."),FIELDCAPTION("Prepmt. Cr. Memo No. Series")); VALIDATE("Document Date","Posting Date"); IF ("Document Type" IN ["Document Type"::Invoice,"Document Type"::"Credit Memo"]) AND NOT ("Posting Date" = xRec."Posting Date") THEN PriceMessageIfSalesLinesExist(FIELDCAPTION("Posting Date")); IF "Currency Code" <> '' THEN BEGIN UpdateCurrencyFactor; IF "Currency Factor" <> xRec."Currency Factor" THEN ConfirmUpdateCurrencyFactor; END;
0 -
Thanx,
i got it.Markandey Pandey0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions