Optimal allocation strategies in two-warehouse systems: managing expiry dates, trade credit, price-advertisement dependent demand, and shortages | Synapse