Esempio n. 1
0
/**
* Gets ID of Klarna part canceled state
*
* @return Array $statusArray  Status
*/
function piKlarnaGetAllStatusIds() {
    $statusArray=Array(
    	'pending' => piKlarnaGetPendingStatusId(),
        'accepted' => piKlarnaGetAcceptedStatusId(),
        'declined' => piKlarnaGetDeclinedStatusId(),
        'partSent' => piKlarnaGetPartReservedStatusId(),
    	'completeSent' => piKlarnaGetCompleteReservedStatusId(),
    	'partCanceled' => piKlarnaGetPartCanceledStatusId(),
    	'completeCanceled' => piKlarnaGetCompleteCancelStatusId(),
    	'partReturned' => piKlarnaGetPartReturnStatusId(),
    	'completeReturned' => piKlarnaGetCompleteReturnStatusId(),
    );
    return $statusArray;
}
 /**
  * Sets status to pending
  */
 public function setPendingStatus()
 {
     $cleared=piKlarnaGetPendingStatusId();
     $sql = "UPDATE s_order SET cleared = ? WHERE ordernumber = ?";
     Shopware()->Db()->query($sql, array((int)$cleared, $this->ordernumber));
 }