-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix bug when journal entry amount is 0 A journal entry amount of "0" would always results in a transaction type of "Debit". Add the ability to indicate which journal entry is Debit and which is Credit when journaling an amount of "0". * Allow unsetting email address in vendor Allow clearing a previously-set email address in the Vendor. Previously, once you set an email address, you could never remove an email address. * Write the "start" XML attribute Write the "start" XML attribute when paging through a list. * Allow using record number when updating customer or vendor Previously, the library only supported using the vendor ID or customer ID when updating a vendor or customer. Allow additionally using the record number to update. * Allow using ReadMore for reports Listing stored report data requires using the ReadMore function. Add a report ID to the ReadMore function. * Fix the unit tests After augmenting VendorUpdate, CustomerUpdate, and ReadMore to allow record ID (for the former two) and report ID (for the latter), fix the corresponding unit tests. * Update JournalEntryLineCreate.php Fix bug in setting transaction amount * Fix for issue 168 * added tax entries for bill * updated referenced versions for travis and composer to 8.1 * added description to new methods * updated set description for primaryEmailAddress * bump version 3.1.0 to 4.0.0 * corrected version bump from 4.0.0 to 3.2.0 * updated supported versions of php * remove .travis.yml * updated doxygen related files Co-authored-by: Ben Hardin <[email protected]>
- Loading branch information
1 parent
c1cb79c
commit 4a767c3
Showing
27 changed files
with
617 additions
and
176 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
73 changes: 73 additions & 0 deletions
73
src/Intacct/Functions/AccountsPayable/AbstractBillLineTaxEntries.php
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,73 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright 2021 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. | ||
*/ | ||
|
||
namespace Intacct\Functions\AccountsPayable; | ||
|
||
use Intacct\Functions\AbstractFunction; | ||
use Intacct\Functions\Traits\CustomFieldsTrait; | ||
use Intacct\Xml\XMLWriter; | ||
|
||
abstract class AbstractBillLineTaxEntries extends \Intacct\Functions\AbstractFunction | ||
{ | ||
|
||
use CustomFieldsTrait; | ||
|
||
protected $taxId; | ||
protected $taxValue; | ||
|
||
/** | ||
* Get Tax Id | ||
* | ||
* @return string | ||
*/ | ||
public function getTaxId() | ||
{ | ||
return $this->taxId; | ||
} | ||
|
||
/** | ||
* Set Tax Id | ||
* | ||
* @param string $taxId | ||
*/ | ||
public function setTaxId($taxId): void | ||
{ | ||
$this->taxId = $taxId; | ||
} | ||
|
||
/** | ||
* Get Tax Value | ||
* | ||
* @return float|string | ||
*/ | ||
public function getTaxValue() | ||
{ | ||
return $this->taxValue; | ||
} | ||
|
||
/** | ||
* Set Tax Value | ||
* | ||
* @param float|string $taxValue | ||
*/ | ||
public function setTaxValue($taxValue): void | ||
{ | ||
$this->taxValue = $taxValue; | ||
} | ||
|
||
abstract public function writeXml(XMLWriter &$xml); | ||
} |
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
37 changes: 37 additions & 0 deletions
37
src/Intacct/Functions/AccountsPayable/BillLineTaxEntriesCreate.php
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,37 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright 2021 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. | ||
*/ | ||
|
||
namespace Intacct\Functions\AccountsPayable; | ||
|
||
use Intacct\Xml\XMLWriter; | ||
|
||
/** | ||
* Create a new accounts payable bill tax entries line record | ||
*/ | ||
class BillLineTaxEntriesCreate extends AbstractBillLineTaxEntries | ||
{ | ||
|
||
public function writeXml(XMLWriter &$xml) | ||
{ | ||
$xml->startElement('taxentry'); | ||
|
||
$xml->writeElement('detailid', $this->getTaxId()); | ||
$xml->writeElement('trx_tax', $this->getTaxValue()); | ||
|
||
$xml->endElement(); | ||
} | ||
} |
Oops, something went wrong.