Import expense and ledger entries #443 (#588)

* Fix rank importing with PIREP pay #443

* Import ledger information #443

* Uncomment out testing importers

* Import expense log and settings #443

* Formatting
This commit is contained in:
Nabeel S
2020-02-25 14:45:23 -05:00
committed by GitHub
parent 07a75de0bf
commit 14aacdfb75
11 changed files with 251 additions and 6 deletions

View File

@@ -37,6 +37,7 @@ class FinanceService extends Service
* @param string $memo
* @param string $transaction_group
* @param string|array $tag
* @param string $post_date
*
* @throws \Prettus\Validator\Exceptions\ValidatorException
*
@@ -48,7 +49,8 @@ class FinanceService extends Service
$reference,
$memo,
$transaction_group,
$tag
$tag,
$post_date = null
) {
return $this->journalRepo->post(
$journal,
@@ -72,6 +74,7 @@ class FinanceService extends Service
* @param string $memo
* @param string $transaction_group
* @param string|array $tag
* @param string $post_date
*
* @throws \Prettus\Validator\Exceptions\ValidatorException
*
@@ -83,7 +86,8 @@ class FinanceService extends Service
$reference,
$memo,
$transaction_group,
$tag
$tag,
$post_date = null
) {
return $this->journalRepo->post(
$journal,
@@ -91,7 +95,7 @@ class FinanceService extends Service
$amount,
$reference,
$memo,
null,
$post_date,
$transaction_group,
$tag
);

View File

@@ -16,7 +16,9 @@ class Money
public static $subunit_multiplier;
/**
* @param mixed $amount
* Create a new Money instance, passing in the amount in pennies
*
* @param mixed $amount The amount, in pennies
*
* @throws \UnexpectedValueException
* @throws \InvalidArgumentException
@@ -31,7 +33,7 @@ class Money
/**
* Create from a dollar amount
*
* @param mixed $amount
* @param mixed $amount The amount in pennies
*
* @throws \UnexpectedValueException
* @throws \InvalidArgumentException