Revize 592d831c
Přidáno uživatelem Ondřej Fibich před téměř 8 roky(ů)
application/libraries/importers/Txt_Tatra_Banka_Statement_File_Importer.php | ||
---|---|---|
const REGEX_SS = "@SS ?(\d*)@";
|
||
const REGEX_CS = "@KS ?(\d*)@";
|
||
// Current balance
|
||
const REGEX_BALANCE = "@aktualny zostatok:[^0-9]*(\d+,\d{2}) (.+)@";
|
||
const REGEX_BALANCE = "@aktualny zostatok:[^0-9]*((\d+[ ]?)\d+,\d{2}) (.+)@";
|
||
// Message
|
||
const REGEX_MSG = "@Informacia pre prijemcu: (.*)@";
|
||
|
||
... | ... | |
|
||
$hd->from = DateTime::createFromFormat('j.n.Y G:i', $mO[1])->format('Y-m-d H:i:s');
|
||
$hd->to = DateTime::createFromFormat('j.n.Y G:i', $mN[1])->format('Y-m-d H:i:s');
|
||
$hd->closingBalance = floatval(str_replace(',', '.', $mC[1]));
|
||
$hd->closingBalance = floatval(str_replace(array(' ', ','), array('', '.'), $mC[1]));
|
||
|
||
return $hd;
|
||
}
|
Také k dispozici: Unified diff
Fixes #1059: invalid parsing of TXT TB listings for total amount >=1000