TransactionDetails
Returns the line-item details of sales transactions.
ビュー固有の情報
SELECT
connector は Smaregi API を使用してWHERE 句条件を処理します。すべてのカラムは=、!=、>、<、>=、<= 演算子によるサーバー側フィルタリングをサポートし、文字列型のカラムはLIKE もサポートします。IN 演算子、およびdate/datetime 型のカラムに対するLIKE 演算子は、クライアント側で処理されます。
Note:リクエストには、次のフィルタ条件のうち1 つ以上を指定する必要があります。デフォルトのフィルタ条件は、過去30 日間のUpdDateTime に設定されています。
- 取引ID [TransactionHeadId]:ID 指定、From-To(From-To は100,000 件以内で指定可能)。
- 取引日時 [TransactionDateTime]:From-To(期間は1 ヶ月ではなく31 日間)。
- 更新日時 [UpdDateTime]:From-To(期間は1 ヶ月ではなく31 日間)。
例えば、次のクエリはサーバー側で処理されます:
SELECT * FROM TransactionDetails WHERE TransactionDateTime >= '2021/03/01 00:00:00' AND TransactionDateTime <= '2021/03/31 00:00:00'
SELECT * FROM TransactionDetails WHERE TransactionHeadId >= 1 AND TransactionHeadId <= 100000
SELECT * FROM TransactionDetails WHERE UpdDateTime >= '2021/03/01 00:00:00' AND UpdDateTime <= '2021/03/31 00:00:00'
Columns
| Name | Type | References | Description |
| TransactionHeadId [KEY] | Long |
TransactionHeads.TransactionHeadId | |
| TransactionDateTime | Datetime | ||
| TransactionDetailId [KEY] | Integer | ||
| ParentTransactionDetailId | Integer | ||
| TransactionDetailDivision | Integer | ||
| ProductId | Long | ||
| ProductCode | String | ||
| ProductName | String | ||
| TaxDivision | Integer | ||
| Price | Decimal | ||
| SalesPrice | Decimal | ||
| UnitDiscountPrice | Decimal | ||
| UnitDiscountRate | Decimal | ||
| UnitDiscountDivision | Integer | ||
| Cost | Decimal | ||
| Quantity | Integer | ||
| UnitNonDiscountSum | Decimal | ||
| UnitDiscountSum | Decimal | ||
| UnitDiscountedSum | Decimal | ||
| CostSum | Decimal | ||
| CategoryId | Integer | ||
| CategoryName | String | ||
| DiscriminationNo | String | ||
| SalesDivision | Integer | ||
| ProductDivision | Integer | ||
| PointNotApplicable | Integer | ||
| TaxFreeDivision | Integer | ||
| TaxFreeCommodityPrice | Decimal | ||
| TaxFree | Decimal | ||
| ProductBundleGroupId | Integer | ||
| DiscountPriceProportional | Decimal | ||
| DiscountPointProportional | Decimal | ||
| DiscountCouponProportional | Decimal | Set coupon discount. | |
| TaxIncludeProportional | Decimal | ||
| TaxExcludeProportional | Decimal | ||
| ProductBundleProportional | Decimal | ||
| StaffDiscountProportional | Decimal | ||
| BargainDiscountProportional | Decimal | ||
| RoundingPriceProportional | Decimal | ||
| InventoryReservationDivision | Integer | ||
| GroupCode | String | ||
| UpdDateTime | Datetime | ||
| ProductStaffDiscountRate | Integer | ||
| StaffRank | String | ||
| StaffRankName | String | ||
| StaffDiscountRate | Decimal | ||
| StaffDiscountDivision | Integer | ||
| ApplyStaffDiscountRate | Decimal | ||
| ApplyStaffDiscountPrice | Decimal | ||
| BargainId | Integer | ||
| BargainName | String | ||
| BargainDivision | Integer | ||
| BargainValue | Decimal | ||
| ApplyBargainValue | Decimal | ||
| ApplyBargainDiscountPrice | Decimal | ||
| TaxRate | Decimal | ||
| StandardTaxRate | Decimal | ||
| ModifiedTaxRate | Decimal | ||
| ReduceTaxId | Integer | ||
| ReduceTaxName | String | ||
| ReduceTaxRate | String | ||
| Color | String | ||
| Size | String |