Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Revert "vychozi hodnoty pro nevyplnene polozky jsou null" - upstream …
Browse files Browse the repository at this point in the history
…udelal to same

This reverts commit 4735f39.
  • Loading branch information
Amunak committed Apr 5, 2017
1 parent 4735f39 commit e3dc05c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions src/Receipt.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,46 @@ class Receipt {
public $dat_trzby;

/** @var float */
public $celk_trzba;
public $celk_trzba = 0;

/** @var float */
public $zakl_nepodl_dph;
public $zakl_nepodl_dph = 0;

/** @var float */
public $zakl_dan1;
public $zakl_dan1 = 0;

/** @var float */
public $dan1;
public $dan1 = 0;

/** @var float */
public $zakl_dan2;
public $zakl_dan2 = 0;

/** @var float */
public $dan2;
public $dan2 = 0;

/** @var float */
public $zakl_dan3;
public $zakl_dan3 = 0;

/** @var float */
public $dan3;
public $dan3 = 0;

/** @var float */
public $cest_sluz;
public $cest_sluz = 0;

/** @var float */
public $pouzit_zboz1;
public $pouzit_zboz1 = 0;

/** @var float */
public $pouzit_zboz2;
public $pouzit_zboz2 = 0;

/** @var float */
public $pouzit_zboz3;
public $pouzit_zboz3 = 0;

/** @var float */
public $urceno_cerp_zuct;
public $urceno_cerp_zuct = 0;

/** @var float */
public $cerp_zuct;
public $cerp_zuct = 0;

/** @var int */
public $rezim = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class Format {

public static function price($value) {
return $value === null ? $value : number_format($value, 2, '.', '');
return number_format($value, 2, '.', '');
}

public static function BKP($code) {
Expand Down

0 comments on commit e3dc05c

Please sign in to comment.