-
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.
* Update dependencies and support to 7.4 PHP * Add bionic to Travis config * PHP73 and dependencies * Only test 73 and 74 * Remove PHP 7.4 and update tests * Update dependencies and unit tests * Php7.4 test in Travis * Refactor ApPaymentRequest, Add APPYMT support, Refactor FulfillmentStatus for OETransactionLineCreate, Fix TransactionItemDetail for lotno and serialno * Split date on DeliveryDate for FulfillmentStatus * Refactor for 7.3 php support * Add Timesheet Approve, Decline, and Update support * Update copyright year 2021 * Add PlatformServices methods Include sessionTimestamp and sessionTimeout in responses * Fix clear primary and secondary email #164 * Adjust README for PHP version * Code review updates
- Loading branch information
1 parent
b8188d3
commit 4a93555
Showing
601 changed files
with
5,043 additions
and
3,422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
language: php | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
dist: bionic | ||
|
||
before_script: | ||
- composer self-update | ||
|
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
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
2 changes: 1 addition & 1 deletion
2
src/Intacct/Functions/AccountsPayable/AbstractApAccountLabel.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
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
2 changes: 1 addition & 1 deletion
2
src/Intacct/Functions/AccountsPayable/AbstractApAdjustmentLine.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
2 changes: 1 addition & 1 deletion
2
src/Intacct/Functions/AccountsPayable/AbstractApAdjustmentSummary.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
61 changes: 61 additions & 0 deletions
61
src/Intacct/Functions/AccountsPayable/AbstractApPaymentDetailCredit.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,61 @@ | ||
<?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; | ||
|
||
abstract class AbstractApPaymentDetailCredit | ||
{ | ||
public const DEBIT_MEMO = 'debit memo'; | ||
|
||
public const NEGATIVE_BILL = 'negative bill'; | ||
|
||
public const ADVANCE = 'advance'; | ||
|
||
/** @var int */ | ||
public $recordNo; | ||
|
||
/** @var int */ | ||
public $lineRecordNo; | ||
|
||
/** @var float|int|string */ | ||
public $transactionAmount; | ||
|
||
/** | ||
* @param XMLWriter $xml | ||
*/ | ||
public function writeXml(XMLWriter $xml): void | ||
{ | ||
$xml->writeElement($this->getKeyType(), $this->recordNo, true); | ||
if (isset($this->lineRecordNo)) { | ||
$xml->writeElement($this->getEntryKeyType(), $this->lineRecordNo); | ||
} | ||
if (isset($this->transactionAmount)) { | ||
$xml->writeElement($this->getTransactionType(), $this->transactionAmount); | ||
} | ||
} | ||
|
||
/** @return string */ | ||
abstract protected function getKeyType(): string; | ||
|
||
/** @return string */ | ||
abstract protected function getEntryKeyType(): string; | ||
|
||
/** @return string */ | ||
abstract protected function getTransactionType(): string; | ||
} |
Oops, something went wrong.