test(订单实收): 对齐建单 INSERT 列位
This commit is contained in:
@@ -80,7 +80,9 @@ describe('order items PATCH contract', () => {
|
||||
expect(service).toContain('ordered_quantity = $2::numeric');
|
||||
expect(service).toContain('ordered_quantity');
|
||||
// 末尾 $21 = spec(order_items.spec;2026-10-16 起订单详情可改规格,INSERT 落该列)
|
||||
expect(service).toContain('VALUES ($1, $2, $3, $4, $5, $6, $7, $8, 10, $9, $10, $11, $12, $13, $14, $15, $7, NOW(), $20, $16, $17, $18::uuid, $19::uuid[], $5, $21)');
|
||||
expect(service).toContain(
|
||||
'VALUES ($1, $2, $3, $4, $5, $6, $7, $8, 10, $9, $10, $11, $12, $13, $14, $15, $7, NOW(), $20, $16, $17, $18::uuid, $19::uuid[], $5, $21,'
|
||||
);
|
||||
});
|
||||
it('admin can edit received qty from status 40 via admin-received-qty', () => {
|
||||
const page = readFileSync(new URL('./OrderManagementPage.tsx', import.meta.url), 'utf8');
|
||||
|
||||
Reference in New Issue
Block a user