Ship Check

A Boolean value that specifies whether it also verifies if the shipping date is an open date in the shipping calendar.

boolean ZLG_CheckShippingDate(boolean _checkCalendar = false, boolean _modifiedField = true)
{
boolean     errorShipDate = false;
if (this.isShippingDateInPast())
{
this.setShippingDateBeforeTodayErrorText(_modifiedField);
}
else if (this.isShippingDateInLeadTime())
{
this.setShippingDateInLeadTimeErrorText(_modifiedField);
}
else if (_checkCalendar)
{
//check also in calendar
this.checkShippingDateInCalendar();
}
if (errorText)
{
errorShipDate = true;
}
return errorShipDate;
}

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s