I have create an example about that.
Now how to summary a period of delivery and warehouse quantity of products when I
click the search button and input the start_date and end_date.
And another question is how can I get the value of product_inventory_quantity_before_search_period
How to write the script ( Search_Period_Delivery_And_Warehouse_Quantity )?