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

67 lines
1.2 KiB
PHP

<?php
$d="3551/10 371,21
3552/10 1207,23
3553/10 1092,37
3560/10 1745,96
3571/10 557,87
3572/10 2911,19
3574/10 339,8
3575/10 1081,52
3577/10 372,14
3581/10 363,37
3582/10 622,65
3583/10 1012,1
3584/10 663,4
3585/10 361,26
3587/10 952,9
3596/10 893,54
3598/10 558,6
3604/10 456,62
3605/10 1343,44
3614/10 2529,62
3615/10 5634,4
3616/10 3273,71
3620/10 2086,01
3666/10 865,04
3667/10 766,68
3685/10 1297,68
3687/10 1737,53
3688/10 1258,01
FK1008/10 -174,95
FK802/10 -1327,37
3546/10 684,4
3550/10 778,69
3555/10 991,33
3556/10 514,06
3561/10 1149,26
3562/10 1110,45
3603/10 430,3
3610/10 640,52
3612/10 242,09";
/*$d="865/10 -124,93 103,87
878/10 -1,46 3,9
877/10 -149,82 -95,78
207/10 -409,35 -409,36
295/10 -116,2 5,46
867/10 -19,34 27,98
872/10 -8,05 95,79
871/10 -32,99 -3,25
864/10 -119,99 -76,71
873/10 -6,77 22,07
876/10 -64,78 -2,48
875/10 -199,96 -127,84
870/10 -3,66 9,76
869/10 -60,51 47,55
868/10 -74,91 60,17
863/10 -35,99 41,89
874/10 -234,24 47,36";*/
$dd=explode("
",$d);
for($i=0;$i<count($dd);$i++){
$e=explode(" ",$dd[$i]);
if(eregi("FK",$e[0]))$no="FVKOR ".str_replace("FK","",$e[0]);
else $no="FV ".$e[0];
echo "update ecmtransactions_ecminvoiceouts set total=".(float)str_replace(",",".",$e[1])." where document_no like '".$no."';<br>";
}
?>