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

Discussions relating to plugin development, and the Jiwa API.

getting Purchase Order Job No field value in a plugin

Postby indikad » Wed Mar 09, 2022 3:42 pm

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() ;
               
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2

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

Postby DannyC » Wed Mar 09, 2022 10:28 pm

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.
User avatar
DannyC
Senpai
Senpai
 
Posts: 638
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

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

Postby indikad » Thu Mar 10, 2022 11:19 am

that worked ! thanks Danny
indikad
Frequent Contributor
Frequent Contributor
 
Posts: 182
Joined: Thu Jun 18, 2009 1:14 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 12 guests