Change Stage Ship Confirm Date

We use Stage Ship Confirm to ship Master Packs. This works great most of the time, except when there is a four day weekend. This is because the ship date offset is hardcoded into the service.

			{
				ttCartonStage.ProcessError = "";
				flag = false;
				empty = "";
				if (StringExtensions.Compare(DateShift, "Less1Days", false) == 0)
				{
					DateTime.Today.AddDays(-1.0);
					ttCartonStage.ShipDate = DateTime.Today.AddDays(-1.0);
				}
				else if (StringExtensions.Compare(DateShift, "Less2Days", false) == 0)
				{
					DateTime.Today.AddDays(-2.0);
					ttCartonStage.ShipDate = DateTime.Today.AddDays(-2.0);
				}
				else if (StringExtensions.Compare(DateShift, "Less3Days", false) == 0)
				{
					DateTime.Today.AddDays(-3.0);
					ttCartonStage.ShipDate = DateTime.Today.AddDays(-3.0);
				}
				else
				{
					ttCartonStage.ShipDate = DateTime.Today;
				}

Any ideas on how I can ship a MasterPack over the 3 days?

Did you ever manage to figure this out?

Nope. They said that it was working as designed :rofl: I brought up 4 day weekends but the answer I got back was:

“Its not a bug because it is purposely set to 3. It has been reviewed to increase the number of days and rejected. Technically, it shouldn’t be allowed at all. It was only added as a convenience for when customer forget to do it or can’t do it for some reason. We made it three days to allow for a weekend. So, if they forget on Friday, they can still do it on Monday.”

The BO is just pulling the system time so I looked into using RunAsDate but it has to be done at the app server level because of where the code is running.

Interesting… You can change the ship date all you want on customer shipment entry…

So changing that ship date on Customer Shipment Entry won’t change anything? It still posts it 3 days prior to ‘Today’?

You are not able to change the Ship Date after the Ship Pack or Master Pack have been Ship Stage Confirmed.

1 Like