[#Field:VCH Purcorder] Add:Option:Rakesh@IsPurchase [!Field:Rakesh] Validate$$IsEmpty:$$Value or $$Value=$Purchaseorderrate:StockItem:$StockItemName) Sir, we purchase material by issuing purchase order and with the help of above code I want to block purchase rate which should be equal to Purchase Order rate. But results of above code block all rates in purchase voucher. Please help how to block purchase rate as per purchase order rate.
????? If you issued a PO for Item1 -- for INR 100/- and then if you are entering a Purchase Voucher...... And if in your Purchase Voucher you enter INR 100/- as rate, it should be blocked !!! If above is the case, then your code is fine.........or if not -- maybe I am still confused.... so can you explain more clearly by example.
Sir, we issue PO to purchase material from vendor. Suppose if we issue PO by Rs. 145/- to purchase material. User can not change PO rate while entering the Purchase Voucher.
I request to all the experts in the forum, please help me to do this. I have tried a lot but not get result.
Please try this..... Code: [#Field : VCH BatchRate] Option : Rakesh : @@IsPurchase [!Field : Rakesh] Validate : if ($BatchRate = $$AltTable:VCHBATCHTrack:VCHBATCHOrder:$Rate) then yes else no
If you do not want USER to alter the rate............simply use ------- Skip : Yes in that field. There is no need for any validation or Control.