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

Commit

Permalink
vychozi hodnoty pro nevyplnene polozky jsou null
Browse files Browse the repository at this point in the history
  • Loading branch information
David Alexa committed Feb 28, 2017
1 parent a8ad73d commit 4735f39
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 = 0;
public $celk_trzba;

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

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

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

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

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

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

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

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

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

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

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

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

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

/** @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 number_format($value, 2, '.', '');
return $value === null ? $value : number_format($value, 2, '.', '');
}

public static function BKP($code) {
Expand Down

0 comments on commit 4735f39

Please sign in to comment.