*This post is locked for comments
*This post is locked for comments
Hi Dean,
using eConnect we can generate Credit memo values from user tables or from excel values by providing the eConnect mandatory and default from the setup fields
example code:-
try
{
eConnectType eConnect = new eConnectType();
PMTransactionType PayableTransaction = new PMTransactionType();
taPMTransactionInsert sp = new taPMTransactionInsert();
XmlSerializer serializer = new XmlSerializer(eConnect.GetType());
sp.VCHNUMWK = "00000000000000684";
sp.DOCTYPE = 5; // for Credit memo generation
sp.BACHNUMB = "55";
sp.DOCDATE = Convert.ToString("06/12/2012");
sp.VENDORID = "ACETRAVE0001";
sp.DOCAMNT = Convert.ToDecimal(100.00);
sp.MSCCHAMT = Convert.ToDecimal(5.00);
sp.PRCHAMNT = Convert.ToDecimal(100.00);
sp.TAXAMNT = Convert.ToDecimal(0.00);
sp.FRTAMNT = Convert.ToDecimal(0.00);
sp.TRDISAMT = Convert.ToDecimal(5.00);
sp.CHRGAMNT = Convert.ToDecimal(100.00);
sp.CASHAMNT = Convert.ToDecimal(0.00);
sp.CHEKAMNT = Convert.ToDecimal(0.00);
sp.CRCRDAMT = Convert.ToDecimal(0.00);
sp.DISTKNAM = Convert.ToDecimal(0.00);
sp.DOCNUMBR = "8905501";
sp.SHIPMTHD = "TWO DAY";
sp.TAXSCHID = "COMPANYPUR";
PayableTransaction.taPMTransactionInsert = sp;
PMTransactionType[] MyPayableTransaction = { PayableTransaction };
eConnect.PMTransactionType = MyPayableTransaction;
FileStream fs = new FileStream(filename, FileMode.Create);
XmlTextWriter writer = new XmlTextWriter(fs, new UTF8Encoding());
serializer.Serialize(writer, eConnect);
writer.Close();
}
Thanks,
Nataraj S
Hi Dean, not sure exactly what you want. Have you reviewed the XML schemas in the eConnect help files?
Ian.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156