Abhishek Adhikari
New Member
Hi All,
This is my first post, so apologies for any errors in the post.
Problem
I have a situation where I need to calculate the available stock for an SKU and throw a comment "Full Kit" if the available stock will cover the order and "Non Full Kit" if the available stock doesnt fulfill the order. In my initial logic, I started getting the output correctly.
But soon after a situation arose, where due to specific customer requirements, the same SKU can be repeated in the same Sales Order. For example
However, in reality the requirement will remaining inventory will flow as follows
What I have done so far
I have created a sequence formula where, for a particular Warehouse, if a particular SKU gets repeated more than once, the next column throws an incremental number based on the Concatenated value of SKU and Warehouse. For example as below and so on an so forth.
A logic, where based on the Occurrence Number and SKU, the quantity of the available inventory should automatically be picked up from the difference of the Stock available and previous Occurrence Requirement.
This is my first post, so apologies for any errors in the post.
Problem
I have a situation where I need to calculate the available stock for an SKU and throw a comment "Full Kit" if the available stock will cover the order and "Non Full Kit" if the available stock doesnt fulfill the order. In my initial logic, I started getting the output correctly.
But soon after a situation arose, where due to specific customer requirements, the same SKU can be repeated in the same Sales Order. For example
- Current Stock - 150 for SKU A
- First Sales Order
- requirement 1 - 50
- requirement 2 - 30
- requirement 3 - 40
- Second Sales Order - requirement 50
However, in reality the requirement will remaining inventory will flow as follows
- First Sales order
- requirement 1 - 50, Balance Stock - 100, Status "Full Kit"
- requirement 2 - 30, Balance Stock - 70, Status "Full Kit"
- requirement 3 - 40, Balance Stock - 30, Status "Full Kit"
- Second Sales order - requirement 50, Balance Stock 30, Status "Non Full Kit"
What I have done so far
I have created a sequence formula where, for a particular Warehouse, if a particular SKU gets repeated more than once, the next column throws an incremental number based on the Concatenated value of SKU and Warehouse. For example as below and so on an so forth.
- Line 1, SKU 1, Occurrence 1
- Line 2, SKU 2, Occurrence 1
- Line 3, SKU 3, Occurrence 1
- Line 4, SKU 1, Occurrence 2
- Line 5, SKU 1, Occurrence 3
A logic, where based on the Occurrence Number and SKU, the quantity of the available inventory should automatically be picked up from the difference of the Stock available and previous Occurrence Requirement.