AlmondTill/G3N API

NewOrgVendorItemInput

input type

Create-input for an OrgVendorItem. The tenant (org group) is derived SERVER-SIDE from the principal; orgVendorId (the parent — rides the header) and variantId are tenant-scoped server-side and must BOTH be ACTIVE (STRICT); a supplied listCost requires the parent OrgVendor to carry a purchasingCurrency and must MATCH it.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the vendor's part number when given, else 'Org Vendor Item'; when supplied it must be non-blank.
orgVendorIdID ID!yesThe owning OrgVendor id.
variantIdID ID!yesThe Variant this vendor supplies — immutable after birth.
vendorPartNumberStringnoNo further notes.
listCostMoneyEntryInputnoThe vendor's list cost — the currency must match the parent OrgVendor's purchasingCurrency; the cost per PACK when purchasePackId is supplied.
moqIntnoNo further notes.
leadTimeDaysIntnoNo further notes.
purchasePackIdIDnoThe vendor PurchasePack denomination — tenant + ACTIVE + must package variantId.

Used by