Validation on Trade Agreement Journal Line Posting
Q: How to add Trade agreement Journal Line Posting Validation? Case Study: In My Case of Trade Agreement at the time of journal line posting check the line in the journal on the basis of six fields relation , ItemRelation , AccountRelation , Currency , InventSiteId , InventLocationId . First, I have to get the line which record have the highest FromDate in the journal and Iterate in the Journal Table Any Record Field Data match with the above mention field data change the ToDate to one day Previous Date. Form: Trade Agreement Journal Lines: Post Button: TradeAgreementJournal Form name: PriceDiscAdm DataSource 1. PriceDiscAdmTrans 2. InventDim 3. EcoResCategory 4. EcoResCategory 5. TmpRetailPriceDiscAdmTrans 6. RetailCategoryContainmentLookup 7. EcoResProductCategory POST button Controll Name: PriceDiscAdmPost class: PriceDiscAdmCheckPost System...