I’m building a function library to create a Shipment. Creating the ShipHead record in the function was pretty straightforward, but the ShipDtl has posed a few problems.
The newest hurdle is an error when I call the GetQtyInfo BO Method. The error message says “Pack Slip Currency does not match with the Order Pack Slip Currency”. But when I review the dataset, I’m not seeing this mismatch. Maybe someone else can see something missing here?
{
"ShipHead": [
{
"ColumnNames": 0,
"Company": "IRP",
"PackNum": 224564,
"ShipDate": "2024-03-08T00:00:00",
"ShipViaCode": "",
"ShipPerson": "REDACTED",
"EntryPerson": "REDACTED",
"ShipLog": "",
"LabelComment": "",
"ShipComment": "",
"Invoiced": false,
"ShipToNum": "8548",
"ReadyToInvoice": false,
"CustNum": 2038,
"Plant": "MfgSys",
"TrackingNumber": "UpdateME",
"LegalNumber": "224564",
"Voided": false,
"ExternalDeliveryNote": false,
"ExternalID": "",
"ICReceived": false,
"XRefPackNum": "",
"BTCustNum": 2038,
"BTConNum": 0,
"ShipStatus": "OPEN",
"ShipGroup": "",
"PkgCode": "",
"PkgClass": "",
"Weight": 0.00000,
"ResDelivery": false,
"SatDelivery": false,
"SatPickup": false,
"VerbalConf": false,
"Hazmat": false,
"DocOnly": false,
"RefNotes": "",
"ApplyChrg": false,
"ChrgAmount": 0.000,
"COD": false,
"CODFreight": false,
"CODCheck": false,
"CODAmount": 0.000,
"GroundType": "",
"NotifyFlag": false,
"NotifyEMail": "",
"DeclaredIns": false,
"DeclaredAmt": 0.000,
"MFTransNum": "",
"MFCallTag": "",
"MFPickupNum": "",
"MFDiscFreight": 0.000,
"MFTemplate": "",
"MFUse3B": false,
"MF3BAccount": "",
"MFDimWeight": 0.00000,
"MFZone": "",
"MFFreightAmt": 0.000,
"MFOtherAmt": 0.000,
"MFOversized": false,
"ServSatDelivery": false,
"ServSatPickup": false,
"ServSignature": false,
"ServAlert": false,
"ServPOD": false,
"ServAOD": false,
"ServHomeDel": false,
"DeliveryType": "",
"ServDeliveryDate": null,
"ServPhone": "",
"ServInstruct": "",
"ServRelease": false,
"ServAuthNum": "",
"ServRef1": "",
"ServRef2": "",
"ServRef3": "",
"ServRef4": "",
"ServRef5": "",
"BOLNum": 0,
"BOLLine": 0,
"CommercialInvoice": false,
"ShipExprtDeclartn": false,
"CertOfOrigin": false,
"LetterOfInstr": false,
"HazardousShipment": false,
"IntrntlShip": false,
"PayFlag": "",
"PayAccount": "",
"PayBTAddress1": "",
"PayBTAddress2": "",
"PayBTCity": "",
"PayBTState": "",
"PayBTZip": "",
"PayBTCountry": "",
"FFAddress1": "",
"FFAddress2": "",
"FFCity": "",
"FFState": "",
"FFZip": "",
"FFCountry": "",
"FFContact": "",
"FFCompName": "",
"FFPhoneNum": "",
"ChangedBy": "REDACTED",
"ChangeDate": "2024-03-11T00:00:00",
"ChangeTime": 48416,
"FFID": "",
"IndividualPackIDs": false,
"FFAddress3": "",
"DeliveryConf": 1,
"AddlHdlgFlag": false,
"NonStdPkg": false,
"FFCountryNum": 0,
"PayBTAddress3": "",
"PayBTCountryNum": 0,
"PayBTPhone": "",
"WayBillNbr": "",
"FreightedShipViaCode": "",
"UPSQuantumView": false,
"UPSQVShipFromName": "",
"UPSQVMemo": "",
"PkgLength": 0.00000,
"PkgWidth": 0.00000,
"PkgHeight": 0.00000,
"EDIReady": false,
"PhantomPack": false,
"ReplicatedFrom": 0,
"ReplicatedStat": "",
"PkgSizeUOM": "IN",
"WeightUOM": "LB",
"UseOTS": false,
"TranDocTypeID": "",
"DocumentPrinted": false,
"OTSOrderNum": 386386,
"TaxCalculated": false,
"TaxCalcDate": null,
"CurrencyCode": "USD",
"Rounding": 0.00000,
"Rpt1Rounding": 0.00000,
"Rpt2Rounding": 0.00000,
"Rpt3Rounding": 0.00000,
"DocRounding": 0.00000,
"Rpt1TotalTax": 0.000,
"Rpt2TotalTax": 0.000,
"Rpt3TotalTax": 0.000,
"OrderAmt": 0.000,
"DocOrderAmt": 0.000,
"Rpt1OrderAmt": 0.000,
"Rpt2OrderAmt": 0.000,
"Rpt3OrderAmt": 0.000,
"TaxRegionCode": "",
"TotalWHTax": 0.000,
"DocTotalWHTax": 0.000,
"Rpt1TotalWHTax": 0.000,
"Rpt2TotalWHTax": 0.000,
"Rpt3TotalWHTax": 0.000,
"TotalSATax": 0.000,
"DocTotalSATax": 0.000,
"Rpt1TotalSATax": 0.000,
"Rpt2TotalSATax": 0.000,
"Rpt3TotalSATax": 0.000,
"TotalTax": 0.000,
"DocTotalTax": 0.000,
"TotalDiscount": 0.000,
"Rpt1TotalDiscount": 0.000,
"Rpt2TotalDiscount": 0.000,
"Rpt3TotalDiscount": 0.000,
"DocTotalDiscount": 0.000,
"ShipToCustNum": 2038,
"DeviceUOM": "",
"ManifestSizeUOM": "",
"ManifestWtUOM": "",
"ManifestWeight": 0.00000,
"ManifestLength": 0.00000,
"ManifestWidth": 0.00000,
"ManifestHeight": 0.00000,
"RateGrpCode": "",
"InPrice": false,
"PBHoldNoInv": false,
"ReconcileQty": 0.00000,
"ScheduleNumber": "Schedule Number",
"CounterASN": 0,
"OurBank": "DBT",
"ERSOrder": false,
"AutoPrintReady": false,
"ShipOvers": false,
"WIPackSlipCreated": false,
"SysRevID": 0,
"SysRowID": "840787ea-5794-472c-b7f6-ea1fa241891d",
"AGAuthorizationCode": "",
"AGAuthorizationDate": null,
"AGCarrierCUIT": "",
"AGCOTMark": false,
"AGDocumentLetter": "",
"AGInvoicingPoint": "",
"AGLegalNumber": "",
"AGPrintingControlType": "",
"AGTrackLicense": "",
"DispatchReason": "",
"AGShippingWay": "",
"OurSupplierCode": "",
"ASNPrintedDate": null,
"EDIShipToNum": "",
"MXIncoterm": "",
"CreatedOn": "2024-03-08T16:10:24.973",
"DigitalSignature": "",
"SignedOn": null,
"SignedBy": "",
"FirstPrintDate": null,
"DocCopyNum": 0,
"CNDeclarationBill": "",
"CNSample": false,
"CNBonded": false,
"MXCertifiedTimestamp": null,
"MXCertificateSN": "",
"MXCertificate": "",
"MXFiscalFolio": "",
"MXSATCertificateSN": "",
"MXDigitalSeal": "",
"MXSATSeal": "",
"MXOriginalString": "",
"MXOriginalStringTFD": "",
"MXSerie": "",
"MXFolio": "",
"MXETD": null,
"MXETA": null,
"MXDistance": 0.00,
"MXPermitType": "",
"MXPermitNum": "",
"MXCartaPorteStatus": "0",
"VehicleLicensePlate": "",
"VehicleType": "",
"VehicleYear": 0,
"DriverID": "",
"MXCancelFiscalFolio": "",
"IncotermCode": "",
"IncotermLocation": "",
"AddrList": "REDACTED",
"AllowChgAfterPrint": true,
"BillAddr": "REDACTED",
"BTCustID": "",
"BTCustomerName": "",
"CartonContentValue": 0.000,
"CartonStageNbr": "",
"ChangeDateTime": "2024-03-11T13:26:56",
"CheckOrderMessage": "",
"CreditCardMessage": "",
"CreditHold": false,
"CtnPkgCode": "",
"DisplayInPrice": false,
"DocTaxAmt": 0.000,
"DocWithholdingTaxAmt": 0.000,
"DoPostUpdate": false,
"DspDigitalSignature": "",
"EnableAssignLegNum": false,
"EnablePackageControl": false,
"EnablePhantom": false,
"EnableShipped": true,
"EnableTax": false,
"EnableTranDocType": false,
"EnableVoidLegNum": false,
"EnableWeight": true,
"FromMasterPack": false,
"HasCartonLines": false,
"HasLegNumCnfg": false,
"LastCartonFlag": false,
"LegalNumberMessage": "",
"ManifestFlag": false,
"MasterpackPackNum": 0,
"MultipleShippers": false,
"OrderDate": "2024-03-13T08:31:31.663",
"OrderHold": false,
"OrderNum": 0,
"PCID": "",
"PhantomCasesExist": false,
"PkgHeightEnable": 0,
"PkgLenEnable": 0,
"PkgSizeUOMEnable": 0,
"PkgWidthEnable": 0,
"PostUpdMessage": "",
"QSUseBOL": false,
"QSUseCO": false,
"QSUseIntl": false,
"ReadyToInvoiceChanged": false,
"ReplicateCount": 0,
"Rpt1TaxAmt": 0.000,
"Rpt2TaxAmt": 0.000,
"Rpt3TaxAmt": 0.000,
"SendShipment": false,
"ShipToNumName": "REDACTED",
"SlipStatus": "OPEN",
"StageShipped": false,
"StagingReq": false,
"StatusChgMessage": "",
"TaxAmt": 0.000,
"AutoInvoiceMessage": "",
"ShipToAddressFormatted": " \r\n\r\n",
"SoldToAddressFormatted": "",
"MXETADate": null,
"MXETATime": 0,
"MXETDDate": null,
"MXETDTime": 0,
"EnableIncotermLocation": false,
"MXVehicleWeight": 0.000,
"MXIdCCP": "",
"MXCustomsRegime": "",
"MXReverseLogistics": false,
"BitFlag": 0,
"AGInvoicingPointDescription": "",
"BTCustNumInactive": false,
"CurrencyCodeCurrSymbol": "USD",
"CurrencyCodeCurrDesc": "USD",
"CurrencyCodeCurrencyID": "USD",
"CurrencyCodeDocumentDesc": "",
"CurrencyCodeCurrName": "USD",
"CustomerSendToFSA": false,
"CustomerInactive": false,
"CustomerBTName": "REDACTED.",
"CustomerCustID": "23201",
"CustomerName": "REDACTED",
"DeliveryTypeDescription": "",
"FreightedShipViaCodeDescription": "",
"FreightedShipViaCodeWebDesc": "",
"IncotermsDescription": "",
"OurBankBankName": "REDACTED",
"OurBankDescription": "REDACTED",
"ShipToCustInactive": false,
"ShipToCustBTName": "REDACTED.",
"ShipToCustCustID": "23201",
"ShipToCustName": "REDACTED",
"ShipToNumInactive": false,
"ShipViaCodeDescription": "",
"ShipViaCodeWebDesc": "",
"TaxRegionDescription": "",
"TranDocTypeDescription": "",
"RowMod": "",
"SpecifiedProperties": "///////////////////////////////9//////////////////////8/",
"UserDefinedColumns": {
"Autoprint_c": false,
"LTL1_c": "",
"LTL2_c": "",
"LTL3_c": "",
"PickUpLocation_c": "Moellers",
"SalesforceID_c": "",
"ThirdPartyShipAcc_c": "",
"TrackingSent_c": false
}
}
],
"ShipHeadAttch": [],
"CartonTrkDtl": [],
"ShipDtl": [
{
"ColumnNames": 0,
"Company": "IRP",
"PackNum": 224564,
"PackLine": 0,
"OrderNum": 386386,
"OrderLine": 1,
"OrderRelNum": 1,
"LineType": "PART",
"OurInventoryShipQty": 0.0,
"OurJobShipQty": 0.0,
"JobNum": "",
"Packages": 1,
"PartNum": "3151540",
"LineDesc": "PILOT ICEBERG WITH CASTERS AND LID - BLACK",
"IUM": "EA",
"RevisionNum": "A",
"ShipComment": "",
"ShipCmpl": false,
"WarehouseCode": "Moellers",
"BinNum": "",
"UpdatedInventory": false,
"XPartNum": "",
"XRevisionNum": "",
"ShpConNum": 1,
"TMBilling": false,
"Invoiced": false,
"WUM": "LB",
"LotNum": "",
"DimCode": "",
"DUM": "",
"DimConvFactor": 1.0,
"InvoiceComment": "",
"WarrantyCode": "",
"CustNum": 2038,
"ShipToNum": "8548",
"EffectiveDate": null,
"MaterialDuration": 0,
"LaborDuration": 0,
"MiscDuration": 0,
"MaterialMod": "",
"LaborMod": "",
"MiscMod": "",
"MaterialExpiration": null,
"LaborExpiration": null,
"MiscExpiration": null,
"LastExpiration": null,
"WarrantyComment": "",
"ContractNum": 0,
"ContractCode": "",
"Onsite": false,
"MatCovered": false,
"LabCovered": false,
"MiscCovered": false,
"Plant": "MfgSys",
"ReadyToInvoice": false,
"SellingInventoryShipQty": 0.0,
"SellingJobShipQty": 0.0,
"SellingFactor": 1.0,
"SalesUM": "EA",
"TotalNetWeight": 0.00000,
"WIPWarehouseCode": "",
"WIPBinNum": "",
"SellingFactorDirection": "D",
"HeaderShipComment": "",
"KitParentLine": 0,
"ChangedBy": "",
"ChangeDate": null,
"ChangeTime": 0,
"InventoryShipUOM": "EA",
"JobShipUOM": "EA",
"TrackSerialNum": false,
"JobLotNum": "",
"BinType": "",
"NotCompliant": false,
"ComplianceMsg": "",
"DiscountPercent": 0.0,
"PricePerCode": "",
"Discount": 0.0,
"DocDiscount": 0.0,
"Rpt1Discount": 0.0,
"Rpt2Discount": 0.0,
"Rpt3Discount": 0.0,
"ExtPrice": 0.0,
"DocExtPrice": 0.0,
"Rpt1ExtPrice": 0.0,
"Rpt2ExtPrice": 0.0,
"Rpt3ExtPrice": 0.0,
"UnitPrice": 0.0,
"DocUnitPrice": 0.0,
"Rpt1UnitPrice": 0.0,
"Rpt2UnitPrice": 0.0,
"Rpt3UnitPrice": 0.0,
"PickedAutoAllocatedQty": 0.0,
"ShipToCustNum": 2038,
"InDiscount": 0.0,
"DocInDiscount": 0.0,
"Rpt1InDiscount": 0.0,
"Rpt2InDiscount": 0.0,
"Rpt3InDiscount": 0.0,
"InExtPrice": 0.0,
"DocInExtPrice": 0.0,
"Rpt1InExtPrice": 0.0,
"Rpt2InExtPrice": 0.0,
"Rpt3InExtPrice": 0.0,
"InUnitPrice": 0.0,
"DocInUnitPrice": 0.0,
"Rpt1InUnitPrice": 0.0,
"Rpt2InUnitPrice": 0.0,
"Rpt3InUnitPrice": 0.0,
"InPrice": false,
"MFCustNum": 2038,
"MFShipToNum": "8548",
"UseOTMF": false,
"OTMFName": "",
"OTMFAddress1": "",
"OTMFAddress2": "",
"OTMFAddress3": "",
"OTMFCity": "",
"OTMFState": "",
"OTMFZIP": "",
"OTMFContact": "",
"OTMFFaxNum": "",
"OTMFPhoneNum": "",
"OTMFCountryNum": 0,
"RenewalNbr": 0,
"ShipOvers": false,
"AllowedOvers": 0.0,
"AllowedUnders": 0.0,
"SysRevID": 0,
"SysRowID": "00000000-0000-0000-0000-000000000000",
"NotAllocatedQty": 0.0,
"PCID": "",
"PCIDItemSeq": 0,
"DockingStation": "",
"UseShipDtlInfo": false,
"PkgCodePartNum": "",
"CustContainerPartNum": "",
"LabelType": "",
"WarrantySendToFSA": false,
"FSAEquipment": false,
"AttributeSetID": 0,
"InventoryNumberOfPieces": 0,
"JobNumberOfPieces": 0,
"MXEstValue": 0.0,
"MXEstValueCurrencyCode": "",
"MXHazardousShipment": false,
"MXHazardousType": "",
"MXPackageType": "",
"CNDeclarationBillLine": 0,
"JobNotAllocatedQty": 0.0,
"JobPickedAutoAllocatedQty": 0.0,
"BuyToOrder": false,
"ChangeDateTime": null,
"CurrencyCode": "USD",
"DimCodeList": "",
"DisplayInvQty": 0.0,
"DocLineTax": 0.0,
"DropShip": false,
"DtlError": false,
"EnableInvIDBtn": false,
"EnableInvSerialBtn": false,
"EnableJobFields": false,
"EnableKitIDBtn": false,
"EnableMfgIDBtn": false,
"EnableMfgSerialBtn": false,
"EnableOBInvSerialBtn": false,
"EnableOBMfgSerialBtn": false,
"EnablePackageControl": false,
"EnablePOSerialBtn": false,
"ExtJobNum": "",
"FSAInstallationCost": 0.0,
"FSAInstallationOrderLine": 0,
"FSAInstallationOrderNum": 0,
"FSAInstallationRequired": false,
"FSAInstallationType": "",
"GetLocIDNum": false,
"InvLegalNumber": "",
"InvoiceNum": 0,
"KitBackFlush": true,
"KitBinNum": "",
"KitCompIssue": false,
"KitCompShipComplete": false,
"KitDescription": "",
"KitFlag": "P",
"KitIUM": "",
"KitLotNum": "",
"KitMassIssue": false,
"KitParentIssue": false,
"KitPartNum": "",
"KitQtyFromInv": 0.0,
"KitQtyFromInvEnabled": false,
"KitSerialTracked": false,
"KitTrackLots": false,
"KitWarehouse": "",
"KitWarehouseCodeDesc": "",
"KitWhseList": "",
"LegalNumber": "",
"LineContentValue": 0.0,
"LineTax": 0.0,
"LinkMsg": "",
"MarkForAddrList": "REDACTED",
"MFCustID": "23201",
"OrderHold": false,
"OrderRelOurReqQty": 0.0,
"OurJobShipIUM": "",
"OurJobShippedQty": 0.0,
"OurRemainQty": 1.00000000,
"OurRemainUM": "EA",
"OurReqQty": 1.00000000,
"OurReqUM": "EA",
"OurShippedQty": 0.00000000,
"OurShippedUM": "EA",
"OurStockShippedQty": 0.0,
"PackSlip": "",
"PartAESExp": "",
"PartCompany": "",
"PartECNNumber": "",
"PartExpLicNumber": "",
"PartExpLicType": "",
"PartHazClass": "",
"PartHazGvrnmtID": "",
"PartHazItem": false,
"PartHazPackInstr": "",
"PartHazSub": "",
"PartHazTechName": "",
"PartHTS": "",
"PartNAFTAOrigCountry": "",
"PartNAFTAPref": "",
"PartNAFTAProd": "",
"PartOrigCountry": "",
"PartPartNum": "",
"PartSchedBcode": "",
"PartUseHTSDesc": false,
"PONum": "Icebergs 1",
"ProjectID": "",
"PurPoint": "",
"RequestDate": "2023-11-03T00:00:00",
"Rpt1LineTax": 0.0,
"Rpt2LineTax": 0.0,
"Rpt3LineTax": 0.0,
"SelectedLocationIDQty": 0.0,
"SellingRemainQty": 1.00000,
"SellingRemainUM": "EA",
"SellingReqQty": 1.00000000,
"SellingReqUM": "EA",
"SellingShipmentQty": 0.0,
"SellingShipmentUM": "EA",
"SellingShippedQty": 0.0,
"SellingShippedUM": "EA",
"ShipDate": null,
"ShipToWarning": "",
"ShipViaCode": "",
"StockPart": true,
"TrackID": false,
"TranLocationIDQty": 0.0,
"VendorNum": 0,
"WhseList": "",
"KitAttributeSetID": 0,
"AttributeSetDescription": "",
"AttributeSetShortDescription": "",
"KitAttributeSetDescription": "",
"KitAttributeSetShortDescription": "",
"KitPartAttrClassID": "",
"EnableAttributeSetSearch": false,
"MarkForAddrFormatted": "REDACTED",
"DispInventoryNumberOfPieces": 0.0,
"DispJobNumberOfPieces": 0.0,
"KitRevisionNum": "",
"CNDeclarationBill": "",
"BitFlag": 0,
"BinNumDescription": "",
"ContractCodeContractDescription": "",
"CustNumSendToFSA": false,
"CustNumName": "Pilot Travel Centers LLC",
"CustNumCustID": "23201",
"CustNumBTName": "Pilot Travel Centers LLC.",
"DimensionDimCodeDescription": "",
"JobNumPartDescription": "",
"LotPartLotDescription": "",
"MFShipToNumInactive": false,
"OrderLineProdCode": "BEVFG",
"OrderLineLineDesc": "PILOT ICEBERG WITH CASTERS AND LID - BLACK",
"OrderNumPSCurrCode": "USD",
"OrderNumCardMemberName": "",
"OrderNumCurrencyCode": "USD",
"OTMFCountryDescription": "",
"PackNumUseOTS": false,
"PackNumShipStatus": "OPEN",
"PartNumTrackInventoryByRevision": false,
"PartNumAttrClassID": "",
"PartNumSendToFSA": false,
"PartNumTrackSerialNum": false,
"PartNumPricePerCode": "E",
"PartNumSellingFactor": 1.00000000,
"PartNumSalesUM": "EA",
"PartNumIUM": "EA",
"PartNumTrackLots": false,
"PartNumTrackDimension": false,
"PartNumPartDescription": "PILOT ICEBERG WITH CASTERS AND LID - BLACK",
"PartNumWarrantyCode": "",
"PartNumFSAEquipment": false,
"PartNumTrackInventoryAttributes": false,
"PlantName": "IOWA ROTOCAST PLASTICS",
"WarehouseCodeDescription": "Moellers Drive Warehouse",
"WarrantyCodeSendToFSA": false,
"WarrantyCodeWarrDescription": "",
"WIPWarehouseCodeDescription": "",
"RowMod": "A",
"SpecifiedProperties": "////////////////////f/////////////////////////////8H",
"UserDefinedColumns": {
"CombinePackage_c": false,
"PackageNum_c": 0,
"POLineRel_c": "",
"POLine_c": "",
"SalesforceID_c": ""
}
}
],
"ShipDtlAttch": [],
"ShipCOO": [],
"ShipDtlPackaging": [],
"ShipDtlTax": [],
"ShipHeadInsurance": [],
"ShipMisc": [],
"ReplicatedPacks": [],
"ShipHeadTrailer": [],
"ShipUPS": [],
"LegalNumberGenerate": [],
"LegalNumGenOpts": [],
"SalesKitCompIssue": [],
"SelectedIDNumbers": [],
"SelectedSerialNumbers": [],
"ShipTaxSum": [],
"SNFormat": [],
"ExtensionTables": []