mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-17 16:58:41 +00:00
test fixes
This commit is contained in:
parent
02961e7a87
commit
8ada52c50c
|
|
@ -84,7 +84,13 @@ class Bill implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public int $status = BillStatus::DRAFT;
|
public int $status = BillStatus::DRAFT;
|
||||||
|
|
||||||
private int $paymentStatus = BillPaymentStatus::UNPAID;
|
/**
|
||||||
|
* Bill payment status
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public int $paymentStatus = BillPaymentStatus::UNPAID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bill created at.
|
* Bill created at.
|
||||||
|
|
|
||||||
|
|
@ -13,30 +13,41 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
return ['Billing' => [
|
return ['Billing' => [
|
||||||
|
'Amount' => 'Betrag',
|
||||||
|
'Billing' => 'Rechnungsstellung',
|
||||||
|
'CreateBill' => 'Erstelle Rechnung',
|
||||||
|
'Archive' => 'Archiev',
|
||||||
|
'Email' => 'Email',
|
||||||
|
'PazmentPlan' => 'Zahlplan',
|
||||||
|
'Types' => 'Typen',
|
||||||
|
'Original' => 'Original',
|
||||||
'Address' => 'Adresse',
|
'Address' => 'Adresse',
|
||||||
'Addresses' => 'Adressen',
|
'Addresses' => 'Adressen',
|
||||||
'Africa' => '#VALUE!',
|
'Africa' => 'Afrika',
|
||||||
|
'Africa' => 'Africa',
|
||||||
|
'Currency' => 'Währung',
|
||||||
|
'Language' => 'Sprache',
|
||||||
'AlreadyPaid' => 'Bereits bezahlt',
|
'AlreadyPaid' => 'Bereits bezahlt',
|
||||||
'America' => '#VALUE!',
|
'America' => 'Amerika',
|
||||||
'Analyse' => '#VALUE!',
|
'Analyse' => 'Analyse',
|
||||||
'Articles' => '#VALUE!',
|
'Articles' => 'Artikel',
|
||||||
'Asia' => '#VALUE!',
|
'Asia' => 'Asien',
|
||||||
'Attribute' => '#VALUE!',
|
'Attribute' => 'Attribute',
|
||||||
'BaseTime' => '#VALUE!',
|
'BaseTime' => 'Basiszeit',
|
||||||
'Bills' => 'Rechnungen',
|
'Bills' => 'Rechnungen',
|
||||||
'Bonus' => 'Bonus',
|
'Bonus' => 'Bonus',
|
||||||
'CIS' => '#VALUE!',
|
'CIS' => 'CIS',
|
||||||
'Cashback' => 'Kennzeichnen',
|
'Cashback' => 'Kennzeichnen',
|
||||||
'City' => 'Stadt',
|
'City' => 'Stadt',
|
||||||
'Client' => 'Klient',
|
'Client' => 'Klient',
|
||||||
'ClientID' => 'Kunden ID',
|
'ClientID' => 'Kunden ID',
|
||||||
'ComparisonTime' => '#VALUE!',
|
'ComparisonTime' => 'Vergleichszeit',
|
||||||
'Confirmation' => 'Bestätigung',
|
'Confirmation' => 'Bestätigung',
|
||||||
'Country' => 'Land',
|
'Country' => 'Land',
|
||||||
'Created' => 'Erstellt',
|
'Created' => 'Erstellt',
|
||||||
'CreditCard' => 'Kreditkarte',
|
'CreditCard' => 'Kreditkarte',
|
||||||
'CreditNote' => 'Gutschrift',
|
'CreditNote' => 'Gutschrift',
|
||||||
'Customers' => '#VALUE!',
|
'Customers' => 'Kunden',
|
||||||
'Date' => 'Datum',
|
'Date' => 'Datum',
|
||||||
'Delivery' => 'Die Zustellung',
|
'Delivery' => 'Die Zustellung',
|
||||||
'DeliveryNote' => 'Lieferschein',
|
'DeliveryNote' => 'Lieferschein',
|
||||||
|
|
@ -44,10 +55,10 @@ return ['Billing' => [
|
||||||
'Discount' => 'Rabatt',
|
'Discount' => 'Rabatt',
|
||||||
'DiscountP' => 'Rabatt %',
|
'DiscountP' => 'Rabatt %',
|
||||||
'Due' => 'Fällig',
|
'Due' => 'Fällig',
|
||||||
'Europe' => '#VALUE!',
|
'Europe' => 'Europa',
|
||||||
'Filter' => '#VALUE!',
|
'Filter' => 'Filter',
|
||||||
'Freightage' => 'Fracht',
|
'Freightage' => 'Fracht',
|
||||||
'General' => '#VALUE!',
|
'General' => 'Allgemein',
|
||||||
'Gross' => 'Grob',
|
'Gross' => 'Grob',
|
||||||
'Invoice' => 'Rechnung',
|
'Invoice' => 'Rechnung',
|
||||||
'Invoices' => 'Rechnungen',
|
'Invoices' => 'Rechnungen',
|
||||||
|
|
@ -60,7 +71,7 @@ return ['Billing' => [
|
||||||
'Name' => 'Name',
|
'Name' => 'Name',
|
||||||
'Net' => 'Netz',
|
'Net' => 'Netz',
|
||||||
'Offer' => 'Angebot',
|
'Offer' => 'Angebot',
|
||||||
'Other' => '#VALUE!',
|
'Other' => 'Sonstige',
|
||||||
'Payment' => 'Zahlung',
|
'Payment' => 'Zahlung',
|
||||||
'Postal' => 'Post',
|
'Postal' => 'Post',
|
||||||
'Prepaid' => 'Vorausbezahlt',
|
'Prepaid' => 'Vorausbezahlt',
|
||||||
|
|
@ -69,9 +80,9 @@ return ['Billing' => [
|
||||||
'Profit' => 'Profitieren',
|
'Profit' => 'Profitieren',
|
||||||
'Quantity' => 'Menge',
|
'Quantity' => 'Menge',
|
||||||
'Recipient' => 'Empfänger',
|
'Recipient' => 'Empfänger',
|
||||||
'Region' => '#VALUE!',
|
'Region' => 'Region',
|
||||||
'Rep' => '#VALUE!',
|
'Rep' => 'Vertreter',
|
||||||
'Sales' => '#VALUE!',
|
'Sales' => 'Umsatz',
|
||||||
'Select' => 'Wählen',
|
'Select' => 'Wählen',
|
||||||
'Shipment' => 'Sendung',
|
'Shipment' => 'Sendung',
|
||||||
'Source' => 'Quelle',
|
'Source' => 'Quelle',
|
||||||
|
|
@ -82,7 +93,7 @@ return ['Billing' => [
|
||||||
'Total' => 'Gesamt',
|
'Total' => 'Gesamt',
|
||||||
'Type' => 'Typ',
|
'Type' => 'Typ',
|
||||||
'Upload' => 'Hochladen',
|
'Upload' => 'Hochladen',
|
||||||
'Value' => '#VALUE!',
|
'Value' => 'Wert',
|
||||||
'Variation' => 'Variation',
|
'Variation' => 'Variation',
|
||||||
'Zip' => 'Reißverschluss',
|
'Zip' => 'Reißverschluss',
|
||||||
]];
|
]];
|
||||||
|
|
|
||||||
16
Theme/Cli/Lang/de.lang.php
Normal file
16
Theme/Cli/Lang/de.lang.php
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Jingga
|
||||||
|
*
|
||||||
|
* PHP Version 8.1
|
||||||
|
*
|
||||||
|
* @package Modules\Localization
|
||||||
|
* @copyright Dennis Eichhorn
|
||||||
|
* @license OMS License 2.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link https://jingga.app
|
||||||
|
*/
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
return ['Billing' => [
|
||||||
|
]];
|
||||||
|
|
@ -48,13 +48,13 @@ final class BillTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals('', $this->bill->info);
|
self::assertEquals('', $this->bill->info);
|
||||||
self::assertInstanceOf('\Modules\Billing\Models\NullBillType', $this->bill->type);
|
self::assertInstanceOf('\Modules\Billing\Models\NullBillType', $this->bill->type);
|
||||||
self::assertInstanceOf('\DateTimeImmutable', $this->bill->createdAt);
|
self::assertInstanceOf('\DateTimeImmutable', $this->bill->createdAt);
|
||||||
self::assertInstanceOf('\DateTime', $this->bill->performanceDate);
|
self::assertEquals(null, $this->bill->performanceDate);
|
||||||
self::assertNull($this->bill->send);
|
self::assertNull($this->bill->send);
|
||||||
self::assertNull($this->bill->client);
|
self::assertNull($this->bill->client);
|
||||||
self::assertNull($this->bill->supplier);
|
self::assertNull($this->bill->supplier);
|
||||||
self::assertEquals([], $this->bill->getVouchers());
|
self::assertEquals([], $this->bill->getVouchers());
|
||||||
self::assertEquals([], $this->bill->getTrackings());
|
self::assertEquals([], $this->bill->getTrackings());
|
||||||
self::assertEquals([], $this->bill->getMediaByType(0));
|
self::assertEquals([], $this->bill->getFileByType(0));
|
||||||
|
|
||||||
self::assertEquals('', $this->bill->shipTo);
|
self::assertEquals('', $this->bill->shipTo);
|
||||||
self::assertEquals('', $this->bill->shipFAO);
|
self::assertEquals('', $this->bill->shipFAO);
|
||||||
|
|
@ -70,14 +70,14 @@ final class BillTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertEquals('', $this->bill->billZip);
|
self::assertEquals('', $this->bill->billZip);
|
||||||
self::assertEquals('', $this->bill->billCountry);
|
self::assertEquals('', $this->bill->billCountry);
|
||||||
|
|
||||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->bill->netSales);
|
self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->netSales);
|
||||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->bill->grossSales);
|
self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->grossSales);
|
||||||
|
|
||||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->bill->netProfit);
|
self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->netProfit);
|
||||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->bill->grossProfit);
|
self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->grossProfit);
|
||||||
|
|
||||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->bill->netCosts);
|
self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->netCosts);
|
||||||
self::assertInstanceOf('\phpOMS\Localization\Money', $this->bill->grossCosts);
|
self::assertInstanceOf('\phpOMS\Stdlib\Base\FloatInt', $this->bill->grossCosts);
|
||||||
|
|
||||||
self::assertEquals(0, $this->bill->payment);
|
self::assertEquals(0, $this->bill->payment);
|
||||||
self::assertEquals('', $this->bill->paymentText);
|
self::assertEquals('', $this->bill->paymentText);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user