sales_delivery_order => 'DeliveryOrder',
}->{$::form->{type}};
- if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) {
+ if ($::form->{type} =~ /invoice|credit_note/) {
$class = $::form->{vc} eq 'customer' ? 'Invoice'
: $::form->{vc} eq 'vendor' ? 'PurchaseInvoice'
: do { die 'unknown invoice type' };
sales_delivery_order => 'DeliveryOrder',
}->{$::form->{type}};
- if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) {
+ if ($::form->{type} =~ /invoice|credit_note/) {
$class = $::form->{vc} eq 'customer' ? 'Invoice'
: $::form->{vc} eq 'vendor' ? 'PurchaseInvoice'
: do { die 'unknown invoice type' };