Forum Discussion
PaulPeterson1
5 years agoQrew Assistant Captain
This formula could lead to a negative number being entered if the inventory on hand is greater than the par value.
To cover all bases,
var number inventoryHand = if([Inventory on Hand] > 0 and [Inventory on Hand] < [Inventory Par], [Inventory on Hand], 0);
------------------------------
Paul Peterson
------------------------------
To cover all bases,
var number inventoryHand = if([Inventory on Hand] > 0 and [Inventory on Hand] < [Inventory Par], [Inventory on Hand], 0);
------------------------------
Paul Peterson
------------------------------
BrandonHermez
5 years agoQrew Member
So I tried this and It asked me to put a number after the semicolon, so i put the [Par] - [inventory on hand] and i'm still getting the same result. The issue is if the on hand is null then i want the order amount to be 0, and it only does the equation (par - on hand) when someone enters in a number for the on hand inventory. The par is always static so right now in the order it is always showing that static number when on hand inventory is null
------------------------------
Brandon Hermez
------------------------------
------------------------------
Brandon Hermez
------------------------------
- PaulPeterson15 years agoQrew Assistant CaptainTry this:
If(IsNull([inventory on hand]), 0, [Par] - [inventory on hand])
------------------------------
Paul Peterson
------------------------------