Files
crm.e5.pl/modules/EcmInvoiceOutOlds/getPaymentDate.php
2024-04-27 09:23:34 +02:00

5 lines
244 B
PHP

<?php
$db = $GLOBALS['db'];
$r=$db->fetchByAssoc($db->query("select days from ecmpaymentconditions where id='".$_REQUEST['id']."'"));
echo date("d.m.Y",@mktime(0,0,0,$_REQUEST['month'],$_REQUEST['day'],$_REQUEST['year'])+3600*24*$r['days']);
?>