Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Global Variables
#2
SalesOrder_StatusOnInvoiceSave is resolve, the module of the list to select must be invoice.
Now it works correctly.

But for CobroPago_Invoice_Status_OnPaid, I tried several modules, but could not find the correct one.
Even hardcoded code invoice.php, but when I add payments it still doesn't change the invoice status to Paid

if ($amountDue<=0) {
$newStatus = GlobalVariable::getVariable('CobroPago_Invoice_Status_OnPaid', 'Paid');
if ($newStatus!='DoNotChange') {
$query = "update vtiger_invoice set invoicestatus='{$newStatus}' where invoiceid={$invoiceId}";
$adb->query($query);
if ($context=='Invoice') {
$column_fields['invoicestatus'] = $newStatus;
}
}
}
Reply


Messages In This Thread
Global Variables - jmery24 - 02-05-2021, 01:13 PM
RE: Global Variables - jmery24 - 02-05-2021, 03:11 PM
RE: Global Variables - joebordes - 02-05-2021, 04:37 PM
RE: Global Variables - jmery24 - 02-05-2021, 06:49 PM
RE: Global Variables - joebordes - 02-05-2021, 04:38 PM
RE: Global Variables - joebordes - 02-06-2021, 09:36 AM
RE: Global Variables - jmery24 - 02-06-2021, 04:48 PM
RE: Global Variables - joebordes - 02-06-2021, 05:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)