Problem when customize sale order!

haihthhaihth Member Posts: 32
Hi, All member

I have a problem when customize sale order:
- I add a column name "Box(integer)" to Sales Line table
- Quantity column = n * Box ( I have funtion GetQuantityForBox(Box) to count quantity, depend on Item No.)

I write some code to event OnValidate of Box column like that:

Quantity:= GetQuantityForBox(Box);
Validate(Quantity);

Everything seem OK. When customer input a number to Box column, the Quantity change right.

But problem is:

- When customer input for quantity , the system will show warning if item is out of stock ( system show form Check Availability-342)
- But when customer input for Box , the system change the quantity right, but don't show any warning althought this item is out of stock

How to make something to system will show warning when customer change Box amount and that Item is out of stock.

Anybody can help me ?
Thanks very much
(Sorry about my english)

Comments

Sign In or Register to comment.