meridianww / M4PLBase

0 stars 1 forks source link

When Creating SO/PO in NAV, Check If JobShipmentDate is Valid (greater than year 2000) #474

Closed nmfujimoto closed 3 years ago

nmfujimoto commented 3 years ago

If the JobShipmentDate is not valid (Shipment Date should be greater than year 2000 and not null), then populate the JobShipmentDate with JobOriginDateTimeActual and save the job record. Then create the NAV SO/PO for the order.

The Shipment Date is important in NAV as the date is used to calculate fuel surcharge rates. NAV will accept a 1/1/1900 date for the Shipment Date but will not be able to calculate fuel surcharge until a user corrects to a "valid".