mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 03:03:49 +00:00
when discounting, let us use negative numbers
This commit is contained in:
@@ -398,7 +398,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$billing_invoice_uuid = uuid();
|
||||
$user_uuid = check_str($_SESSION['user_uuid']);
|
||||
$settled=1;
|
||||
$mc_gross = $destination_sell_current_currency;
|
||||
$mc_gross = -1 * $destination_sell_current_currency;
|
||||
$post_payload = serialize($_POST);
|
||||
$db2->sql = "INSERT INTO v_billing_invoices (billing_invoice_uuid, billing_uuid, payer_uuid, billing_payment_date, settled, amount, debt, post_payload,plugin_used, domain_uuid) VALUES ('$billing_invoice_uuid', '$billing_uuid', '$user_uuid', NOW(), $settled, $mc_gross, $balance, '$post_payload', 'DID $destination_number Assigment', '".$_SESSION['domain_uuid']."' )";
|
||||
$db2->result = $db2->execute();
|
||||
@@ -765,4 +765,4 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user