Пример #1
0
 public function asList($request)
 {
     switch ($request) {
         case 'InvoiceAddRq':
             if (isset($this->_object['InvoiceLine'])) {
                 $this->_object['InvoiceLineAdd'] = $this->_object['InvoiceLine'];
             }
             if (isset($this->_object['ShippingLine'])) {
                 $this->_object['ShippingLineAdd'] = $this->_object['ShippingLine'];
             }
             if (isset($this->_object['SalesTaxLine'])) {
                 $this->_object['SalesTaxLineAdd'] = $this->_object['SalesTaxLine'];
             }
             if (isset($this->_object['DiscountLine'])) {
                 $this->_object['DiscountLineAdd'] = $this->_object['DiscountLine'];
             }
             break;
         case 'InvoiceModRq':
             if (isset($this->_object['InvoiceLine'])) {
                 $this->_object['InvoiceLineMod'] = $this->_object['InvoiceLine'];
             }
             break;
     }
     return parent::asList($request);
 }
Пример #2
0
 public function asList($request)
 {
     switch ($request) {
         case 'CheckAddRq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineAdd'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineAdd'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineAdd'] = $this->_object['ExpenseLine'];
             }
             if (isset($this->_object['AddCheckToTxn'])) {
                 $this->_object['AddCheckToTxnAdd'] = $this->_object['AddCheckToTxn'];
             }
             break;
         case 'CheckModRq':
             break;
     }
     return parent::asList($request);
 }
Пример #3
0
 public function asList($request)
 {
     switch ($request) {
         case 'SalesOrderAddRq':
             if (isset($this->_object['SalesOrderLine'])) {
                 $this->_object['SalesOrderLineAdd'] = $this->_object['SalesOrderLine'];
             }
             break;
         case 'SalesOrderModRq':
             if (isset($this->_object['SalesOrderLine'])) {
                 $this->_object['SalesOrderLineMod'] = $this->_object['SalesOrderLine'];
             }
             break;
     }
     return parent::asList($request);
 }
Пример #4
0
 public function asList($request)
 {
     switch ($request) {
         case 'BillPaymentCheckAddRq':
             if (isset($this->_object['AppliedToTxn'])) {
                 $this->_object['AppliedToTxnAdd'] = $this->_object['AppliedToTxn'];
             }
             break;
         case 'BillPaymentCheckModRq':
             if (isset($this->_object['AppliedToTxn'])) {
                 $this->_object['AppliedToTxnMod'] = $this->_object['AppliedToTxn'];
             }
             break;
     }
     return parent::asList($request);
 }
Пример #5
0
 public function asList($request)
 {
     switch ($request) {
         case 'BillAddRq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineAdd'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineAdd'] = $this->_object['ExpenseLine'];
             }
             break;
         case 'BillModRq':
             break;
     }
     return parent::asList($request);
 }
Пример #6
0
 public function asList($request)
 {
     switch ($request) {
         case 'DepositAddRq':
             if (isset($this->_object['DepositLine'])) {
                 $this->_object['DepositLineAdd'] = $this->_object['DepositLine'];
             }
             break;
         case 'DepositModRq':
             break;
     }
     return parent::asList($request);
 }
Пример #7
0
 public function asList($request)
 {
     switch ($request) {
         case 'CreditMemoAddRq':
             if (isset($this->_object['CreditMemoLine'])) {
                 $this->_object['CreditMemoLineAdd'] = $this->_object['CreditMemoLine'];
             }
             break;
         case 'CreditMemoModRq':
             if (isset($this->_object['CreditMemoLine'])) {
                 $this->_object['CreditMemoLineMod'] = $this->_object['CreditMemoLine'];
             }
             break;
     }
     return parent::asList($request);
 }
 public function asList($request)
 {
     switch ($request) {
         case QUICKBOOKS_ADD_INVENTORYADJUSTMENT . 'Rq':
             if (isset($this->_object['InventoryAdjustmentLine'])) {
                 $this->_object['InventoryAdjustmentLineAdd'] = $this->_object['InventoryAdjustmentLine'];
             }
             break;
     }
     return parent::asList($request);
 }
Пример #9
0
 public function asList($request)
 {
     switch ($request) {
         case QUICKBOOKS_ADD_RECEIPTITEM . 'Rq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineAdd'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineAdd'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineAdd'] = $this->_object['ExpenseLine'];
             }
             break;
         case QUICKBOOKS_MOD_RECEIPTITEM . 'Rq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineMod'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineMod'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLine'])) {
                 $this->_object['ExpenseLineMod'] = $this->_object['ExpenseLine'];
             }
             break;
         case QUICKBOOKS_QUERY_RECEIPTITEM . 'Rq':
             if (isset($this->_object['ItemLine'])) {
                 $this->_object['ItemLineQuery'] = $this->_object['ItemLine'];
             }
             if (isset($this->_object['ItemGroupLine'])) {
                 $this->_object['ItemGroupLineQuery'] = $this->_object['ItemGroupLine'];
             }
             if (isset($this->_object['ExpenseLIne'])) {
                 $this->_object['ExpenseLineQuery'] = $this->_object['ExpenseLine'];
             }
             break;
     }
     return parent::asList($request);
 }