mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-11 07:08:42 +00:00
fix version and bugs
This commit is contained in:
parent
eaa00e9625
commit
548a4aab7b
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
* Admin class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
* Media class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Media
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
* @package Modules\Media
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -23,7 +23,7 @@ use phpOMS\Message\Http\HttpResponse;
|
|||
* Media class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
* Navigation class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
* Tag class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -22,7 +22,7 @@ use phpOMS\DataStorage\Database\Schema\Builder;
|
|||
* WarehouseManagement class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Application\ApplicationAbstract;
|
|||
* Workflow class.
|
||||
*
|
||||
* @package Modules\Billing\Admin\Install
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -29,7 +29,7 @@ use phpOMS\Module\ModuleInfo;
|
|||
* Installer class.
|
||||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Module\StatusAbstract;
|
|||
* Status class.
|
||||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Module\UninstallerAbstract;
|
|||
* Uninstaller class.
|
||||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Module\UpdaterAbstract;
|
|||
* Updater class.
|
||||
*
|
||||
* @package Modules\Billing\Admin
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -31,7 +31,7 @@ use phpOMS\Message\ResponseAbstract;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -69,7 +69,7 @@ use phpOMS\Views\View;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -30,7 +30,7 @@ use phpOMS\Message\ResponseAbstract;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -30,7 +30,7 @@ use phpOMS\Message\ResponseAbstract;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -40,7 +40,7 @@ use phpOMS\Stdlib\Base\FloatInt;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -33,7 +33,7 @@ use phpOMS\System\SystemUtils;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -38,7 +38,7 @@ use phpOMS\Stdlib\Base\Address;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -43,7 +43,7 @@ use phpOMS\Views\View;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -41,7 +41,7 @@ use phpOMS\Views\View;
|
|||
* Billing controller class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
@ -126,16 +126,14 @@ final class CliController extends Controller
|
|||
->where('attributes/type/name', ['bill_match_pattern', 'bill_date_format'], 'IN')
|
||||
->executeGetArray();
|
||||
|
||||
$supplierId = $this->matchSupplier($content, $suppliers);
|
||||
$bill->supplier = new NullSupplier($supplierId);
|
||||
$supplier = $suppliers[$supplierId] ?? new NullSupplier();
|
||||
$bill->supplier = this->matchSupplier($content, $suppliers);
|
||||
|
||||
if ($supplier->id !== 0) {
|
||||
$bill->billTo = $supplier->account->name1;
|
||||
$bill->billAddress = $supplier->mainAddress->address;
|
||||
$bill->billCity = $supplier->mainAddress->city;
|
||||
$bill->billZip = $supplier->mainAddress->postal;
|
||||
$bill->billCountry = $supplier->mainAddress->country;
|
||||
if ($bill->supplier->id !== 0) {
|
||||
$bill->billTo = $bill->supplier->account->name1;
|
||||
$bill->billAddress = $bill->supplier->mainAddress->address;
|
||||
$bill->billCity = $bill->supplier->mainAddress->city;
|
||||
$bill->billZip = $bill->supplier->mainAddress->postal;
|
||||
$bill->billCountry = $bill->supplier->mainAddress->country;
|
||||
} else {
|
||||
$bill->billCountry = InvoiceRecognition::findCountry($lines, $identifiers, $language);
|
||||
}
|
||||
|
|
@ -176,13 +174,13 @@ final class CliController extends Controller
|
|||
|
||||
/* Date */
|
||||
$billDateTemp = InvoiceRecognition::findBillDate($lines, $identifiers['bill_date'][$language]);
|
||||
$billDate = InvoiceRecognition::parseDate($billDateTemp, $identifiers['date_format'], $supplier->getAttribute('bill_date_format')->value->valueStr ?? '');
|
||||
$billDate = InvoiceRecognition::parseDate($billDateTemp, $identifiers['date_format'], $bill->supplier->getAttribute('bill_date_format')->value->valueStr ?? '');
|
||||
|
||||
$bill->billDate = $billDate;
|
||||
|
||||
/* Due */
|
||||
$billDueTemp = InvoiceRecognition::findBillDue($lines, $identifiers['bill_due'][$language]);
|
||||
$billDue = InvoiceRecognition::parseDate($billDueTemp, $identifiers['date_format'], $supplier->getAttribute('bill_date_format')->value->valueStr ?? '');
|
||||
$billDue = InvoiceRecognition::parseDate($billDueTemp, $identifiers['date_format'], $bill->supplier->getAttribute('bill_date_format')->value->valueStr ?? '');
|
||||
// @todo implement multiple due dates for bills
|
||||
|
||||
/* Total */
|
||||
|
|
@ -232,7 +230,6 @@ final class CliController extends Controller
|
|||
/* Item lines */
|
||||
$itemLines = InvoiceRecognition::findBillItemLines($lines, $identifiers['item_table'][$language]);
|
||||
|
||||
// @todo Try to find item from item database
|
||||
// @todo Some of the element value setting is unnecessary as it happens also in the recalculatePrices()
|
||||
// Same goes for the bill element creations further down below
|
||||
if (empty($bill->elements)) {
|
||||
|
|
@ -246,7 +243,25 @@ final class CliController extends Controller
|
|||
$billElement->taxR->value = $taxRates;
|
||||
|
||||
if (isset($itemLine['description'])) {
|
||||
$billElement->itemName = \trim($itemLine['description']);
|
||||
$description = \trim($itemLine['description']);
|
||||
$item = new NullItem();
|
||||
|
||||
if ($bill->supplier->id !== 0) {
|
||||
$possibleItems = PriceMapper::getAll()
|
||||
->with('item')
|
||||
->with('item/l11n')
|
||||
->where('supplier', $bill->supplier->id)
|
||||
|
||||
$item = $this->matchItem($content, $items);
|
||||
}
|
||||
|
||||
if ($item->id !== 0) {
|
||||
$billElement->item = $item;
|
||||
$billElement->itemNumber = $item->number;
|
||||
$billElement->itemName = $item->getL11n('name1')->content;
|
||||
} else {
|
||||
$billElement->itemName = \trim($itemLine['description']);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($itemLine['quantity'])) {
|
||||
|
|
@ -455,19 +470,19 @@ final class CliController extends Controller
|
|||
* @param string $content Content to analyze
|
||||
* @param Supplier[] $suppliers Suppliers
|
||||
*
|
||||
* @return int
|
||||
* @return Supplier
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function matchSupplier(string $content, array $suppliers) : int
|
||||
private function matchSupplier(string $content, array $suppliers) : Supplier
|
||||
{
|
||||
// bill_match_pattern
|
||||
foreach ($suppliers as $supplier) {
|
||||
// @todo consider to support regex?
|
||||
// @question consider to support regex?
|
||||
if ((!empty($supplier->getAttribute('bill_match_pattern')->value->valueStr)
|
||||
&& \stripos($content, $supplier->getAttribute('bill_match_pattern')->value->valueStr) !== false)
|
||||
) {
|
||||
return $supplier->id;
|
||||
return $supplier;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -477,7 +492,7 @@ final class CliController extends Controller
|
|||
$ibans = $supplier->getPaymentsByType(PaymentType::SWIFT);
|
||||
foreach ($ibans as $iban) {
|
||||
if (\stripos($content, $iban->content2) !== false) {
|
||||
return $supplier->id;
|
||||
return $supplier;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -492,10 +507,48 @@ final class CliController extends Controller
|
|||
&& \stripos($content, $supplier->mainAddress->address) !== false)
|
||||
)
|
||||
) {
|
||||
return $supplier->id;
|
||||
return $supplier;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
return new NullSupplier();
|
||||
}
|
||||
|
||||
/**
|
||||
* Find possible item id
|
||||
*
|
||||
* Priorities:
|
||||
* 1. bill_match_pattern
|
||||
* 2. name1 + name2
|
||||
*
|
||||
* @param string $content Content to analyze
|
||||
* @param Item[] $items Items
|
||||
*
|
||||
* @return Item
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function matchItem(string $content, array $items) : Item
|
||||
{
|
||||
// bill_match_pattern
|
||||
foreach ($items as $item) {
|
||||
// @question consider to support regex?
|
||||
if ((!empty($item->getAttribute('bill_match_pattern')->value->valueStr)
|
||||
&& \stripos($content, $item->getAttribute('bill_match_pattern')->value->valueStr) !== false)
|
||||
) {
|
||||
return $item;
|
||||
}
|
||||
}
|
||||
|
||||
// name1 + name2
|
||||
foreach ($items as $item) {
|
||||
if (\stripos($content, $item->getL11n('name1')->content) !== false
|
||||
&& \stripos($content, $item->getL11n('name2')->content) !== false
|
||||
) {
|
||||
return $item;
|
||||
}
|
||||
}
|
||||
|
||||
return new NullItem();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Module\WebInterface;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -3,3 +3,4 @@
|
|||
* [Bill]({%}&page=Help/bill)
|
||||
* [Bill Types]({%}&page=Help/bill_types)
|
||||
* [Taxes]({%}&page=Help/taxes)
|
||||
* [Invoice Recognition]({%}&page=Help/invoice_recognition)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,11 @@ The target group for this module is the sales and purchase department.
|
|||
|
||||
# Setup
|
||||
|
||||
This module doesn't have any additional setup requirements.
|
||||
If you want to use parts of the automatic invoice recognition for supplier invoices, the following tools must be installed on the server:
|
||||
|
||||
* [pdftotext](https://www.xpdfreader.com/pdftotext-man.html) (extract text from PDFs)
|
||||
* [pdftoppm](https://www.xpdfreader.com/pdftoppm-man.html) (turn pdf to image if text cannot be read from PDF)
|
||||
* [tesseract-ocr](https://tesseract-ocr.github.io/tessdoc/Downloads.html) (text recognition from images)
|
||||
|
||||
# Features
|
||||
|
||||
|
|
|
|||
19
Docs/Help/en/invoice_recognition.md
Normal file
19
Docs/Help/en/invoice_recognition.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Invoice recognition
|
||||
|
||||
When you upload a invoice the application will automatically try to recognize as many aspects of the invoice as possible using the supplier and item information you provide in the [Supplier Management]({/}?id=SupplierManagement) and [Item Management]({/}?id=ItemManagement).
|
||||
|
||||
## Suppliers
|
||||
|
||||
Even though the application tries to automatically match the supplier against the suppliers in the datbase using various techniques it may be necessary to provide additional information to improve the matching process.
|
||||
|
||||
If you open a supplier you can define the attribute **Bill match pattern** (`bill_match_pattern`) where you can store a unique text identifier for this supplier that appears on all of his invoices. This text identifier will then be used to match invoices against this supplier.
|
||||
|
||||
Examples of such identifiers can be telephone numbers, an email address that is printed on the invoice or the name of the CEO.
|
||||
|
||||
> By default the matching algorithm will use the supplier name, supplier address and banking information (e.g. IBAN)
|
||||
|
||||
## Items
|
||||
|
||||
Items are recognized by their `name1` and `name2` localization (both must match). The matching process also only consideres items that have a price defined from the respective supplier. That price can be 0 though.
|
||||
|
||||
If the item name on the supplier invoice is different from your `name1` and `name2` defined name you can define the item attribute **Bill match pattern** (`bill_match_pattern`) where you can store a text identifier/name for this specific item. This text identifier will then be used to match the supplier item name against your items.
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Bill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11n;
|
|||
* Bill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Bill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11n;
|
|||
* Bill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Bill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Attribute
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -28,7 +28,7 @@ use phpOMS\Stdlib\Base\FloatInt;
|
|||
* Bill class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -26,7 +26,7 @@ use phpOMS\Stdlib\Base\SmartDateTime;
|
|||
* Bill class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -23,7 +23,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Billelement mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -29,7 +29,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* WARNING: This mapper may use a trigger to update the sequence number on insert.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Status for external references
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Bill status enum.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Bill transfer type enum.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -22,7 +22,7 @@ use phpOMS\Localization\ISO639x1Enum;
|
|||
* Bill type enum.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11n;
|
|||
* Bill type mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Billing mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -29,7 +29,7 @@ use phpOMS\Validation\Finance\IbanEnum;
|
|||
* Bill type enum.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@ namespace Modules\Billing\Models;
|
|||
* Null bill class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@ namespace Modules\Billing\Models;
|
|||
* Null bill element class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@ namespace Modules\Billing\Models;
|
|||
* Null bill type class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@ namespace Modules\Billing\Models;
|
|||
* Null subscription class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11n;
|
|||
* PaymentTermL11n mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11nType;
|
|||
* PaymentTerm mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Permission category enum.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@ namespace Modules\Billing\Models\Price;
|
|||
* Null bill type class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -29,7 +29,7 @@ use phpOMS\Stdlib\Base\FloatInt;
|
|||
* Bill class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -26,7 +26,7 @@ use phpOMS\Localization\Defaults\CountryMapper;
|
|||
* Billing mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Module settings enum.
|
||||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Module settings enum.
|
||||
*
|
||||
* @package Modules\Billing\Models\Price
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -23,7 +23,7 @@ use phpOMS\Stdlib\Base\FloatInt;
|
|||
* PurchaseBill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -23,7 +23,7 @@ use phpOMS\Stdlib\Base\FloatInt;
|
|||
* SalesBill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Module settings enum.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11n;
|
|||
* ShippingTermL11n mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -21,7 +21,7 @@ use phpOMS\Localization\BaseStringL11nType;
|
|||
* ShippingTerm mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\DataStorage\Database\Query\Builder;
|
|||
* StockBill mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\FloatInt;
|
|||
* Subscription class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Subscription mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
* Bill transfer type enum.
|
||||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -18,7 +18,7 @@ namespace Modules\Billing\Models\Tax;
|
|||
* Null model
|
||||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -23,7 +23,7 @@ use Modules\Finance\Models\TaxCode;
|
|||
* Billing class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -24,7 +24,7 @@ use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
|
|||
* Billing mapper class.
|
||||
*
|
||||
* @package Modules\Billing\Models\Tax
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ With Karaka you have one partner who can provide many tools and software solutio
|
|||
|
||||
## Requirements
|
||||
|
||||
* PHP 8.2
|
||||
* PHP extension: php8.2-dev php8.2-cli php8.2-common php8.2-intl php8.2-mysql php8.2-pgsql php8.2-xdebug php8.2-opcache php8.2-pdo php8.2-sqlite php8.2-mbstring php8.2-curl php8.2-imap php8.2-bcmath php8.2-zip php8.2-dom php8.2-xml php8.2-phar php8.2-gd php-pear
|
||||
* PHP 8.3
|
||||
* PHP extension: php8.3-dev php8.3-cli php8.3-common php8.3-intl php8.3-mysql php8.3-pgsql php8.3-xdebug php8.3-opcache php8.3-pdo php8.3-sqlite php8.3-mbstring php8.3-curl php8.3-imap php8.3-bcmath php8.3-zip php8.3-dom php8.3-xml php8.3-phar php8.3-gd php-pear
|
||||
* apache2 (recommended) or nginx
|
||||
* mysql-server (recommended) or postgresql postgresql-contrib
|
||||
* Tools: tesseract-ocr, pdftotext, pdftoppm
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Localization
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Localization
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Localization
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Localization
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Accounting
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Accounting
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\ItemManagement
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\ItemManagement
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Localization
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Localization
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules/tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
@ -20,7 +20,7 @@ namespace Modules\Billing\tests;
|
|||
* Autoloader class.
|
||||
*
|
||||
* @package tests
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @link https://jingga.app
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package Modules\Billing\tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* @package tests
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 2.0
|
||||
* @license OMS License 2.2
|
||||
* @version 1.0.0
|
||||
* @link https://jingga.app
|
||||
*/
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user