deliveries
This commit is contained in:
@@ -90,7 +90,16 @@ const (
|
||||
a.orderamount, a.ordervalue, a.taxamount, a.ordercharges,
|
||||
a.customerid, a.pickuplocationid, a.pickupaddress, a.pickuplat, a.pickuplong,
|
||||
a.pickupcustomer, a.pickupcontactno, a.pickuplocation as pickupsuburb, a.pickupcity,
|
||||
a.deliveryid AS deliverycustomerid, a.deliveryaddress, a.deliverylat, a.deliverylong, a.deliverytype,
|
||||
-- deliveryid is selected under its own name as well as under the
|
||||
-- deliverycustomerid alias it has always carried.
|
||||
--
|
||||
-- The alias alone meant no caller could ask an order whether a rider
|
||||
-- had been assigned to it: the deliveryid field on the response was the
|
||||
-- struct's zero value on every row ever returned, because nothing was
|
||||
-- ever selected into it. The alias stays rather than being corrected --
|
||||
-- the customer app has read it for as long as it has existed, and both
|
||||
-- names now carry the same value.
|
||||
a.deliveryid AS deliverycustomerid, a.deliveryid, a.deliveryaddress, a.deliverylat, a.deliverylong, a.deliverytype,
|
||||
a.deliverycustomer,a.deliverycontactno,a.deliverylocation as deliverysuburb, a.deliverycity, a.paymenttype, a.smsdelivery, b.customertoken,
|
||||
c.tenantname, c.tenanttoken, c.primarycontact AS tenantcontactno, c.postcode AS tenantpostcode, c.suburb AS tenantsuburb, c.city AS tenantcity,
|
||||
d.locationname, d.contactno AS locationcontactno, d.postcode AS locationpostcode, d.suburb AS locationsuburb, d.city AS locationcity
|
||||
|
||||
Reference in New Issue
Block a user