Announcements
Hi,
I have added a custom date field to the Vendor Invoice which is located on the VendInvoiceInfoTable and I need it to show on VendTrans or VendTransOpen table once the vendor invoice has been posted. Does anyone know how to do this? I was thinking of using a data method or adding it to a map? TIA
So this is what is crashing. I'll keep doing some more research but so far commenting this line out works otherwise the aos crashes during post
[quote user="ievgen Miroshnikov"]
It should be
this.parmVGRWeBelieve(_vendTrans.VGRWeBelieve);
and put it before super()
[/quote]
will do. Thanks again
Hi chicagoax,
I don't think so. Please do full compile and full CIL. If it won't help use blogs.msdn.microsoft.com/.../crash-and-hang-analysis-on-lcs to check if it's a kernel bug. And of course you can revert changes to be 100% sure.
hey ievgen,
The post and transfer process is failing for me on the payment Journal. Would this newly added field have anything to do with it? The AOS crashes without giving any error. Thanks
Thanks! That worked. I knew I was close
It should be
this.parmVGRWeBelieve(_vendTrans.VGRWeBelieve);
and put it before super()
here's the code so far in VendVoucher class
public VGRWeBelieve parmVGRWeBelieve(VGRWeBelieve _vgrWeBelieve = vgrWeBelieve)
{
vgrWeBelieve = _vgrWeBelieve;
return vgrWeBelieve;
}
initCustVendTrans method -
If(custVendTrans.TableId == tableNum(VendTrans))
{
custVendTrans.VGRWeBelieve = vgrWeBelieve;
}
and lastly
the post method has this code
vendVoucher.parmVGRWeBelieve(_vendTrans.VGRWeBelieve)
I think post is where I am going wrong as vendVoucher doesn't exist
Hi chicagoax,
Let's do it another way, tell us what changes do you have and we will try to say what is wrong.
Hey ievegen,
Sorry for the late reply. Just got around to testing this and it's not working. Can you tell me what the code for the post() method on vendvoucher will look like if I am using the new parm route? thanks
CustVendVoucher holds logic that is applicable to both customer and vendor posting, VendVoucher only vendor specific. If you not going to do similar change for Sales invoice you can leave it in VendVoucher.
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... 290,186 Super User 2024 Season 2
Martin Dráb 227,996 Super User 2024 Season 2
nmaenpaa 101,148