Page 1 of 1

getting Purchase Order Job No field value in a plugin

PostPosted: Wed Mar 09, 2022 3:42 pm
by indikad
I need to obtain Purchase Order Job No field value in a plugin ( V 7.2.1)
when the line was edited ( any field ).

the code below does not fully work

Code: Select all
private void PurchaseOrderLineChanged(JiwaFinancials.Jiwa.JiwaPurchaseOrders.Line item ,System.ComponentModel.PropertyChangedEventArgs e)
   {
JiwaFinancials.Jiwa.JiwaPurchaseOrders.Line PoLine =   _purchaseOrderForm.PurchaseOrder.Lines[1];
               //-- this line below gives only the last segment eg:  "070" from the  "003-400-070"  - I need "003-400-070"
               _purchaseOrderForm.PurchaseOrder.Reference =  PoLine.HistoryText_Comment.Trim() + PoLine.JobCostingStage.Stage.StageNo.Trim() ;
               

Re: getting Purchase Order Job No field value in a plugin  Topic is solved

PostPosted: Wed Mar 09, 2022 10:28 pm
by DannyC
Indika,

I haven't tested it, but I think this might get the job number.
Code: Select all
PoLine.JobCostingStage.GetFullJobNo();


EDIT: Yep, that does it.
But the first line would already need the Job No linked.

Re: getting Purchase Order Job No field value in a plugin

PostPosted: Thu Mar 10, 2022 11:19 am
by indikad
that worked ! thanks Danny