dont return a price if all you have is price list
This commit is contained in:
parent
b62f2275d6
commit
f4d25e6819
@ -29,6 +29,13 @@ BEGIN
|
||||
RETURN;
|
||||
END;
|
||||
|
||||
-- Early exit if only list price is available
|
||||
IF @target IS NULL AND @last_norm IS NULL
|
||||
BEGIN
|
||||
INSERT INTO @ret VALUES (NULL, N'Only List price is available, disregard');
|
||||
RETURN;
|
||||
END;
|
||||
|
||||
-- Pick starting base price
|
||||
SET @base_price = COALESCE(@target, @last_norm, @list_eff);
|
||||
-- Reason text
|
||||
|
Loading…
Reference in New Issue
Block a user