Hi ,
I would like to share you , how to customize Customer Invoiceid in the format of SI-YYMM#####
Class used in this process is
SalesInvoiceJournalCreateBase
Method used is
initJournalHeader()
comment this below line
custInvoiceJour.InvoiceId= this.getJournalNumber();
and write the following code :
int HyphenPosition;
HyphenPosition=strFind(this.getJournalNumber(),'-',1,strLen(this.getJournalNumber()));
custInvoiceJour.InvoiceId = subStr(this.getJournalNumber(),1,HyphenPosition)+
subStr(date2str(custInvoiceJour.InvoiceDate,321,2,0,2,0,2),1,4)+
subStr(this.getJournalNumber(),HyphenPosition+1,strLen(this.getJournalNumber())-HyphenPosition);
That's it .......
I would like to share you , how to customize Customer Invoiceid in the format of SI-YYMM#####
Class used in this process is
SalesInvoiceJournalCreateBase
Method used is
initJournalHeader()
comment this below line
custInvoiceJour.InvoiceId= this.getJournalNumber();
and write the following code :
int HyphenPosition;
custInvoiceJour.InvoiceDate = this.updateDate();
HyphenPosition=strFind(this.getJournalNumber(),'-',1,strLen(this.getJournalNumber()));
custInvoiceJour.InvoiceId = subStr(this.getJournalNumber(),1,HyphenPosition)+
subStr(date2str(custInvoiceJour.InvoiceDate,321,2,0,2,0,2),1,4)+
subStr(this.getJournalNumber(),HyphenPosition+1,strLen(this.getJournalNumber())-HyphenPosition);
That's it .......
No comments:
Post a Comment