-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add memo and arpaymentitems missing tags (Issue #67) * Resolve create AR payment missing check number (Issue #75) * Add SourceLineRecordNo property to Order Entry, Purchasing, and Inventory Lines (Issue #76) * Add DropShip and LineShipToContactName to OrderEntryTransactionLine (Issue #77) * Remove OverrideTaxAmount and Tax from PurchasingTransactionLineUpdate XML (Issue #78) * Change updateitemdetails to itemdetails in PurchasingTransactionLineUpdate to match schema (Issue #79) * Add LineDeliverToContactName, Form1099Type, and Form1099Box to PurchasingTransactionLine (Issue #80) * Add LineLevelSimpleTaxType to OrderEntryTransactionLine and PurchasingTransactionLine (Issue #73) * Add DeliverToContactName to PurchasingTransaction (Issue #81)
- Loading branch information
1 parent
3f96e0d
commit 32db092
Showing
19 changed files
with
227 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
Intacct.SDK.Tests/Functions/Purchasing/PurchasingTransactionLineUpdateTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
/* | ||
* Copyright 2018 Sage Intacct, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not | ||
* use this file except in compliance with the License. You may obtain a copy | ||
* of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* or in the "LICENSE" file accompanying this file. This file is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either | ||
* express or implied. See the License for the specific language governing | ||
* permissions and limitations under the License. | ||
*/ | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Text; | ||
using System.Xml; | ||
using Intacct.SDK.Functions.InventoryControl; | ||
using Intacct.SDK.Functions.Purchasing; | ||
using Intacct.SDK.Functions; | ||
using Intacct.SDK.Tests.Xml; | ||
using Intacct.SDK.Xml; | ||
using Xunit; | ||
|
||
namespace Intacct.SDK.Tests.Functions.Purchasing | ||
{ | ||
public class PurchasingTransactionLineUpdateTest : XmlObjectTestHelper | ||
{ | ||
[Fact] | ||
public void GetXmlTest() | ||
{ | ||
string expected = @"<?xml version=""1.0"" encoding=""utf-8""?> | ||
<updatepotransitem line_num=""1""> | ||
<itemid>26323</itemid> | ||
<quantity>2340</quantity> | ||
</updatepotransitem>"; | ||
|
||
PurchasingTransactionLineUpdate record = new PurchasingTransactionLineUpdate() | ||
{ | ||
LineNo = 1, | ||
ItemId = "26323", | ||
Quantity = 2340, | ||
}; | ||
|
||
this.CompareXml(expected, record); | ||
} | ||
|
||
[Fact] | ||
public void GetAllXmlTest() | ||
{ | ||
string expected = @"<?xml version=""1.0"" encoding=""utf-8""?> | ||
<updatepotransitem line_num=""1""> | ||
<itemid>26323</itemid> | ||
<itemdesc>Item Description</itemdesc> | ||
<taxable>true</taxable> | ||
<warehouseid>93294</warehouseid> | ||
<quantity>2340</quantity> | ||
<unit>593</unit> | ||
<linelevelsimpletaxtype>Test</linelevelsimpletaxtype> | ||
<price>32.35</price> | ||
<locationid>SF</locationid> | ||
<departmentid>Purchasing</departmentid> | ||
<memo>Memo</memo> | ||
<itemdetails> | ||
<itemdetail> | ||
<quantity>52</quantity> | ||
<lotno>3243</lotno> | ||
</itemdetail> | ||
</itemdetails> | ||
<form1099>true</form1099> | ||
<customfields> | ||
<customfield> | ||
<customfieldname>customfield1</customfieldname> | ||
<customfieldvalue>customvalue1</customfieldvalue> | ||
</customfield> | ||
</customfields> | ||
<projectid>235</projectid> | ||
<customerid>23423434</customerid> | ||
<vendorid>797656</vendorid> | ||
<employeeid>90295</employeeid> | ||
<classid>243609</classid> | ||
<contractid>9062</contractid> | ||
<billable>true</billable> | ||
</updatepotransitem>"; | ||
|
||
PurchasingTransactionLineUpdate record = new PurchasingTransactionLineUpdate() { | ||
LineNo = 1, | ||
ItemId = "26323", | ||
ItemDescription = "Item Description", | ||
Taxable = true, | ||
WarehouseId = "93294", | ||
Quantity = 2340, | ||
Unit = "593", | ||
LineLevelSimpleTaxType = "Test", | ||
Price = 32.35M, | ||
Memo = "Memo", | ||
Billable = true, | ||
Form1099 = true, | ||
LocationId = "SF", | ||
DepartmentId = "Purchasing", | ||
ProjectId = "235", | ||
CustomerId = "23423434", | ||
VendorId = "797656", | ||
EmployeeId = "90295", | ||
ClassId = "243609", | ||
ContractId = "9062", | ||
CustomFields = new Dictionary<string, dynamic> | ||
{ | ||
{ "customfield1", "customvalue1" } | ||
} | ||
}; | ||
|
||
TransactionItemDetail detail1 = new TransactionItemDetail() | ||
{ | ||
Quantity = 52, | ||
LotNumber = "3243", | ||
}; | ||
record.ItemDetails.Add(detail1); | ||
|
||
this.CompareXml(expected, record); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.