Skip to content

Instantly share code, notes, and snippets.

@malles
Last active January 2, 2016 04:59
Show Gist options
  • Save malles/8254188 to your computer and use it in GitHub Desktop.
Save malles/8254188 to your computer and use it in GitHub Desktop.
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());
$aFinancieel['inkoopCalcInfo'] = $bixCalc->get('calcInfo');
// pr($bixCalc->aOrderParams);
$this->set('params',$bixCalc->aOrderParams);
$this->set('financieel',$aFinancieel);
$this->set('drukkerijID',$bixCalc->get('drukkerijID'));
$this->set('planoInkoop',$inkoopPrijsInfo->planoPrijs);
$this->set('afwerkInkoop',$inkoopPrijsInfo->afwerkPrijs);
$this->set('orderInkoop',$inkoopPrijsInfo->orderPrijs);
$this->set('cartInkoop',$inkoopPrijsInfo->cartPrijs);
$this->set('nettoInkoop',$inkoopPrijsInfo->orderNetto);
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment