summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-08-20 09:06:33 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-08-20 09:06:33 +0700
commitbbc454fd6e13d12e9674769a555264f2c2343b5b (patch)
treed4973e8aab48e52cc0006600306ff7b19c11d639 /indoteknik_custom/views
parent9ea33822721c3c548675633effdf679cc1a99b0d (diff)
<hafid> refund system sisa uang muka
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/refund_sale_order.xml40
-rwxr-xr-xindoteknik_custom/views/sale_order.xml4
2 files changed, 39 insertions, 5 deletions
diff --git a/indoteknik_custom/views/refund_sale_order.xml b/indoteknik_custom/views/refund_sale_order.xml
index 27c5feec..dd47c2ab 100644
--- a/indoteknik_custom/views/refund_sale_order.xml
+++ b/indoteknik_custom/views/refund_sale_order.xml
@@ -14,6 +14,7 @@
<field name="ongkir" readonly="1"/>
<field name="total_invoice" readonly="1"/>
<field name="amount_refund" readonly="1"/>
+ <field name="remaining_refundable" readonly="1" optional="hide"/>
<field name="status"
decoration-info="status == 'draft'"
decoration-danger="status == 'reject'"
@@ -117,11 +118,13 @@
<field name="note_refund" attrs="{'readonly': [('is_locked', '=', True)]}"/>
</group>
<group>
- <field name="uang_masuk" attrs="{'readonly': ['|', ('is_locked', '=', True), ('refund_type', '=', 'barang_kosong_sebagian')]}"/>
+ <field name="uang_masuk" readonly="1"/>
<field name="total_invoice" readonly="1"/>
<field name="ongkir" attrs="{'readonly': [('is_locked', '=', True)]}"/>
<field name="amount_refund" attrs="{'readonly': [('is_locked', '=', True)]}"/>
<field name="amount_refund_text" readonly="1"/>
+ <field name="sale_order_count" invisible="1"/>
+ <field name="remaining_refundable" readonly="1" attrs="{'invisible': [('sale_order_count', '>', 1)]}"/>
<field name="uang_masuk_type" required="1" attrs="{'readonly': [('is_locked', '=', True)]}"/>
<field name="bukti_uang_masuk_image" widget="image"
attrs="{'invisible': [('uang_masuk_type', '=', 'pdf')], 'readonly': [('is_locked', '=', True)]}"/>
@@ -133,7 +136,8 @@
<notebook>
<page string="Produk Line">
<field name="line_ids" attrs="{'readonly': [('is_locked', '=', True)]}">
- <tree editable="bottom">
+ <tree editable="bottom" create="0" delete="1">
+ <field name="product_from"/>
<field name="product_id"/>
<field name="quantity"/>
<field name="reason"/>
@@ -168,6 +172,38 @@
</group>
</group>
</page>
+ <page string="Sales Order Lines">
+ <field name="so_order_line_ids" nolabel="1" readonly="1">
+ <tree>
+ <field name="order_id"/>
+ <field name="product_id"/>
+ <field name="purchase_price"/>
+ <field name="product_uom_qty"/>
+ <field name="price_unit"/>
+ <field name="tax_id" widget="many2many_tags"/>
+ <field name="discount"/>
+ <field name="price_subtotal"/>
+ <field name="item_percent_margin"/>
+ <field name="item_percent_margin_before"/>
+ </tree>
+ </field>
+ <group class="oe_subtotal_footer oe_right" colspan="2" name="refund_total">
+ <field name="amount_untaxed" widget="monetary" options="{'currency_field': 'currency_id'}" readonly="1"/>
+ <field name="amount_tax" widget="monetary" options="{'currency_field': 'currency_id'}" readonly="1"/>
+ <div class="oe_subtotal_footer_separator oe_inline o_td_label">
+ <label for="amount_total"/>
+ </div>
+ <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator"
+ widget="monetary" options="{'currency_field': 'currency_id'}" readonly="1"/>
+ <field name="delivery_amt" widget="monetary" options="{'currency_field': 'currency_id'}" readonly="1"/>
+ <div class="oe_subtotal_footer_separator oe_inline o_td_label">
+ <label for="grand_total"/>
+ </div>
+ <field name="grand_total" nolabel="1" class="oe_subtotal_footer_separator"
+ widget="monetary" options="{'currency_field': 'currency_id'}" readonly="1"/>
+ <field name="total_margin" widget="monetary" options="{'currency_field': 'currency_id'}" readonly="1"/>
+ </group>
+ </page>
<page string="Cancel Reason" attrs="{'invisible': [('status', '=', 'refund')]}">
<group>
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 1d51fd69..8f8e4288 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -39,8 +39,7 @@
<button name="button_refund"
type="object"
string="Refund"
- class="btn-primary"
- attrs="{'invisible': [('has_refund', '=', 'True')]}" />
+ class="btn-primary" />
</xpath>
<div class="oe_button_box" name="button_box">
<field name="advance_payment_move_ids" invisible="1"/>
@@ -177,7 +176,6 @@
<field name="expected_ready_to_ship"/>
<field name="eta_date_start"/>
<field name="eta_date" readonly="1"/>
- <field name="has_refund" readonly="1"/>
</group>
<group string="Return Doc">
<field name="ccm_id" readonly="1"/>