0
我會在account_move_line(列tax_number)與價值account_invoice_line(列no_pajak)更新的價值。 但它總是返回空。
這是我的代碼:
update account_move_line aml set tax_number = (
select no_pajak as tax_number from account_invoice_line
where invoice_id = aml.invoice_id and no_pajak is not NULL
)
where tax_number is NULL and date > '2017-08-01'
非常感謝您
代碼應該工作。請提供表格中的樣本數據和預期結果。 –