Hopefully fix dodgy PO and jobs link

This commit is contained in:
Karl Cordes 2019-07-09 17:12:26 +10:00
parent b48447c390
commit 49ef50b7b8

View file

@ -516,7 +516,7 @@ ENDINSTRUCTIONS;
//Fuck everything about this.
$po_id = $this->data['PurchaseOrder']['id'];
foreach($this->data['PurchaseOrder']['Job'] as $job_id) {
$query = "INSERT INTO `quotenik`.`jobs_purchase_orders` (`id`, `job_id`, `purchase_order_id`) VALUES (NULL, '{$job_id}', '{$po_id}');";
$query = "INSERT INTO `cmc`.`jobs_purchase_orders` (`id`, `job_id`, `purchase_order_id`) VALUES (NULL, '{$job_id}', '{$po_id}');";
$this->Document->query($query);
}