Skip to content

Credit Line Cuts ​

Read the historical statement of each scheduled credit-line cut for a company: whether the line was restored, which period it covers, and which movements explain it.

What You Can Do ​

  • Open every cut recorded for a company, including days when the balance was already at the limit
  • See whether a cut restored the line or only closed the period
  • Open the movement list that explains the cut amount
  • Export the company list or a single cut to CSV
  • Open the same detail from a restoration credit in Accounting → Credits

Process flow ​

On cut day the system restores companies whose balance is below the limit. Companies already at the limit still get a period-only statement. Both kinds land on the company cuts list after the details job finishes.

Open full screen

If restoration fails, that company has no new statement that day. If the statement fails after a restore, the line may already be restored; the statement appears when the snapshot finishes.

Getting There ​

The list is company-scoped. There is no global cuts page.

  1. Open the company.
  2. Go to /client/{companyId}/credit-line-cuts.

You need the client-account-table permission, the same one used to read the company account status.

From a restoration credit: Accounting → Credits, open the secondary actions, and choose the cut detail. That opens /accounting/credits/{creditId}/detail. The link appears only when that credit has a statement. Period-only cuts have no credit, so they only appear on the company list.

Common Tasks ​

Read the company cut list ​

  1. Open /client/{companyId}/credit-line-cuts.
  2. Each row is one scheduled cut, newest period_end first.
  3. Cut type is Restoration when a credit was created, or Period only when the balance was already covered (cut_amount is 0).
  4. Source is the previous cut, a new credit-line activation, or a calendar estimate for the first tracked period.
  5. Use Details to open the statement.

Export uses the table CSV control (credit-line-cuts).

Read one statement ​

The detail shows:

  • The period window (start inclusive, end exclusive)
  • Cut type and cut amount
  • Debits, credits, net movements, and the difference
  • Opening balance, balance before the cut, and balance after the cut
  • The movement table (shipments, surcharges, credits). Each amount sits in Abonos or Débitos, like a statement. The other column stays empty, and a debit is shown as a positive number.
  • Saldo registrado, the balance stored on that movement, and Saldo recalculado, the balance rebuilt from the first movement of this cut. The rebuilt value is green when it matches and red when it does not. Nothing is saved.
FigureWhat it isHow it is calculated
Cut typeRestoration or period onlyRestoration when the cut created a credit. Period only when the balance was already at the limit and cut_amount is 0.
Cut amountAmount invoiced to restore the lineLimit at close minus the balance just before the cut.
DebitsEverything that lowered the balance in the periodAbsolute sum of negative movements: each guide (total, insurance, extended zone, import, extra charges, custom key, SMS, WhatsApp) and charge surcharges.
CreditsEverything that raised the balance in the periodSum of positive movements, including refunds and a credit-line increase.
NetCredits minus debitsA negative net means the period consumed more than it credited. The line-increase credit is still inside this number.
DifferenceWhat the cut amount does not explainStored difference is cut amount + net. The screen then subtracts line adjustments. Debits, credits, and net stay unchanged.
StatusPartial or completedPartial when the absolute difference is greater than the tolerance (0.01). Completed when it is within tolerance.
Opening balanceBalance at the close of the previous cutThe previous restoration credit's balance.
Balance before the cutAvailable balance the instant before this creditBalance after the cut minus the cut amount.
Balance after the cutBalance once the line is restoredThe restoration credit's balance, normally the limit. — on a period-only row, which has no credit.

A line adjustment is a surcharge that raises or lowers the limit during the period: a history event MD or CR approved inside the window, or a surcharge whose category is Credit Line. The same surcharge counts once. On this screen the difference is the stored difference minus that signed sum. A $1,000,000 increase that left a $220.30 gap shows a difference of $220.30, and the alert says the adjustment was subtracted. The movement stays in the table, labeled as a line adjustment.

A green difference on a restoration cut means the remaining difference is within tolerance. A period-only difference is always 0 and is not compared to a credit.

Check why a period starts at a credit-line activation ​

A cancelled line that later receives a new approved CR starts a new era. The period starts at that approval time and does not include movements from the old line. Same-era cuts still chain from the previous period_end.

Frequently Asked Questions ​

The list is empty. Did the cron fail? ​

The list only loads for a company URL. /credit-line-cuts without a company id is not a valid page. Also check that manual.sql was applied and that the details job completed.

Why is there a cut with amount 0? ​

The company had an active line (credit_line_limit > 0) and the balance was already at or above the limit. The system still closed the period so the next cut starts there.

Why is balance after the cut empty? ​

Period-only cuts have no restoration credit. The after-cut figure is read from that credit.

Why is the difference much smaller than the credits? ​

A credit-line increase inside the period is a credit, so it stays in Credits and in the net. The difference subtracts that adjustment. The cut amount is still the amount invoiced. Partial means the remainder, after that subtraction, is outside tolerance.

A company was cancelled and later approved again. Why doesn't the period start at the old cut? ​

That is a new era. The latest approved CR after the last cut becomes the period start. Movements from the cancelled line stay in the old statements.

Can a failed statement block restoration for other companies? ​

No. A failed statement for one company does not stop restoration for others.

Envia Admin