summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/uangmuka_pembelian.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-03-20 14:46:25 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-03-20 14:46:25 +0700
commitcdd6919af886ab6eba9daa32d10254c6f3e14101 (patch)
treed61bde78dd1d7f4fc578d470a85a1b185049f58d /indoteknik_custom/models/uangmuka_pembelian.py
parentd8750844beed392c0dd3e588ea242be3c86f2be9 (diff)
add ongkir and selisih in process uang muka penjualan
Diffstat (limited to 'indoteknik_custom/models/uangmuka_pembelian.py')
-rw-r--r--indoteknik_custom/models/uangmuka_pembelian.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/models/uangmuka_pembelian.py b/indoteknik_custom/models/uangmuka_pembelian.py
index 29d188d3..3d271117 100644
--- a/indoteknik_custom/models/uangmuka_pembelian.py
+++ b/indoteknik_custom/models/uangmuka_pembelian.py
@@ -27,8 +27,9 @@ class UangmukaPembelian(models.TransientModel):
current_time = datetime.now()
for order in orders:
+ ref_label = 'UANG MUKA PEMBELIAN '+order.name+' '+order.partner_id.name
param_header = {
- 'ref': 'UANG MUKA PEMBELIAN '+order.name+' '+order.partner_id.name,
+ 'ref': ref_label,
'date': current_time,
'journal_id': 11
}
@@ -43,6 +44,7 @@ class UangmukaPembelian(models.TransientModel):
'currency_id': 12,
'debit': self.pay_amt,
'credit': 0,
+ 'name': ref_label,
}
param_credit = {
@@ -52,6 +54,7 @@ class UangmukaPembelian(models.TransientModel):
'currency_id': 12,
'debit': 0,
'credit': self.pay_amt,
+ 'name': ref_label,
}
request.env['account.move.line'].create([param_debit, param_credit])
return {