• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Andy Miller
#1 Posted : Tuesday, December 18, 2007 1:29:21 AM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
This is in SP2 and SP3.


If CopyBvin is true, LineItem.Clone assigns the result.Bvin then copies the Inputs and Modifiers. But the property Getter for both Inputs and Modifiers uses code to look up the private _Inputs and _Modifiers collections like this:



_Modifiers = Orders.LineItemModifier.FindByLineItemId(Me.Bvin)



Since the Bvin has already been assigned, both the original (Me.Modifiers) and the clone (result.Modifiers) have the same values even before the Inputs and Modifiers are copied.



Basically this means that every time through the Clone method, the Inputs and Modifiers are copied doubled (if they were persisted in between calls).



The easy fix is to move the Bvin assignment to the bottom of the Clone method.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
jetheredge
#2 Posted : Tuesday, December 18, 2007 8:36:27 AM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Thanks, we will make this change.
Justin Etheredge
Senior Software Engineer
BVSoftware
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2025 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012