RU-507-67-R9P5 fix in Class:
InventUpd_Physical.updateTransPhysicalReturnedIssue()



Line 45 changed from :

inventTrans.voucher = _ledgerVoucher.lastVoucher();

to

localBuffer.VoucherPhysical = _ledgerVoucher.lastVoucher();



I have no problem with the new line but why did they remove the old one?
It did have a purpose for us!  When we cancel an item production, this
field (inventTrans.voucher) link the InventTrans record to a "Financial"
InventTransPosting record.  So when we use class InventSumDate to know
the inventQty on a past date, it doesn't messed up the numbers?



Here's how I reproduce the problem :



1 - Create a job that will tell you the qty of an item at a past date
like this one.

static void invent10400(Args _args){

    InventSumDate invSumDate



    invSumDate = InventSumDate::newParameters(03\10\2004, "10400");



    info(num2str(invSumDate.postedQty() + invSumDate.receivedQty() -
invSumDate.deductedQty(),

                 0, 2, 2, 3));

}



2 - Run it and take note of the qty.  Let's say item 10400 = 200 units
on 2004-10-03.



3 - Now go create a production order for that kind of item.  Create a
new production journal in Journals -> Report as finished.  Create 50
units of 10400 and validate the journal.



4 - Production created today shouldn't influence qty of units on
2004-10-03.  Run job invent10400 to thankfully note that the qty of
10400 on 2004-10-03 still = 200.



5 - Now go back to Journals -> Report as finished and create a journal.
Just like the production on step 3 but insert -50 instead of 50.
Validate.  Now we've just cancelled the 50 units produced earlier.



6 - Still, cancelled production today shouldn't influence the qty of
units on 2004-10-03.  Run job invent10400 and see that qty on 2004-10-03
is now 150!!  The cancelled qty was not considered!



Here's another way of seeing it from InventSumDate point of view :



1 - Qty in InventSum = 200 Now and on 2004-10-03 has nothing has
happened since then.

2 - Produce 50, now InventSum = 250.  If you use InventSumDate to check
on 2004-10-03, it will "rollback" : 250 - 50 (production since
2004-10-03) = 200.  Good.

3 - Cancel 50. now InventSum is back to 200.  If you use InventSumDate
to check on 2004-10-03 :

200 - 50 (production since 2004-10-03) + 0 (can't find cancellation
since 2004-10-03) = 150.  Wrong.



Anyone encountered a problem similar to this?  Even if you don't have a
solution to this I would like to know if I'm alone with this or not.

Thanks for reading all through.

Steeve...



[Non-text portions of this message have been removed]





Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to