feat(standard orders in): multi customer orders in plus ignore already started

This commit is contained in:
2025-04-17 23:04:50 -05:00
parent 632e07967a
commit 68ccf2382b
9 changed files with 444 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
export const invoiceAddress = `
SELECT deliveryAddress.humanreadableid as deliveryAddress
,invoice.HumanReadableId as invoiceAddress
,[Default]
FROM [test1_AlplaPROD2.0_Read].[masterData].[InvoiceAddress] (nolock) as d
join
[test1_AlplaPROD2.0_Read].[masterData].[Address] deliveryAddress (nolock) on deliveryAddress.id = d.AddressId
join
[test1_AlplaPROD2.0_Read].[masterData].[Address] invoice (nolock) on invoice.id = d.InvoiceAddressId
where [Default] = 1
`;