Thanks Mridul
This is exactly what I did. I generally only look at the log file for
errors. In this case, I found how the invoice was being created as well.
Skip
-----Original Message-----
From:
[hidden email] [mailto:
[hidden email]]On Behalf Of
Mridul Pathak
Sent: Friday, April 04, 2008 1:05 AM
To:
[hidden email]
Subject: Re: Discovering Program Flow
Hi, The best way to trace the process is to watch the consol log properly
and you may go through the control flow, and put debug statements in
different methods to debug the code. Now moving to your problem, I tried to
trace the flow for Purchase Order and was able to trace where exactly the
call is made for creating Invoice while receiving the purchase order.
On following the consol log carefully I found that after processing
receiveInventory and createShipmentReceipt, on updateShipment service
createInvoiceFromShipment is triggered as an ECA. And after that
capturePaymentFromInvoice service is triggered as an ECA on
createInvoiceForOrder. The service createInvoiceForOrder is called inline
from createInvoicesFromShipments service which again is called inline from
creatInvoicesFromShipment service.
I'll like to suggest you to debug the process to understand it better,
because this is a very complicated process and I think just reading out the
code may not be of much help.
On Fri, Apr 4, 2008 at 4:47 AM, skip@thedevers <
[hidden email]> wrote:
> I am writing purchase orders, and then receiving them. As part of that
> process, an Invoice is being created when the items are received I see a
> shipment and shipmentItems created, .ItemIssuance and related,
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create the
> Invoice. This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two levels
> down so far, but still cannot find out how the invoice is being created.
>
> Can someone tell me what is the best way and/or resources to use to
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
> 10:13 AM
>
>
--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com[hidden email]
__________________________________
Office : 509.855.4113
Mobile : +919425926892
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM