Changeset 2617700
- Timestamp:
- 10/21/2021 10:20:43 AM (4 years ago)
- Location:
- drivefx-woocommerce/trunk
- Files:
-
- 4 edited
-
PHCLibrary/customers.php (modified) (2 diffs)
-
PHCLibrary/utils.php (modified) (2 diffs)
-
class.DriveFxWoocommerce.php (modified) (3 diffs)
-
settings/backend.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
drivefx-woocommerce/trunk/PHCLibrary/customers.php
r2607350 r2617700 273 273 } 274 274 } 275 276 275 # Save Instance in Software PHC 277 276 $paramsSaveResponse = $this->utils_services->paramsSave($ch, $credentials, 'ClWS', $response); … … 365 364 $paramsSaveResponse = $this->utils_services->paramsSave($ch, $credentials, 'ClWS', $response); 366 365 367 $this->logs->writeFileLog('ClUpdate Save:', $paramsSaveResponse);366 //$this->logs->writeFileLog('ClUpdate Save:', $paramsSaveResponse); 368 367 369 368 if (curl_error($ch)) { -
drivefx-woocommerce/trunk/PHCLibrary/utils.php
r2607350 r2617700 550 550 ********************************************************************/ 551 551 //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){ 553 553 $this->url = $credentials->backendUrl."/REST/reportws/print"; 554 554 … … 558 558 {"bcc":"", 559 559 "body":"'.$body.'", 560 "cc":" ",560 "cc":"'.$emailCC.'", 561 561 "isBodyHtml":false, 562 562 "sendFrom":"'.$emailFrom.'", -
drivefx-woocommerce/trunk/class.DriveFxWoocommerce.php
r2571069 r2617700 31 31 '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' => ''), 32 32 '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 t heclient 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' => ''), 34 34 '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' => ''), 36 37 'typeOfInvoice' => array('label' => 'Type of Invoice Document (PT)', 'type' => 'select', 'required' => false, 'checkboxDescription' => 'Choose the type of invoice document (PT)', 'notice' => ''), 37 38 'typeOf_EU_Invoice' => array('label' => 'Type of Invoice Document (EU)', 'type' => 'select', 'required' => false, 'checkboxDescription' => 'Choose the type of invoice document (EU)', 'notice' => ''), … … 1679 1680 $emailAdmin = $infoAdmin[3]['default']; 1680 1681 ### 1682 $ccEmail = $settings['backend']['emailCC']; 1681 1683 $body = $settings['backend']['emailBody']; 1682 1684 … … 1685 1687 $ch, $credentials, $_SESSION['repstamp'], 1686 1688 $_SESSION['ftstamp'], $_SESSION['emailClient'], 1687 $emailAdmin, $settings['backend']['typeOfInvoice'], '', $body);1689 $emailAdmin, $settings['backend']['typeOfInvoice'], '',$body, $ccEmail); 1688 1690 1689 1691 //$this->logs->writeFileLog('paramsSendReportEmail:', $response); -
drivefx-woocommerce/trunk/settings/backend.php
r2560157 r2617700 179 179 <?php } 180 180 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> 181 194 </td> 182 195 </tr>
Note: See TracChangeset
for help on using the changeset viewer.