Skip to content

Instantly share code, notes, and snippets.

@malles
malles / csv-import CRM.php
Last active January 4, 2016 00:29
Bewerking adres en genereren willekeurige code.
<?php
//read and convert CSV data
$file = 'Postmailing.csv';
$dataRows = array();
$del = ';';
echo '<pre>';
$csv = implode(';',adres::$csvFields)."\n";
if (($handle = fopen($file, "r")) !== FALSE) {
$i=0;
while ( ($data = fgetcsv($handle, 10000, $del) ) !== FALSE ) {
@malles
malles / cli
Created January 4, 2014 11:44
Een Git Repository creëren via de Command Line
~$ mkdir projectname
~$ cd projectname
~$ git init
~$ touch file1
~$ git add file1
~$ git commit -m 'first commit'
~$ git remote add origin [email protected]:USER/REPO.git
~$ git push origin master
@malles
malles / bixorder.php
Last active January 2, 2016 04:59
calc inkoop
<?php
public function calculateInkoop () {
//inkoop berekenen
$calcParams = array('calcType'=>'inkoop');
$bixCalc = BixTools::getCalcClass($this,$calcParams);
$inkoopPrijsInfo = $bixCalc->calcInkoop();
if (!$inkoopPrijsInfo) {
return $this->setError($bixCalc->getError());
}
$aFinancieel = $this->get('financieel',array());