Hello Sir, Attached code is refered by Onkar sir. How can i print and scan two fields "partnumber" and "billedqty" in barcode so that when i scan the barcode it will take billedqty automatically from the barcode. Currently its only picking the stockitemname associated with the partno which is mentioned in the barcode field. Please help Code: [#Form :pURCHASE Color];; Add Print in PURCHASE Add : Print : NS Label Add : Button :NSLabel [Button : NS Label] Action :print Report:NS Label Key :ctrl+F6 [Report : NSLabel] Form : NSLabel Object : Voucher Print Set: ReportTitle : $$LocaleString:"NSLabel Print Label" [Form : NSLabel] Part : NSLAbleTop Full Height: Yes Full Width : Yes Space Left :5 Space Top : 1 [Part : NSLAbleTop] Part : NSLabelHor1, NSLabelHor2,NSLAbleTop3,NSLAbleTop4,NSLAbleTop5,NSLAbleTop6,NSLAbleTop7,NSLAbleTop8 Vertical : Yes [Part : NSLAbleTop3] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLAbleTop4] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLAbleTop5] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLAbleTop6] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLAbleTop7] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLAbleTop8] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLabelHor2] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSLabelHor1] Parts : NSPart1, NSPart2,NSPart3 Vertical : No space top: 0 [Part : NSPart2] Use : NSPart1 [Part : NSPart3] Use : NSPart1 [Part : NSPart1] Line : NSLabel Repeat : NSLabel : Inventory Entries Scroll : Vertical Width : 32% Page [Line : NSLabel] Field : NSLabel Explode : NSNLine Explode : NSMLable : $$Number:$BilledQty > = 1 [#Field:VCH ActualQty] set as: "1" skip Forward : yes [Field : NSLine] Set as : $$Line Invisible : Yes [Field : NSLabel] Use : Name Field Set as : $StockItemName Align : Left Inactive : Yes [Part : NSNLine] Lines : NSLName,NSNLine1, NSNLine4 , NSNLine2 ,NSNLine3, NSNLine5 [Line : NSLName] Fields : NSLine, NSLName , [Field : NSLName] Use : Name Field Set as : "*" + $PartNo:Stockitem:$StockItemName + "*" Inactive : $$IsEven:$$ExplodeLevel Style : BarCode [Line : NSNLine1] Fields : NSLabel Local : Field : NSLabel : Set as : $Name:StockItem:$StockItemName Local : Field : NSLabel : Inactive: $$IsEven:$$ExplodeLevel [Line : NSNLine4] Fields : Info Field, Local : Field : Info Field : Info : "QTY: 1" Local : Field : Info Field : Inactive: $$IsEven:$$ExplodeLevel [Line : NSNLine2] Fields : Info Field, NSRate Local : Field : Info Field : Info : "MRP:" Local : Field : Info Field : Inactive: $$IsEven:$$ExplodeLevel [Line : NSNLine3] Fields : NSLabel,NSDescription Local : Field : Info Field : Info : "DESCRIPTION :" Local : Field : NSLabel : Inactive: $$IsEven:$$ExplodeLevel [Line : NSNLine5] Fields : Info Field, Local : Field : Info Field : Info : "Per QTY ( Incl Of All Taxes )" Local : Field : Info Field : Inactive: $$IsEven:$$ExplodeLevel [Field : NSRate] Use : Rate Price Field Set as : $Rate Align : Left Style : Normal Inactive : $$IsEven:$$ExplodeLevel [Field : NSDescription] Use : Name Field Set as : $UserDescription Style : Normal Align : Right [Part : NSMLable] Line : NSMLable [Line : NSMLable] Field : NSLabel Explode : NSNLine Explode : NSMLable : $$Number:$BilledQty+ ($$ExplodeLevel + $$Line)*5 [Style : BarCode] Font :idautomationhc39m Height : 8
I tried the following [Field : NSLName] Use : Name Field Set as : "*" +$$LocaleString$partno:Stockitem:$StockItemName)+$$LocaleString:$BilledQty+ "*" Inactive : $$IsEven:$$ExplodeLevel Style : BarCode It comes in the printing fine. But when i scan the bar code, its not reflecting stockitemname and billedqty in the sales.