Merge branch 'main' into t3/coverage-gap-tests-v-d2
This commit is contained in:
commit
5fd382450b
100 files changed
+1793
-374
No files matched your search
@@ -152,7 +152,7 @@ pub enum StoreError {
|
||||
#[error("store not found at {0}")]
|
||||
NotFound(String),
|
||||
|
||||
/// A write-off with no evidence (BS-arap-5 INVARIANT 1): a bad
|
||||
/// A write-off with no evidence (BS-arap-5 statement 10): a bad
|
||||
/// debt is deducted on evidence that it is worthless (Treas. Reg.
|
||||
/// §1.166-2), so the books take the write-off only with its file.
|
||||
#[error(
|
||||
|
||||
@@ -179,7 +179,7 @@ pub const ASSET_BASIS: &str = "asset_basis";
|
||||
pub const PROJECTS: &str = "projects";
|
||||
|
||||
/// Feature: an `invoice.created` or `bill.created` line naming its project
|
||||
/// (`class_id`, BS-statement-5 item 8). An older version would restore the
|
||||
/// (`class_id`, BS-statement-5 statement 6). An older version would restore the
|
||||
/// document without its lines' projects, silently. Its own feature, not
|
||||
/// `projects`': books that consented to projects before it existed must
|
||||
/// consent again before a document names one.
|
||||
|
||||
@@ -507,7 +507,7 @@ struct AttachRequest<'a> {
|
||||
}
|
||||
|
||||
/// The evidence a bad-debt write-off files (plan P4b S7; BS-arap-5
|
||||
/// INVARIANT 1): the file that shows the debt is worthless — collection
|
||||
/// statement 9): the file that shows the debt is worthless — collection
|
||||
/// correspondence, a bankruptcy notice (Treas. Reg. §1.166-2). Given as
|
||||
/// bytes to file in the same call, or as an attachment already in the
|
||||
/// books that is linked to the write-off's entry and its invoice.
|
||||
@@ -3446,7 +3446,7 @@ impl Store {
|
||||
}
|
||||
|
||||
/// The issued copy of an invoice, filed in the call that issues it
|
||||
/// (plan P4b S4.3 item 11, A-7; BS-arap-4 item 3): the entry, then
|
||||
/// (plan P4b S4.3 item 11, A-7; BS-arap-4 invariant 3 and WB-arap-8): the entry, then
|
||||
/// `invoice.created`, then `receipt.attached` on the entry
|
||||
/// (`INV-0007.pdf`, `application/pdf`, "Issued invoice"), then
|
||||
/// `attachment.linked` to the invoice. The server renders the PDF
|
||||
@@ -3462,7 +3462,7 @@ impl Store {
|
||||
/// GOAL: the copy sent is kept with the invoice, or nothing is.
|
||||
/// SOURCE: IRS Pub. 583 (keep invoices); Rev. Proc. 98-25 (the audit
|
||||
/// trail keeps the record as issued); plan P4b S4.3, 8.3.11;
|
||||
/// BS-arap-4 item 3.
|
||||
/// BS-arap-4 invariant 3 and WB-arap-8.
|
||||
/// INVARIANTS:
|
||||
/// 1. Every refusal (an unknown customer, an invalid line or due
|
||||
/// date, a duplicate number, a closed period, a feature the books
|
||||
@@ -4534,7 +4534,7 @@ impl Store {
|
||||
/// ```text
|
||||
/// GOAL: a project in one command, journaled as two events only when
|
||||
/// it has facts, so a name-only project is a plain class.
|
||||
/// SOURCE: BS-statement-5 item 1; BS-format-1 (journal feature
|
||||
/// SOURCE: WB-statement-5; BS-format-1 (journal feature
|
||||
/// `projects`).
|
||||
/// INVARIANTS:
|
||||
/// 1. A refusal journals nothing: the whole record is rehearsed, and
|
||||
@@ -6848,7 +6848,7 @@ fn document_line_json(l: &DocumentLine) -> Value {
|
||||
"amount": l.amount.to_string(),
|
||||
});
|
||||
// Its project, behind the feature document_line_projects (
|
||||
// BS-format-1, BS-statement-5 item 8); a line naming none is written as before it.
|
||||
// BS-format-1, BS-statement-5 statement 6); a line naming none is written as before it.
|
||||
if let Some(c) = l.class_id {
|
||||
v["class_id"] = json!(c);
|
||||
}
|
||||
@@ -6927,7 +6927,7 @@ fn invoice_fields_json(payload: &mut Value, fields: &arap::InvoiceFields) {
|
||||
}
|
||||
|
||||
/// Add a bill's new fields to its `bill.created` payload, each key only when
|
||||
/// set. A duplicate's reason is journaled for the record (BS-arap-4 item
|
||||
/// set. A duplicate's reason is journaled for the record (BS-arap-4 invariant
|
||||
/// 4); the bill itself keeps none.
|
||||
fn bill_fields_json(payload: &mut Value, fields: &arap::BillFields) {
|
||||
if let Some(r) = &fields.vendor_ref {
|
||||
|
||||
Reference in new issue
Block a user