KamoCRM

Số công việc từ một máy đếm được khóa cho mỗi tổ chức, không bao giờ đếm; thanh toán trên hóa đơn thương mại

Fixkamo-shared-library
Shipped
lúc 08:35 8 tháng 11, 2026 UTC
Author
Kamo
Commit
d100d86

Số lệnh làm việc là COUNT(jobs)+1, vì vậy hai công việc được tăng lên cùng một lúc có thể chia sẻ một, Và công việc từ một đơn đặt hàng trả tiền (ServiceFulfillmentPolicy) thì không có số. ServiceJobNumbers now mints WO-00001… under a PESSIMISTIC_WRITE lock on the org's commerce_document_counter row (DocumentType.SERVICE_JOB, series year 0 — a running Cả hai tạo ra paths use it; createJob is @RetryOnDbConflict for Yugabyte's 40001 on a disputed counter. ux_ service_ job_ org_ number (org_ id, job_ number) là backstop, được áp dụng bởi tay NONCONCURRENTLY sau khi các con số null đã được lấp lại. Một công việc không còn di chuyển đến Invoiced bởi một sự thay đổi trạng thái: Invoiced có nghĩa là một hóa đơn tồn tại, và chỉ khi tạo ra một (InvoicingService) mới đặt một công việc ở đó. CommerceInvoicePayment (commerce_invoice_payments, áp dụng bằng tay) ghi lại mỗi thanh toán đối với một hóa đơn thương mại, do đó các cột AMOUNT_PAID / PAID / PARTIALLY_PAID CommerceInvoiceRepository có quyền đọc khóa hàng và quyền by-customer finder; ServiceJobRepository gains claimForInvoicing.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing