You need to add this code to the agc/vicidial.php file:
1- Add this variable around line 4708
var source = null
| <?php | |
| function extractTotalAPagar(string $text): ?array | |
| { | |
| $norm = mb_strtolower(removeAccents($text)); | |
| // 1) Same-line: "Total a pagar: RD$ 1,234.56" or "TOTAL A PAGAR 1.234,56" | |
| $patternSameLine = '/total\s*a\s*pagar[^\S\r\n]*[:\-]?[^\S\r\n]*([a-z]{0,3}\$)?[^\S\r\n]*([\d\.\,\s]+)\b/u'; | |
| if (preg_match($patternSameLine, $norm, $m, PREG_OFFSET_CAPTURE)) { | |
| $raw = trim(matchRawSlice($text, $m[1][1], $m[2][1] + strlen($m[2][0]) - $m[1][1])); |
| #!/bin/bash | |
| export VITO_VERSION="2.x" | |
| export DEBIAN_FRONTEND=noninteractive | |
| export NEEDRESTART_MODE=a | |
| if [[ -z "${V_PASSWORD}" ]]; then | |
| export V_PASSWORD=$(openssl rand -base64 12) | |
| fi |
| <?php | |
| namespace App\Extension\Paypal\Traits; | |
| use Carbon\Carbon; | |
| trait Filters | |
| { | |
| /** | |
| * @var array |
| <?php | |
| enum Grade: string | |
| { | |
| case PASS = 'pass'; | |
| case FAIL = 'fail'; | |
| case A = 'A'; | |
| case F = 'F'; | |
| case INVALID = 'Invalid grade!\n'; |
| class Queue { | |
| constructor() { | |
| this.list = [] | |
| this.head = 0 | |
| } | |
| push(e) { this.list.push(e) } | |
| pop() { return this.list[this.head++] } | |
| empty() { return this.list.length == this.head } | |
| } |
| /** | |
| * Once this scipt is executed it will connect to the local port you have assigned to | |
| * Asterisk (default: 5038) and send an authentication request. If successfull, it will | |
| * send a second request to originate your call. | |
| * | |
| * The internal SIP line $internalPhoneline will be dialed, and when picked up the | |
| * $target phone will be dialed using your outbound calls context ($context). | |
| * | |
| * Of course, you can modify the commands sent to the asterisk manager interface to suit your needs. | |
| * you can find more about the available options at: |
| /****************************************************************************** | |
| Online C++ Compiler. | |
| Code, Compile, Run and Debug C++ program online. | |
| Write your code in this editor and press "Run" button to compile and execute it. | |
| *******************************************************************************/ | |
| // Example program | |
| #include <iostream> |
| #include <stdio.h> | |
| #include <conio.c> | |
| /* | |
| Elabore un algoritmo y un programa que permite la entrada de la cantidad de articulo | |
| comprado y la descrpcion de dicho articulo, el sudtotal, itbis y monto a pagar tomando | |
| encuenta que el precio sera 10.20 y el itbis sera 16%. | |
| El Algoritmo: | |
| P1: Inicio |
| function formatCedulaNumber(str) { | |
| if (str.length < 3 && str.length < 11) { | |
| return str; | |
| } | |
| if (str.length === 3) { | |
| return str + '-'; | |
| } | |
| if (str.length === 11) { |