14 array(
'oxdesc',
'oxpayments', 1, 1, 0 ),
15 array(
'oxaddsum',
'oxpayments', 1, 0, 0 ),
16 array(
'oxaddsumtype',
'oxpayments', 0, 0, 0 ),
17 array(
'oxid',
'oxpayments', 0, 0, 1 )
19 'container2' => array(
20 array(
'oxdesc',
'oxpayments', 1, 1, 0 ),
21 array(
'oxaddsum',
'oxpayments', 1, 0, 0 ),
22 array(
'oxaddsumtype',
'oxpayments', 0, 0, 0 ),
23 array(
'oxid',
'oxobject2payment', 0, 0, 1 )
35 $sId = $this->
getConfig()->getRequestParameter(
'oxid' );
36 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid' );
42 $sQAdd =
" from $sPayTable where 1 ";
44 $sQAdd =
" from oxobject2payment, $sPayTable where oxobject2payment.oxobjectid = ".$oDb->quote( $sId );
45 $sQAdd .=
" and oxobject2payment.oxpaymentid = $sPayTable.oxid and oxobject2payment.oxtype = 'oxdelset' ";
48 if ( $sSynchId && $sSynchId != $sId) {
49 $sQAdd .=
"and $sPayTable.oxid not in ( select $sPayTable.oxid from oxobject2payment, $sPayTable where oxobject2payment.oxobjectid = ".$oDb->quote( $sSynchId );
50 $sQAdd .=
"and oxobject2payment.oxpaymentid = $sPayTable.oxid and oxobject2payment.oxtype = 'oxdelset' ) ";
63 $aChosenCntr = $this->
_getActionIds(
'oxobject2payment.oxid' );
64 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
69 } elseif ( is_array( $aChosenCntr ) ) {
70 $sQ =
"delete from oxobject2payment where oxobject2payment.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aChosenCntr ) ) .
") ";
83 $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
86 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
90 if ( $soxId && $soxId !=
"-1" && is_array( $aChosenSets ) ) {
92 foreach ( $aChosenSets as $sChosenSet) {
94 $sID = $oDb->getOne(
"select oxid from oxobject2payment where oxpaymentid = " . $oDb->quote( $sChosenSet ) .
" and oxobjectid = ".$oDb->quote( $soxId ).
" and oxtype = 'oxdelset'",
false,
false);
95 if ( !isset( $sID) || !$sID) {
96 $oObject =
oxNew(
'oxbase' );
97 $oObject->init(
'oxobject2payment' );
98 $oObject->oxobject2payment__oxpaymentid =
new oxField($sChosenSet);
99 $oObject->oxobject2payment__oxobjectid =
new oxField($soxId);
100 $oObject->oxobject2payment__oxtype =
new oxField(
"oxdelset");