15 array(
'oxdesc',
'oxpayments', 1, 1, 0),
16 array(
'oxaddsum',
'oxpayments', 1, 0, 0),
17 array(
'oxaddsumtype',
'oxpayments', 0, 0, 0),
18 array(
'oxid',
'oxpayments', 0, 0, 1)
20 'container2' => array(
21 array(
'oxdesc',
'oxpayments', 1, 1, 0),
22 array(
'oxaddsum',
'oxpayments', 1, 0, 0),
23 array(
'oxaddsumtype',
'oxpayments', 0, 0, 0),
24 array(
'oxid',
'oxobject2payment', 0, 0, 1)
36 $sId = $this->
getConfig()->getRequestParameter(
'oxid');
37 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid');
43 $sQAdd =
" from $sPayTable where 1 ";
45 $sQAdd =
" from oxobject2payment, $sPayTable where oxobject2payment.oxobjectid = " . $oDb->quote($sId);
46 $sQAdd .=
" and oxobject2payment.oxpaymentid = $sPayTable.oxid and oxobject2payment.oxtype = 'oxdelset' ";
49 if ($sSynchId && $sSynchId != $sId) {
50 $sQAdd .=
"and $sPayTable.oxid not in ( select $sPayTable.oxid from oxobject2payment, $sPayTable where oxobject2payment.oxobjectid = " . $oDb->quote($sSynchId);
51 $sQAdd .=
"and oxobject2payment.oxpaymentid = $sPayTable.oxid and oxobject2payment.oxtype = 'oxdelset' ) ";
63 if ($this->
getConfig()->getRequestParameter(
'all')) {
68 } elseif (is_array($aChosenCntr)) {
69 $sQ =
"delete from oxobject2payment where oxobject2payment.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray($aChosenCntr)) .
") ";
80 $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
83 if ($this->
getConfig()->getRequestParameter(
'all')) {
87 if ($soxId && $soxId !=
"-1" && is_array($aChosenSets)) {
89 foreach ($aChosenSets as $sChosenSet) {
91 $sID = $oDb->getOne(
"select oxid from oxobject2payment where oxpaymentid = " . $oDb->quote($sChosenSet) .
" and oxobjectid = " . $oDb->quote($soxId) .
" and oxtype = 'oxdelset'",
false,
false);
92 if (!isset($sID) || !$sID) {
93 $oObject =
oxNew(
'oxbase');
94 $oObject->init(
'oxobject2payment');
95 $oObject->oxobject2payment__oxpaymentid =
new oxField($sChosenSet);
96 $oObject->oxobject2payment__oxobjectid =
new oxField($soxId);
97 $oObject->oxobject2payment__oxtype =
new oxField(
"oxdelset");