Plugin Directory

Changeset 2617700


Ignore:
Timestamp:
10/21/2021 10:20:43 AM (4 years ago)
Author:
phcwordpress
Message:

upd 20211021

Location:
drivefx-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • drivefx-woocommerce/trunk/PHCLibrary/customers.php

    r2607350 r2617700  
    273273                }
    274274            }
    275 
    276275            # Save Instance in Software PHC
    277276            $paramsSaveResponse = $this->utils_services->paramsSave($ch, $credentials, 'ClWS', $response);
     
    365364        $paramsSaveResponse = $this->utils_services->paramsSave($ch, $credentials, 'ClWS', $response);
    366365
    367         $this->logs->writeFileLog('ClUpdate Save:', $paramsSaveResponse);
     366        //$this->logs->writeFileLog('ClUpdate Save:', $paramsSaveResponse);
    368367
    369368        if (curl_error($ch)) {
  • drivefx-woocommerce/trunk/PHCLibrary/utils.php

    r2607350 r2617700  
    550550    ********************************************************************/
    551551    //Header tosend Report to Email
    552     public function paramsSendReportEmail($ch, $credentials, $repstamp, $ftstamp, $emailTo, $emailFrom, $docId, $reference, $body){
     552    public function paramsSendReportEmail($ch, $credentials, $repstamp, $ftstamp, $emailTo, $emailFrom, $docId, $reference, $body, $emailCC){
    553553        $this->url = $credentials->backendUrl."/REST/reportws/print";
    554554
     
    558558                                        {"bcc":"",
    559559                                        "body":"'.$body.'",
    560                                         "cc":"",
     560                                        "cc":"'.$emailCC.'",
    561561                                        "isBodyHtml":false,
    562562                                        "sendFrom":"'.$emailFrom.'",
  • drivefx-woocommerce/trunk/class.DriveFxWoocommerce.php

    r2571069 r2617700  
    3131                'dbname'            => array('label' => 'Database Name',                              'type' => 'text',          'required' => false, 'descr' => 'Enter the name of the PHC GO where you want save your information.<br>You can leave this empty if you only work with one company.', 'notice' => ''),
    3232                'createInvoice'     => array('label' => 'Create Orders and Invoices',                 'type' => 'checkbox',      'required' => false, 'checkboxDescription' => 'Create invoices for orders that come in, otherwise only the client is created (recommended).', 'notice' => ''),
    33                 'sendInvoice'       => array('label' => 'Send Invoice',                               'type' => 'checkbox',      'required' => false, 'checkboxDescription' => 'Send the client an e-mail with the order invoice attached', 'notice' => ''),
     33                'sendInvoice'       => array('label' => 'Send Invoice',                               'type' => 'checkbox',      'required' => false, 'checkboxDescription' => 'Send to client an e-mail with the order invoice attached', 'notice' => ''),
    3434                'typeOfReport'      => array('label' => 'Type of Report',                             'type' => 'select',        'required' => false, 'checkboxDescription' => 'Choose the type of report for invoice documents', 'notice' => ''),
    35                 'emailBody'         => array('label' => 'E-mail body content',                        'type' => 'text',          'required' => false, 'descr' => 'Enter the text to be attached to the e-mails sent to the client.', 'notice' => ''),
     35                'emailCC'           => array('label' => 'CC email',                                   'type' => 'text',          'required' => false, 'descr' => 'The CC field allows you to send a copy of the email to any recipient of your choice.', 'notice' => ''),
     36                'emailBody'         => array('label' => 'Email body content',                         'type' => 'text',          'required' => false, 'descr' => 'Enter the text to be attached to the e-mails sent to the client.', 'notice' => ''),
    3637                'typeOfInvoice'     => array('label' => 'Type of Invoice Document (PT)',              'type' => 'select',        'required' => false, 'checkboxDescription' => 'Choose the type of invoice document (PT)', 'notice' => ''),
    3738                'typeOf_EU_Invoice' => array('label' => 'Type of Invoice Document (EU)',              'type' => 'select',        'required' => false, 'checkboxDescription' => 'Choose the type of invoice document (EU)', 'notice' => ''),
     
    16791680                        $emailAdmin = $infoAdmin[3]['default'];
    16801681                        ###
     1682                        $ccEmail = $settings['backend']['emailCC'];
    16811683                        $body = $settings['backend']['emailBody'];
    16821684
     
    16851687                                                            $ch, $credentials, $_SESSION['repstamp'],
    16861688                                                            $_SESSION['ftstamp'], $_SESSION['emailClient'],
    1687                                                             $emailAdmin, $settings['backend']['typeOfInvoice'], '', $body);
     1689                                                            $emailAdmin, $settings['backend']['typeOfInvoice'], '',$body, $ccEmail);
    16881690
    16891691                        //$this->logs->writeFileLog('paramsSendReportEmail:', $response);
  • drivefx-woocommerce/trunk/settings/backend.php

    r2560157 r2617700  
    179179              <?php }
    180180              echo $_SESSION[$id]; ?>
     181            </td>
     182          </tr>
     183          <?php } break;
     184        // CC email
     185        case 'emailCC':
     186          if($settings['backend']['createInvoice'] != '' && $settings['backend']['sendInvoice'] != ''){ ?>
     187          <tr>
     188            <th scope="row">
     189              <label for="<?php echo $id ?>"><?php echo $opts['label'] ?></label>
     190            </th>
     191            <td>
     192              <input class="regular-text" id="<?php echo $id ?>" type="<?php echo $opts['type'] ?>" name="<?php echo $name ?>" value="<?php echo $value ?>">
     193              <p class="description"><?php echo $opts['descr'] ?></p>
    181194            </td>
    182195          </tr>
Note: See TracChangeset for help on using the changeset viewer.