diff --git a/src/OopFactory.X12/OopFactory.X12.csproj b/src/OopFactory.X12/OopFactory.X12.csproj index c910f728..a24c3b48 100644 --- a/src/OopFactory.X12/OopFactory.X12.csproj +++ b/src/OopFactory.X12/OopFactory.X12.csproj @@ -676,6 +676,9 @@ + + + diff --git a/src/OopFactory.X12/Parsing/SpecificationFinder.cs b/src/OopFactory.X12/Parsing/SpecificationFinder.cs index e7c3bce3..9d3ae304 100644 --- a/src/OopFactory.X12/Parsing/SpecificationFinder.cs +++ b/src/OopFactory.X12/Parsing/SpecificationFinder.cs @@ -55,6 +55,11 @@ public virtual TransactionSpecification FindTransactionSpec(string functionalCod return GetSpecification("837-5010"); else return GetSpecification("837-4010"); + case "850": + if (versionCode.Contains("5010")) + return GetSpecification("850-5010"); + else + return GetSpecification("850-4010"); case "875": return GetSpecification("875-5010"); case "880": diff --git a/src/OopFactory.X12/Specifications/Ansi-850-5010Specification.xml b/src/OopFactory.X12/Specifications/Ansi-850-5010Specification.xml new file mode 100644 index 00000000..a9202bae --- /dev/null +++ b/src/OopFactory.X12/Specifications/Ansi-850-5010Specification.xml @@ -0,0 +1,299 @@ + + + + + + + + + + + + + + + Service, Promotion, Allowance, or Charg + + + + + + + + + + + + + + + + + + + + + + + + + Service, Promotion, Allowance, or Charge Information + + + + Monetary Amount + + + + + + Type of Financial Accounting Data + + + + + + Reference Identification + + + + + + + Name + + + + + + + + + + + + + + + + + Code Source Information + + + + + Specification Identifier + + + + + + Name + + + + + + + + + + Contract and Cost Accounting Standards + + + + + + + + + + Advertising Demographic Information + + + + + + Baseline Item Data + + + + + + + + Pricing Information + + + + + + + Product/Item Description + + + + + + + + + + Service, Promotion, Allowance, or Charg + + + + + + + + + + + + + + + + + + + + + + + + + + + Quantity + + + + + Line Item Schedule + + + + + + + + + Marking, Packaging, Loading + + + + + Loop Header + + + + Lead Time + + + + + + Code Source Information + + + + + + + Reference Identification + + + + + + + Name + + + + + + + + + + + + + + + + + + + Lead Time + + + + + + + + + Subline Item Detail + + + + + + + + + + + + + + Reference Identification + + + + + + Service, Promotion, Allowance, or Charg + + + + + + Quantity + + + + + Name + + + + + + + + + + + + Monetary Amount + + + + + + Code Source Information + + + + + + Transaction Totals + + + + \ No newline at end of file