Popravek datuma na eracunu

This commit is contained in:
pero1203 2021-02-24 17:46:29 +01:00
parent 1e6db51ebc
commit f046a24d46

View File

@ -21,7 +21,7 @@ function racunIzPredracuna($api, $podatki, $proformaId, $lang='si', $eracun=fals
$argumentiProforma = array(
"id" => $proformaId,
"date_sent" => date("d.m.Y"),
"date_to_pay" => ($eracun) ? date("d.m.Y", strtotime('-30 days')) : date("d.m.Y"),
"date_to_pay" => ($eracun) ? date("d.m.Y", strtotime('+30 days')) : date("d.m.Y"),
"date_served" => date("d.m.Y",strtotime($podatki['datum']))
);